|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.betwixt.Descriptor
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.
Field Summary | |
private java.lang.String |
localName
The local name of this node without any namespace prefix |
private java.lang.String |
qualifiedName
The qualified name of the xml node associated with this descriptor. |
private java.lang.String |
uri
The namespace URI of this node |
Fields inherited from class org.apache.commons.betwixt.Descriptor |
|
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 |
getQualifiedName()
Gets the qualified name, including any namespace prefix |
java.lang.String |
getURI()
Gets the (xml) namespace URI prefix for this node. |
void |
setLocalName(java.lang.String localName)
Sets the local name |
void |
setQualifiedName(java.lang.String qualifiedName)
Sets the qualified name |
void |
setURI(java.lang.String uri)
Sets the namespace URI that this node belongs to. |
Methods inherited from class org.apache.commons.betwixt.Descriptor |
getOptions, getPropertyName, getPropertyType, getSingularPropertyType, getTextExpression, getUpdater, setOptions, setPropertyName, setPropertyType, setSingularPropertyType, setTextExpression, setUpdater |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String localName
private java.lang.String qualifiedName
private java.lang.String uri
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 node
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |