|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.betwixt.NodeDescriptor
Common superclass for ElementDescriptor
and AttributeDescriptor
.
Nodes can have just a local name or they can have a local name, qualified name and a namespace uri.
Constructor Summary | |
NodeDescriptor()
Base constructor |
|
NodeDescriptor(java.lang.String localName)
Creates a NodeDescriptor with no namespace URI or prefix. |
|
NodeDescriptor(java.lang.String localName,
java.lang.String qualifiedName,
java.lang.String uri)
Creates a NodeDescriptor with namespace URI and qualified name |
Method Summary | |
java.lang.String |
getLocalName()
Gets the local name, excluding any namespace prefix |
java.lang.String |
getPropertyName()
Gets the name of the bean property to which this node refers |
java.lang.Class |
getPropertyType()
Gets the type of the bean property associated with this node, if any |
java.lang.String |
getQualifiedName()
Gets the qualified name, including any namespace prefix |
java.lang.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 |
java.lang.String |
getURI()
Gets the (xml) namespace URI prefix for this node. |
void |
setLocalName(java.lang.String localName)
Sets the local name |
void |
setPropertyName(java.lang.String propertyName)
Sets the name of the bean property to which this node refers |
void |
setPropertyType(java.lang.Class propertyType)
Sets the type of the bean property associated with this node, if any |
void |
setQualifiedName(java.lang.String qualifiedName)
Sets the qualified name |
void |
setSingularPropertyType(java.lang.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 |
void |
setURI(java.lang.String uri)
Sets the namespace URI that this node belongs to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeDescriptor()
public NodeDescriptor(java.lang.String localName)
localName
- the (xml) local name of this node.
This will be used to set both qualified and local name for this name.public NodeDescriptor(java.lang.String localName, java.lang.String qualifiedName, java.lang.String uri)
localName
- the (xml) local name of this nodequalifiedName
- the (xml) qualified name of this nodeuri
- the (xml) namespace prefix of this nodeMethod Detail |
public java.lang.String getLocalName()
public void setLocalName(java.lang.String localName)
localName
- the (xml) local name of this nodepublic java.lang.String getQualifiedName()
public void setQualifiedName(java.lang.String qualifiedName)
qualifiedName
- the new (xml) qualified name for this nodepublic java.lang.String getURI()
public void setURI(java.lang.String uri)
uri
- the new namespace uri for this nodepublic 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 java.lang.Class getPropertyType()
public void setPropertyType(java.lang.Class propertyType)
propertyType
- the Class of the bean propertypublic java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
propertyName
- the name of the bean property.
Or null, if this node is not mapped to to a bean propertypublic java.lang.Class getSingularPropertyType()
public void setSingularPropertyType(java.lang.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |