org.treebind
Class XmlAttributeName
java.lang.Object
org.treebind.DefaultNameImplementation
org.treebind.XmlAttributeName
- All Implemented Interfaces:
- Name
- public class XmlAttributeName
- extends DefaultNameImplementation
- implements Name
Name implementation representing XML attribute names.
These are strange beasts since the namespace of the parent element "blurs" on
attributes which have no namespace!
- Author:
- Eric van der Vlist
- See Also:
XmlElementName,
XmlProductionName,
Name
|
Constructor Summary |
XmlAttributeName(java.lang.String namespaceUri,
java.lang.String parentNamespaceUri,
java.lang.String localName)
Creates a new XmlAttributeName from the namespace URIs of the attribute
and its parent and the local name of the attribute. |
|
Method Summary |
java.lang.String |
getDomainName()
Gets the domain name. |
boolean |
isLocal()
Checks if the name is local. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlAttributeName
public XmlAttributeName(java.lang.String namespaceUri,
java.lang.String parentNamespaceUri,
java.lang.String localName)
- Creates a new XmlAttributeName from the namespace URIs of the attribute
and its parent and the local name of the attribute.
- Parameters:
namespaceUri - the namespace URI of the attributeparentNamespaceUri - the namespace URI of the parent elementlocalName - the local name of the attribute
getDomainName
public java.lang.String getDomainName()
- Description copied from interface:
Name
- Gets the domain name.
- Specified by:
getDomainName in interface Name- Overrides:
getDomainName in class DefaultNameImplementation
isLocal
public boolean isLocal()
- Checks if the name is local.
- Returns:
- true if this is a local name