Open SiteSearch 4.1.1
Final

ORG.oclc.xml.util
Class Name

java.lang.Object
  |
  +--ORG.oclc.xml.util.Name

public class Name
extends Object

This is a general purpose name object to allow efficient sharing of duplicate names in the system. It does this by creating a global HashTable of all names that have been constructed. Names are different from Atoms in that they can be qualified by a separate namespace string - so in effect that are compound atoms.


Method Summary
static Name create(char[] val, int offset, int len)
           
static Name create(String name)
          Create an unqualified Name.
static Name create(String name, Atom nameSpace)
          Create a Name object for the given name and namespace where the name and Namespace are already Atoms.
static Name create(String name, String ns)
          Create a Name object for the given name and namespace.
 boolean equals(Object that)
           
 String getName()
           
 Atom getNameSpace()
           
 int hashCode()
          return the hash code for this name object
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()

getNameSpace

public Atom getNameSpace()

equals

public boolean equals(Object that)
Overrides:
equals in class Object

create

public static Name create(String name)
Create an unqualified Name.

create

public static Name create(char[] val,
                          int offset,
                          int len)

create

public static Name create(String name,
                          String ns)
Create a Name object for the given name and namespace. The strings are case sensitive.

create

public static Name create(String name,
                          Atom nameSpace)
Create a Name object for the given name and namespace where the name and Namespace are already Atoms. The strings are case sensitive.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
return the hash code for this name object
Overrides:
hashCode in class Object

Open SiteSearch 4.1.1
Final