org.treebind
Class XmlAttributeName

java.lang.Object
  extended byorg.treebind.DefaultNameImplementation
      extended byorg.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 org.treebind.DefaultNameImplementation
equals, getFullName, getLocalName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.treebind.Name
equals, getFullName, getLocalName
 

Constructor Detail

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 attribute
parentNamespaceUri - the namespace URI of the parent element
localName - the local name of the attribute
Method Detail

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