public class BeanRuleSet extends Object implements org.apache.commons.digester.RuleSet
Sets Betwixt
digestion rules for a bean class.
Constructor and Description |
---|
BeanRuleSet(XMLIntrospector introspector,
String basePath,
ElementDescriptor baseElementDescriptor,
Class baseBeanClass,
boolean matchIDs)
Deprecated.
0.5 use constructor which takes a ReadContext instead
|
BeanRuleSet(XMLIntrospector introspector,
String basePath,
ElementDescriptor baseElementDescriptor,
Class baseBeanClass,
Context context)
Deprecated.
0.5 use the constructor which takes a ReadContext instead
|
BeanRuleSet(XMLIntrospector introspector,
String basePath,
ElementDescriptor baseElementDescriptor,
Class baseBeanClass,
ReadContext baseContext)
Base constructor.
|
BeanRuleSet(XMLIntrospector introspector,
String basePath,
ElementDescriptor baseElementDescriptor,
Context context)
Deprecated.
0.6 use the constructor which takes a ReadContext instead
|
Modifier and Type | Method and Description |
---|---|
void |
addRuleInstances(org.apache.commons.digester.Digester digester)
Add rules for bean to given
Digester . |
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.
|
String |
getNamespaceURI()
Gets the namespace associated with this ruleset.
|
void |
setClassNameAttribute(String classNameAttribute)
Deprecated.
0.5 set the
ReadContext property instead |
static void |
setLog(org.apache.commons.logging.Log aLog)
Set log to be used by
BeanRuleSet instances |
public BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, boolean matchIDs)
introspector
- the XMLIntrospector
used to introspectbasePath
- specifies the (Digester-style) path under which the rules will be attachedbaseElementDescriptor
- the ElementDescriptor
used to create the rulesbaseBeanClass
- the Class
whose mapping rules will be createdmatchIDs
- should ID/IDREFs be used to match beans?public BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Context context)
introspector
- the XMLIntrospector
used to introspectbasePath
- specifies the (Digester-style) path under which the rules will be attachedbaseElementDescriptor
- the ElementDescriptor
used to create the rulescontext
- the root Context that bean carrying Contexts should be obtained from,
not nullpublic BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, Context context)
introspector
- the XMLIntrospector
used to introspectbasePath
- specifies the (Digester-style) path under which the rules will be attachedbaseElementDescriptor
- the ElementDescriptor
used to create the rulesbaseBeanClass
- the Class
whose mapping rules will be createdcontext
- the root Context that bean carrying Contexts should be obtained from,
not nullpublic BeanRuleSet(XMLIntrospector introspector, String basePath, ElementDescriptor baseElementDescriptor, Class baseBeanClass, ReadContext baseContext)
introspector
- the XMLIntrospector
used to introspectbasePath
- specifies the (Digester-style) path under which the rules will be attachedbaseElementDescriptor
- the ElementDescriptor
used to create the rulesbaseBeanClass
- the Class
whose mapping rules will be createdbaseContext
- the root Context that bean carrying Contexts should be obtained from,
not nullpublic static void setLog(org.apache.commons.logging.Log aLog)
BeanRuleSet
instancesaLog
- the Log
implementation for this class to log topublic String getClassNameAttribute()
The default value is 'className'.
public void setClassNameAttribute(String classNameAttribute)
ReadContext
property insteadThe default value is 'className'.
classNameAttribute
- The name of the attribute used to overload the class name of a beanpublic String getNamespaceURI()
Gets the namespace associated with this ruleset.
Note namespaces are not currently supported.
getNamespaceURI
in interface org.apache.commons.digester.RuleSet
public void addRuleInstances(org.apache.commons.digester.Digester digester)
Digester
.addRuleInstances
in interface org.apache.commons.digester.RuleSet
digester
- the Digester
to which the rules for the bean will be addedCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.