public abstract class Descriptor extends Object
Describes a content node mapping.
Common superclass for types ofDescriptor
Constructor and Description |
---|
Descriptor()
Base constructor
|
Modifier and Type | Method and Description |
---|---|
Options |
getOptions()
Gets the options for this descriptor.
|
String |
getPropertyName()
Gets the name of the bean property to which this node refers
|
Class |
getPropertyType()
Gets the type of the bean property associated with this node, if any
|
Class |
getSingularPropertyType()
Gets the underlying type ignoring any wrapping a Collection or Array.
|
Expression |
getTextExpression()
Gets the expression used to evaluate the text value of this node
for a particular
Context . |
Updater |
getUpdater()
Gets the
Updater used to update a Context from the text value
corresponding to this node in an xml document |
void |
setOptions(Options options)
Sets the options for this descriptor.
|
void |
setPropertyName(String propertyName)
Sets the name of the bean property to which this node refers
|
void |
setPropertyType(Class propertyType)
Sets the type of the bean property associated with this node, if any
|
void |
setSingularPropertyType(Class singularPropertyType)
Sets the underlying type ignoring any wrapping Collection or Array.
|
void |
setTextExpression(Expression textExpression)
Sets the expression used to evaluate the text value of this node
for a particular
Context |
void |
setUpdater(Updater updater)
Sets the
Updater used to update a Context from the text value
corresponding to this node in an xml document |
public Expression getTextExpression()
Context
.public void setTextExpression(Expression textExpression)
Context
textExpression
- the Expression to be used to evaluate the value of this nodepublic Updater getUpdater()
Updater
used to update a Context
from the text value
corresponding to this node in an xml documentpublic void setUpdater(Updater updater)
Updater
used to update a Context
from the text value
corresponding to this node in an xml documentupdater
- the Updater to be used to update the values of this nodepublic Class getPropertyType()
public void setPropertyType(Class propertyType)
propertyType
- the Class of the bean propertypublic String getPropertyName()
public void setPropertyName(String propertyName)
propertyName
- the name of the bean property.
Or null, if this node is not mapped to to a bean propertypublic Class getSingularPropertyType()
public void setSingularPropertyType(Class singularPropertyType)
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.public Options getOptions()
Options
, not nullpublic void setOptions(Options options)
options
- Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.