com.telelogic.cs.api
Class ChangeRequest

java.lang.Object
  extended by com.telelogic.cs.api.ChangeRequest
All Implemented Interfaces:
java.io.Serializable

public class ChangeRequest
extends java.lang.Object
implements java.io.Serializable

Represents a change request at a particular moment in time. That is, a change request ID (CRID) along with a set of attribute values for the change request when it was retrieved. The attributes are not live; to see their latest values you must retrieve them again. All of the attributes stored in the database are not necessarily on a ChangeRequest object--only those what were asked for from the API returning the object.

Since:
4.7 06
See Also:
Serialized Form

Constructor Summary
ChangeRequest(java.lang.String crid, java.util.Map<java.lang.String,Attribute> attributes)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Attribute getAttribute(java.lang.String name)
          Gets an attribute for this change request at the time it was looked up.
 Attribute[] getAttributes()
          Gets all the attributes that were looked up with this change request.
 java.lang.String getCrid()
          Gets the change request ID, a.k.a., problem number, for this change request.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeRequest

public ChangeRequest(java.lang.String crid,
                     java.util.Map<java.lang.String,Attribute> attributes)
Method Detail

getCrid

public java.lang.String getCrid()
Gets the change request ID, a.k.a., problem number, for this change request. Includes the DCM ID in DCM enabled databases.

Returns:
the CRID for this change request.

getAttribute

public Attribute getAttribute(java.lang.String name)
Gets an attribute for this change request at the time it was looked up. The attributes may be stale by the time they are inspected since they are not live; they are only a snapshot. Only the attributes that were looked up when requesting this change request can be seen though there may be more attributes in the database. Attributes that were not on this change request at the time of lookup cannot be found.

Parameters:
name - the name of the attribute to get.
Returns:
the requested attribute. null if the attribute did not exist on change request or was not requested when looking it up.

getAttributes

public Attribute[] getAttributes()
Gets all the attributes that were looked up with this change request.

Returns:
all the attributes looked up with this change request.
See Also:
getAttribute(String)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


© Copyright IBM Corporation 2000, 2009
US Government Users Restricted Rights--Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Notices