| |
|
| java.lang.Object org.apache.commons.betwixt.Descriptor
All known Subclasses: org.apache.commons.betwixt.TextDescriptor, org.apache.commons.betwixt.NodeDescriptor,
Descriptor | abstract public class Descriptor (Code) | | Describes a content node mapping.
Common superclass for types of Descriptor
author: Robert Burrell Donkin since: 0.5 |
Descriptor | public Descriptor()(Code) | | Base constructor
|
getOptions | public Options getOptions()(Code) | | Gets the options for this descriptor.
Options are used to communicate non-declarative
(optinal) behaviour hints.
Options , not null |
getPropertyName | public String getPropertyName()(Code) | | Gets the name of the bean property to which this node refers
the name of the bean property to which this node refers to, or null if it is just a constant |
getPropertyType | public Class getPropertyType()(Code) | | Gets the type of the bean property associated with this node, if any
the property type associated with this node, if any |
getSingularPropertyType | public Class getSingularPropertyType()(Code) | | Gets the underlying type ignoring any wrapping a Collection or Array.
if this property is a 1-N relationship then this returns the typeof a single property value. |
getTextExpression | public Expression getTextExpression()(Code) | | Gets the expression used to evaluate the text value of this node
for a particular Context .
the expression used to evaluate the text value of this node |
getUpdater | public Updater getUpdater()(Code) | | Gets the Updater used to update a Context from the text value
corresponding to this node in an xml document
the Update that should be used to update the value of this node |
setOptions | public void setOptions(Options options)(Code) | | Sets the options for this descriptor.
Options are used to communicate non-declarative
(optinal) behaviour hints.
Parameters: options - |
setPropertyName | public void setPropertyName(String propertyName)(Code) | | Sets the name of the bean property to which this node refers
Parameters: propertyName - the name of the bean property. Or null, if this node is not mapped to to a bean property |
setPropertyType | public void setPropertyType(Class propertyType)(Code) | | Sets the type of the bean property associated with this node, if any
Parameters: propertyType - the Class of the bean property |
setSingularPropertyType | public void setSingularPropertyType(Class singularPropertyType)(Code) | | Sets the underlying type ignoring any wrapping Collection or Array.
Parameters: singularPropertyType - the Class of the items in the Collection or Array. If node is associated with a collective bean property, then this should not be null. |
setTextExpression | public void setTextExpression(Expression textExpression)(Code) | | Sets the expression used to evaluate the text value of this node
for a particular Context
Parameters: textExpression - the Expression to be used to evaluate the value of this node |
setUpdater | public void setUpdater(Updater updater)(Code) | | Sets the Updater used to update a Context from the text value
corresponding to this node in an xml document
Parameters: updater - the Updater to be used to update the values of this node |
|
|
|