|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.digester.Rule
org.apache.commons.betwixt.io.BeanCreateRule
BeanRuleSet instead.
BeanCreateRule is a Digester Rule for creating beans
from the betwixt XML metadata.
| Field Summary |
| Fields inherited from class org.apache.commons.digester.Rule |
digester, namespaceURI |
| Constructor Summary | |
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass)
Deprecated. Convenience constructor which uses ID's for matching. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
boolean matchIDs)
Deprecated. Constructor uses standard qualified name. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
java.lang.String pathPrefix)
Deprecated. Convenience constructor which uses ID's for matching. |
|
BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
java.lang.String pathPrefix,
boolean matchIDs)
Deprecated. Constructor taking a class. |
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix)
Deprecated. Convenience constructor which uses ID's for match. |
|
BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix,
boolean matchIDs)
Deprecated. Constructor taking a context. |
|
| Method Summary | |
protected void |
addChildRules()
Deprecated. Adds the rules to the digester for all child elements |
protected void |
addChildRules(java.lang.String prefix,
ElementDescriptor currentDescriptor)
Deprecated. Add child rules for given descriptor at given prefix |
protected void |
addPrimitiveTypeRule(java.lang.String path,
ElementDescriptor childDescriptor)
Deprecated. Adds a new Digester rule to process the text as a primitive type |
protected void |
addRule(java.lang.String path,
org.apache.commons.digester.Rule rule)
Deprecated. Safely add a rule with given path. |
void |
begin(org.xml.sax.Attributes attributes)
Deprecated. Process the beginning of this element. |
protected java.lang.Object |
createBean(org.xml.sax.Attributes attributes)
Deprecated. Factory method to create new bean instances |
void |
end()
Deprecated. Process the end of this element. |
void |
finish()
Deprecated. Tidy up. |
protected BeanReader |
getBeanReader()
Deprecated. Get the associated bean reader. |
protected java.util.Map |
getBeansById()
Deprecated. Get the map used to index beans (previously read in) by id. |
java.lang.String |
getClassNameAttribute()
Deprecated. 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. |
protected ElementDescriptor |
getElementDescriptor(ElementDescriptor propertyDescriptor)
Deprecated. Allows the navigation from a reference to a property object to the descriptor defining what the property is. |
void |
setClassNameAttribute(java.lang.String classNameAttribute)
Deprecated. 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. |
static void |
setLog(org.apache.commons.logging.Log aLog)
Deprecated. Set log to be used by BeanCreateRule instances |
java.lang.String |
toString()
Deprecated. Return something meaningful for logging. |
| Methods inherited from class org.apache.commons.digester.Rule |
begin, body, body, end, getDigester, getNamespaceURI, setDigester, setNamespaceURI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
java.lang.String pathPrefix)
ID's for matching.
descriptor - the ElementDescriptor describing the element mappedbeanClass - the Class to be createdpathPrefix - the digester style path
public BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
java.lang.String pathPrefix,
boolean matchIDs)
descriptor - the ElementDescriptor describing the element mappedbeanClass - the Class to be createdpathPrefix - the digester style pathmatchIDs - should ID/IDREF's be used for matching
public BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass)
ID's for matching.
descriptor - the ElementDescriptor describing the element mappedbeanClass - the Class to be created
public BeanCreateRule(ElementDescriptor descriptor,
java.lang.Class beanClass,
boolean matchIDs)
descriptor - the ElementDescriptor describing the element mappedbeanClass - the Class to be createdmatchIDs - should ID/IDREF's be used for matching
public BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix)
ID's for match.
descriptor - the ElementDescriptor describing the element mappedcontext - the Context to be used to evaluate expressionspathPrefix - the digester path prefix
public BeanCreateRule(ElementDescriptor descriptor,
Context context,
java.lang.String pathPrefix,
boolean matchIDs)
descriptor - the ElementDescriptor describing the element mappedcontext - the Context to be used to evaluate expressionspathPrefix - the digester path prefixmatchIDs - should ID/IDREF's be used for matching| Method Detail |
public static void setLog(org.apache.commons.logging.Log aLog)
BeanCreateRule instances
aLog - the Log implementation for this class to log topublic void begin(org.xml.sax.Attributes attributes)
attributes - The attribute list of this elementpublic void end()
public void finish()
public java.lang.String getClassNameAttribute()
The default value is 'className'.
public void setClassNameAttribute(java.lang.String classNameAttribute)
The default value is 'className'.
classNameAttribute - The name of the attribute used to overload the class name of a beanprotected java.lang.Object createBean(org.xml.sax.Attributes attributes)
attributes - the Attributes used to match ID/IDREF
protected void addChildRules()
protected void addChildRules(java.lang.String prefix,
ElementDescriptor currentDescriptor)
prefix - add child rules at this (digester) path prefixcurrentDescriptor - add child rules for this descriptorprotected BeanReader getBeanReader()
BeanReader
protected ElementDescriptor getElementDescriptor(ElementDescriptor propertyDescriptor)
propertyDescriptor - find descriptor for property object referenced by this descriptor
protected void addPrimitiveTypeRule(java.lang.String path,
ElementDescriptor childDescriptor)
path - digester path where this rule will be attachedchildDescriptor - update this ElementDescriptor with the body text
protected void addRule(java.lang.String path,
org.apache.commons.digester.Rule rule)
path - the digester path to add rule atrule - the Rule to addprotected java.util.Map getBeansById()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||