public class NodeDescriptor extends Descriptor
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 and Description |
---|
NodeDescriptor()
Base constructor
|
NodeDescriptor(String localName)
Creates a NodeDescriptor with no namespace URI or prefix.
|
NodeDescriptor(String localName,
String qualifiedName,
String uri)
Creates a NodeDescriptor with namespace URI and qualified name
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalName()
Gets the local name, excluding any namespace prefix
|
String |
getQualifiedName()
Gets the qualified name, including any namespace prefix
|
String |
getURI()
Gets the (xml) namespace URI prefix for this node.
|
void |
setLocalName(String localName)
Sets the local name
|
void |
setQualifiedName(String qualifiedName)
Sets the qualified name
|
void |
setURI(String uri)
Sets the namespace URI that this node belongs to.
|
getOptions, getPropertyName, getPropertyType, getSingularPropertyType, getTextExpression, getUpdater, setOptions, setPropertyName, setPropertyType, setSingularPropertyType, setTextExpression, setUpdater
public NodeDescriptor()
public NodeDescriptor(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(String localName, String qualifiedName, String uri)
localName
- the (xml) local name of this nodequalifiedName
- the (xml) qualified name of this nodeuri
- the (xml) namespace prefix of this nodepublic String getLocalName()
public void setLocalName(String localName)
localName
- the (xml) local name of this nodepublic String getQualifiedName()
public void setQualifiedName(String qualifiedName)
qualifiedName
- the new (xml) qualified name for this nodepublic String getURI()
public void setURI(String uri)
uri
- the new namespace uri for this nodeCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.