org.treebind
Interface Name

All Known Implementing Classes:
DefaultNameImplementation, JavaClassName, JavaMethodName, LdapName, Names, RdfResourceName, XmlAttributeName, XmlElementName, XmlProductionName

public interface Name

Interface to represent names. Names usually consist in a domain and a local name. Names are used as property roles and natures.

Author:
Eric van der Vlist
See Also:
Property

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.
 

Method Detail

equals

public boolean equals(Name name)
Test if two names are equal.

Parameters:
name - the name against which the equality must be checked.
Returns:
true if the two names are equal, false otherwise.

getDomainName

public java.lang.String getDomainName()
Gets the domain name.

Returns:
the domain name (can be a namespace URI, a package name, ...).

getFullName

public java.lang.String getFullName()
Gets the full name which is usually the concatenation of the domain name and the local name with a separator.

Returns:
the full name.

getLocalName

public java.lang.String getLocalName()
Gets the local name.

Returns:
the local part of the name.