7.0 Action Request System Java API

com.remedy.arsys.api
Class ReferenceBase

java.lang.Object
  extended bycom.remedy.arsys.api.ReferenceBase
Direct Known Subclasses:
ExternalReferenceInfo, ReferenceInfo

public class ReferenceBase
extends java.lang.Object

The ReferenceBase class is the base class for SYSTEM_REFERENCE and EXTERNAL_REFERENCE. (getDataType()) Used to set and return the objects referenced by a container.


Field Summary
static int EXTERNAL_REFERENCE
          External reference data type (ExternalReferenceInfo)
static int SYSTEM_REFERENCE
          Internal reference data type (InternalID)
 
Constructor Summary
protected ReferenceBase(java.lang.String label, java.lang.String desc, ReferenceType refType, int dataType)
           
 
Method Summary
 java.lang.Object clone()
          Makes a deep copy of the object.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality.
 int getDataType()
          Returns an integer specifying the type of reference.
 char[] getDescription()
          Returns a string specifying a display-only description for the reference.
 char[] getLabel()
          Returns a string specifying a display-only label for the reference.
 ReferenceType getReferenceType()
          Returns union that defines either an internal or external reference depending on its datatype,which is either 0 (Constants.ARREF_DATA_ARSREF) or 1 (Constants.ARREF_DATA_EXTREF).
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setDataType(int nType)
          Sets an integer specifying the type of reference.
 void setDescription(char[] desc)
          Sets a character string specifying a display-only description for the reference.
 void setDescription(java.lang.String desc)
          Sets a string specifying a display-only description for the reference.
 void setLabel(char[] label)
          Sets a character string specifying a display-only label for the reference.
 void setLabel(java.lang.String label)
          Sets a string specifying a display-only label for the reference.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_REFERENCE

public static final int SYSTEM_REFERENCE
Internal reference data type (InternalID)

See Also:
Constant Field Values

EXTERNAL_REFERENCE

public static final int EXTERNAL_REFERENCE
External reference data type (ExternalReferenceInfo)

See Also:
Constant Field Values
Constructor Detail

ReferenceBase

protected ReferenceBase(java.lang.String label,
                        java.lang.String desc,
                        ReferenceType refType,
                        int dataType)
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Makes a deep copy of the object.

Throws:
java.lang.CloneNotSupportedException

getLabel

public char[] getLabel()
Returns a string specifying a display-only label for the reference.


setLabel

public void setLabel(java.lang.String label)
Sets a string specifying a display-only label for the reference. Its length is limited by Constants.ARMAX_CON_LABEL_LEN (255 bytes).


setLabel

public void setLabel(char[] label)
Sets a character string specifying a display-only label for the reference. Its length is limited by Constants.ARMAX_CON_LABEL_LEN (255 bytes).


getDescription

public char[] getDescription()
Returns a string specifying a display-only description for the reference.


setDescription

public void setDescription(java.lang.String desc)
Sets a string specifying a display-only description for the reference. Its length is limited by Constants.ARMAX_CON_DESCRIPTION_LEN (2000 bytes).


setDescription

public void setDescription(char[] desc)
Sets a character string specifying a display-only description for the reference. Its length is limited by Constants.ARMAX_CON_DESCRIPTION_LEN (2000 bytes).


getReferenceType

public ReferenceType getReferenceType()
Returns union that defines either an internal or external reference depending on its datatype,which is either 0 (Constants.ARREF_DATA_ARSREF) or 1 (Constants.ARREF_DATA_EXTREF).


getDataType

public int getDataType()
Returns an integer specifying the type of reference. Possible values include the following constants (reference types):

AR System-defined external references


setDataType

public void setDataType(int nType)
Sets an integer specifying the type of reference. Possible values include the following constants:

AR System-defined external references


equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality. The result is true only if the argument is not null, is of same type and 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.


7.0 Action Request System Java API