| java.lang.Object org.apache.commons.betwixt.Descriptor org.apache.commons.betwixt.NodeDescriptor
All known Subclasses: org.apache.commons.betwixt.AttributeDescriptor, org.apache.commons.betwixt.ElementDescriptor,
NodeDescriptor | public class NodeDescriptor extends Descriptor (Code) | | 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.
author: James Strachan version: $Revision: 438373 $ |
NodeDescriptor | public NodeDescriptor()(Code) | | Base constructor
|
NodeDescriptor | public NodeDescriptor(String localName)(Code) | | Creates a NodeDescriptor with no namespace URI or prefix.
Parameters: localName - the (xml) local name of this node. This will be used to set both qualified and local name for this name. |
NodeDescriptor | public NodeDescriptor(String localName, String qualifiedName, String uri)(Code) | | Creates a NodeDescriptor with namespace URI and qualified name
Parameters: localName - the (xml) local name of this node Parameters: qualifiedName - the (xml) qualified name of this node Parameters: uri - the (xml) namespace prefix of this node |
getLocalName | public String getLocalName()(Code) | | Gets the local name, excluding any namespace prefix
the (xml) local name of this node |
getQualifiedName | public String getQualifiedName()(Code) | | Gets the qualified name, including any namespace prefix
the (xml) qualified name of this node. This may be null. |
getURI | public String getURI()(Code) | | Gets the (xml) namespace URI prefix for this node.
the namespace URI that this node belongs to or "" if there is no namespace defined |
setLocalName | public void setLocalName(String localName)(Code) | | Sets the local name
Parameters: localName - the (xml) local name of this node |
setQualifiedName | public void setQualifiedName(String qualifiedName)(Code) | | Sets the qualified name
Parameters: qualifiedName - the new (xml) qualified name for this node |
setURI | public void setURI(String uri)(Code) | | Sets the namespace URI that this node belongs to.
Parameters: uri - the new namespace uri for this node |
|
|