org.treebind
Class DefaultNameImplementation

java.lang.Object
  extended byorg.treebind.DefaultNameImplementation
All Implemented Interfaces:
Name
Direct Known Subclasses:
JavaClassName, JavaMethodName, LdapName, Names, RdfResourceName, XmlAttributeName, XmlElementName, XmlProductionName

public class DefaultNameImplementation
extends java.lang.Object
implements Name

Default implementation of a TreeBind name This class implements a simple variant of TreeBind names composed of a domain name and a local name that are separed by a separator when they are concatenated.

Author:
vdv
See Also:
Name

Constructor Summary
DefaultNameImplementation()
           
 
Method Summary
 boolean equals(Name name)
          Test if two names are equal.
 java.lang.String getDomainName()
          Gets the domain name.
 java.lang.String getFullName()
          Gets the full name which is usually the concatenation of the domain name and the local name with a separator.
 java.lang.String getLocalName()
          Gets the local name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNameImplementation

public DefaultNameImplementation()
Method Detail

getLocalName

public java.lang.String getLocalName()
Description copied from interface: Name
Gets the local name.

Specified by:
getLocalName in interface Name
Returns:
the local part of the name.

getFullName

public java.lang.String getFullName()
Description copied from interface: Name
Gets the full name which is usually the concatenation of the domain name and the local name with a separator.

Specified by:
getFullName in interface Name
Returns:
the full name.

getDomainName

public java.lang.String getDomainName()
Description copied from interface: Name
Gets the domain name.

Specified by:
getDomainName in interface Name
Returns:
the domain name (can be a namespace URI, a package name, ...).

equals

public boolean equals(Name name)
Description copied from interface: Name
Test if two names are equal.

Specified by:
equals in interface Name
Parameters:
name - the name against which the equality must be checked.
Returns:
true if the two names are equal, false otherwise.