java.lang.Object | ||
↳ | org.apache.commons.digester.Rule | |
↳ | org.apache.commons.betwixt.io.BeanCreateRule |
This class is deprecated.
0.5 this Rule does not allowed good integration with other Rules -
use BeanRuleSet
instead.
BeanCreateRule
is a Digester Rule for creating beans
from the betwixt XML metadata.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.digester.Rule
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience constructor which uses
ID's for matching. | |||||||||||
Constructor taking a class.
| |||||||||||
Convenience constructor which uses
ID's for matching. | |||||||||||
Constructor uses standard qualified name.
| |||||||||||
Convenience constructor which uses
ID's for match. | |||||||||||
Constructor taking a context.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Process the beginning of this element.
| |||||||||||
Process the end of this element.
| |||||||||||
Tidy up.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
Set log to be used by
BeanCreateRule instances | |||||||||||
Return something meaningful for logging.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add child rules for given descriptor at given prefix
| |||||||||||
Adds the rules to the digester for all child elements
| |||||||||||
Adds a new Digester rule to process the text as a primitive type
| |||||||||||
Safely add a rule with given path.
| |||||||||||
Factory method to create new bean instances
| |||||||||||
Get the associated bean reader.
| |||||||||||
Get the map used to index beans (previously read in) by id.
| |||||||||||
Allows the navigation from a reference to a property object to the descriptor defining what
the property is.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.digester.Rule
| |||||||||||
From class
java.lang.Object
|
Convenience constructor which uses ID's
for matching.
descriptor | the ElementDescriptor describing the element mapped |
---|---|
beanClass | the Class to be created |
pathPrefix | the digester style path |
Constructor taking a class.
descriptor | the ElementDescriptor describing the element mapped |
---|---|
beanClass | the Class to be created |
pathPrefix | the digester style path |
matchIDs | should ID /IDREF 's be used for matching
|
Convenience constructor which uses ID's
for matching.
descriptor | the ElementDescriptor describing the element mapped |
---|---|
beanClass | the Class to be created
|
Constructor uses standard qualified name.
descriptor | the ElementDescriptor describing the element mapped |
---|---|
beanClass | the Class to be created |
matchIDs | should ID /IDREF 's be used for matching
|
Convenience constructor which uses ID's
for match.
descriptor | the ElementDescriptor describing the element mapped |
---|---|
context | the Context to be used to evaluate expressions |
pathPrefix | the digester path prefix |
Constructor taking a context.
descriptor | the ElementDescriptor describing the element mapped |
---|---|
context | the Context to be used to evaluate expressions |
pathPrefix | the digester path prefix |
matchIDs | should ID /IDREF 's be used for matching
|
Process the beginning of this element.
attributes | The attribute list of this element |
---|
Process the end of this element.
Tidy up.
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'.
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'.
classNameAttribute | The name of the attribute used to overload the class name of a bean |
---|
Set log to be used by BeanCreateRule
instances
aLog | the Log implementation for this class to log to
|
---|
Return something meaningful for logging.
Add child rules for given descriptor at given prefix
prefix | add child rules at this (digester) path prefix |
---|---|
currentDescriptor | add child rules for this descriptor |
Adds the rules to the digester for all child elements
Adds a new Digester rule to process the text as a primitive type
path | digester path where this rule will be attached |
---|---|
childDescriptor | update this ElementDescriptor with the body text
|
Safely add a rule with given path.
path | the digester path to add rule at |
---|---|
rule | the Rule to add
|
Factory method to create new bean instances
attributes | the Attributes used to match ID/IDREF |
---|
Get the map used to index beans (previously read in) by id. This is stored in the evaluation context.
Allows the navigation from a reference to a property object to the descriptor defining what the property is. In other words, doing the join from a reference to a type to lookup its descriptor. This could be done automatically by the NodeDescriptors. Refer to TODO.txt for more info.
propertyDescriptor | find descriptor for property object referenced by this descriptor |
---|