com.remedy.arsys.api
Class ServerNameID

java.lang.Object
  |
  +--com.remedy.arsys.api.ServerNameID
All Implemented Interfaces:
java.lang.Cloneable

public class ServerNameID
extends java.lang.Object
implements java.lang.Cloneable

The ServerNameID class is used to represent the ID of the AR System server name. For example, this class can be used to return a list of servers, as in the following:

 ServerNameID[] serverList = Util.ARGetListServer( context );
 


Constructor Summary
ServerNameID()
          constructor
ServerNameID(char[] str)
           
ServerNameID(ServerNameID nameID)
           
ServerNameID(java.lang.String str)
           
 
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 ServerNameID.
 int hashCode()
          This method can be used to populate a hash table.
 void setValue(java.lang.String str)
          Sets name information whose limit is specified by Constants.AR_MAX_SERVER_SIZE.
 char[] toCharArray()
          Returns server name in an array of characters.
 java.lang.String toString()
          Returns server name in a string.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerNameID

public ServerNameID()
constructor

ServerNameID

public ServerNameID(java.lang.String str)
             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException - if str length is longer than Constants.AR_MAX_SERVER_SIZE

ServerNameID

public ServerNameID(char[] str)
             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException - if str length is longer than Constants.AR_MAX_SERVER_SIZE

ServerNameID

public ServerNameID(ServerNameID nameID)
Method Detail

toCharArray

public char[] toCharArray()
Returns server name in an array of characters.

toString

public java.lang.String toString()
Returns server name in a string.
Overrides:
toString in class java.lang.Object

setValue

public void setValue(java.lang.String str)
              throws java.lang.IllegalArgumentException
Sets name information whose limit is specified by Constants.AR_MAX_SERVER_SIZE.
Throws:
java.lang.IllegalArgumentException - if str length is longer than Constants.AR_MAX_SERVER_SIZE.

equals

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

hashCode

public int hashCode()
This method can be used to populate a hash table. Implicitly used method to test equality of objects.
Overrides:
hashCode in class java.lang.Object

clone

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