|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.betwixt.io.BeanRuleSet
public class BeanRuleSet
Sets Betwixt digestion rules for a bean class.
| Constructor Summary | |
|---|---|
BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
java.lang.Class baseBeanClass,
boolean matchIDs)
Deprecated. 0.5 use constructor which takes a ReadContext instead |
|
BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
java.lang.Class baseBeanClass,
Context context)
Deprecated. 0.5 use the constructor which takes a ReadContext instead |
|
BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
java.lang.Class baseBeanClass,
ReadContext baseContext)
Base constructor. |
|
BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
Context context)
Deprecated. 0.6 use the constructor which takes a ReadContext instead |
|
| Method Summary | |
|---|---|
void |
addRuleInstances(org.apache.commons.digester.Digester digester)
Add rules for bean to given Digester. |
java.lang.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. |
java.lang.String |
getNamespaceURI()
Gets the namespace associated with this ruleset. |
void |
setClassNameAttribute(java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
java.lang.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,
java.lang.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 null
public BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
java.lang.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 null
public BeanRuleSet(XMLIntrospector introspector,
java.lang.String basePath,
ElementDescriptor baseElementDescriptor,
java.lang.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 null| Method Detail |
|---|
public static void setLog(org.apache.commons.logging.Log aLog)
BeanRuleSet instances
aLog - the Log implementation for this class to log topublic java.lang.String getClassNameAttribute()
The default value is 'className'.
public void setClassNameAttribute(java.lang.String classNameAttribute)
ReadContext property instead
The default value is 'className'.
classNameAttribute - The name of the attribute used to overload the class name of a beanpublic java.lang.String getNamespaceURI()
Gets the namespace associated with this ruleset.
Note namespaces are not currently supported.
getNamespaceURI in interface org.apache.commons.digester.RuleSetpublic void addRuleInstances(org.apache.commons.digester.Digester digester)
Digester.
addRuleInstances in interface org.apache.commons.digester.RuleSetdigester - the Digester to which the rules for the bean will be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||