Package com.ms.xml.util
 In this topic

*Methods

 

Packages
  PreviousThis PackageNext
Package com.ms.xml.util   Previous This
Package
Next

 


Class Name

public class Name
{
  // Methods
  public static Name create(String s);
  public boolean equals(Object that);
  public int hashCode();
  public String toString();
}

This class represents a general-purpose Name object, and is used for efficient sharing of duplicate strings in the system.

Methods

create

public static Name create(String s);

Constructs a Name object for an XML Attribute using the given string.

ParameterDescription
s The String object with which to create the Name. The string is case sensitive.

equals

public boolean equals(Object that);

Determines whether the current Name object is equal to the one passed in the that parameter.

Return Value:

Returns true if the objects are equal; otherwise, returns false.

ParameterDescription
that The object with which to compare the Name object.

hashCode

public int hashCode();

Retrieves the hash code for the Name. A global hash table of all Name objects that have been constructed is used to share duplicate strings.

Return Value:

Returns the hash code for the Name.

toString

public String toString();

Retrieves a String representation of the class name of the Name object.

Return Value:

Returns the class name of the Name object.

upnrm.gif