| java.lang.Object org.apache.commons.betwixt.io.BeanRuleSet
Constructor Summary | |
public | BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, boolean matchIDs) Base constructor. | public | BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Context context) Base constructor. | public | BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, Context context) Base constructor. | public | BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, ReadContext baseContext) Base constructor. |
Method Summary | |
public void | addRuleInstances(Digester digester) Add rules for bean to given Digester . | public String | getClassNameAttribute() The name of the attribute which can be specified in the XML to override the
type of a bean used at a certain point in the schema. | public String | getNamespaceURI() | public void | setClassNameAttribute(String classNameAttribute) Sets the name of the attribute which can be specified in
the XML to override the type of a bean used at a certain
point in the schema. | public static void | setLog(Log aLog) |
BeanRuleSet | public BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, boolean matchIDs)(Code) | | Base constructor.
Parameters: introspector - the XMLIntrospector used to introspect Parameters: basePath - specifies the (Digester-style) path under which the rules will be attached Parameters: baseElementDescriptor - the ElementDescriptor used to create the rules Parameters: baseBeanClass - the Class whose mapping rules will be created Parameters: matchIDs - should ID/IDREFs be used to match beans? |
BeanRuleSet | public BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Context context)(Code) | | Base constructor.
Parameters: introspector - the XMLIntrospector used to introspect Parameters: basePath - specifies the (Digester-style) path under which the rules will be attached Parameters: baseElementDescriptor - the ElementDescriptor used to create the rules Parameters: context - the root Context that bean carrying Contexts should be obtained from, not null |
BeanRuleSet | public BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, Context context)(Code) | | Base constructor.
Parameters: introspector - the XMLIntrospector used to introspect Parameters: basePath - specifies the (Digester-style) path under which the rules will be attached Parameters: baseElementDescriptor - the ElementDescriptor used to create the rules Parameters: baseBeanClass - the Class whose mapping rules will be created Parameters: context - the root Context that bean carrying Contexts should be obtained from, not null |
BeanRuleSet | public BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, ReadContext baseContext)(Code) | | Base constructor.
Parameters: introspector - the XMLIntrospector used to introspect Parameters: basePath - specifies the (Digester-style) path under which the rules will be attached Parameters: baseElementDescriptor - the ElementDescriptor used to create the rules Parameters: baseBeanClass - the Class whose mapping rules will be created Parameters: baseContext - the root Context that bean carrying Contexts should be obtained from, not null |
addRuleInstances | public void addRuleInstances(Digester digester)(Code) | | Add rules for bean to given Digester .
Parameters: digester - the Digester to which the rules for the bean will be added |
getClassNameAttribute | public String getClassNameAttribute()(Code) | | The name of the attribute which can be specified in the XML to override the
type of a bean used at a certain point in the schema.
The default value is 'className'.
The name of the attribute used to overload the class name of a bean |
getNamespaceURI | public String getNamespaceURI()(Code) | | Gets the namespace associated with this ruleset.
Note namespaces are not currently supported.
null |
setClassNameAttribute | public void setClassNameAttribute(String classNameAttribute)(Code) | | Sets the name of the attribute which can be specified in
the XML to override the type of a bean used at a certain
point in the schema.
The default value is 'className'.
Parameters: classNameAttribute - The name of the attribute used to overload the class name of a bean |
setLog | public static void setLog(Log aLog)(Code) | | Set log to be used by BeanRuleSet instances
Parameters: aLog - the Log implementation for this class to log to |
|
|