7.0 Action Request System Java API

com.remedy.arsys.api
Class NameID

java.lang.Object
  extended bycom.remedy.arsys.api.NameID
All Implemented Interfaces:
java.lang.Cloneable, IARIdentifier, java.io.Serializable
Direct Known Subclasses:
ActiveLinkKey, ContainerKey, EscalationKey, FilterKey, MenuKey, SchemaKey

public class NameID
extends java.lang.Object
implements java.lang.Cloneable, IARIdentifier, java.io.Serializable

The NameID class represents the names of objects.

See Also:
Serialized Form

Constructor Summary
NameID()
          constructor
NameID(char[] str)
          Constructor that takes a character array.
NameID(NameID nameID)
          Constructor that takes a NameID.
NameID(java.lang.String str)
          Constructor that takes a string.
 
Method Summary
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality of NameID.
 java.lang.String getValue()
          Returns name information.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setValue(java.lang.String str)
          Sets name information.
 char[] toCharArray()
          Returns a string description of the object.
 java.lang.String toString()
          Returns a string description of the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameID

public NameID()
constructor


NameID

public NameID(java.lang.String str)
       throws java.lang.IllegalArgumentException
Constructor that takes a string.

Throws:
java.lang.IllegalArgumentException - if str length is longer than Constants.AR_MAX_NAME_SIZE

NameID

public NameID(char[] str)
       throws java.lang.IllegalArgumentException
Constructor that takes a character array.

Throws:
java.lang.IllegalArgumentException - if str length is longer than Constants.AR_MAX_NAME_SIZE

NameID

public NameID(NameID nameID)
Constructor that takes a NameID.

Method Detail

toCharArray

public char[] toCharArray()
Returns a string description of the object. Access Methods for m_name.


toString

public java.lang.String toString()
Returns a string description of the object.


getValue

public java.lang.String getValue()
Returns name information.


setValue

public void setValue(java.lang.String str)
              throws java.lang.IllegalArgumentException
Sets name information.

Throws:
java.lang.IllegalArgumentException - if string is longer than Constants.AR_MAX_NAME_SIZE.

equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality of NameID. The result is true only if the argument is not null and is a NameID object that represents the same content.


hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Throws:
java.lang.CloneNotSupportedException

7.0 Action Request System Java API