7.0 Action Request System Java API

com.remedy.arsys.api
Class ServerNameID

java.lang.Object
  extended bycom.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()
          Returns the hash code value for this instance of the current class.
 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.


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 only if the argument is not null and is a ServerNameID 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