com.telelogic.cs.api
Class ChangeObject
java.lang.Object
com.telelogic.cs.api.ChangeObject
- All Implemented Interfaces:
- java.io.Serializable
public class ChangeObject
- extends java.lang.Object
- implements java.io.Serializable
Represents an object at a particular moment in time. That is,
a cvid along with a set of attribute values for the
object 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 Object
object--only
those what were asked for from the API returning the object.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
SCCS_ID
|
Constructor Summary |
ChangeObject(java.lang.String cvid,
java.util.Map<java.lang.String,Attribute> attributes)
|
Method Summary |
Attribute |
getAttribute(java.lang.String name)
Gets an attribute for this object at the time it was looked up. |
Attribute[] |
getAttributes()
Gets all the attributes that were looked up with this object. |
java.lang.String |
getCvid()
Gets the cvid for this object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SCCS_ID
public static final java.lang.String SCCS_ID
- See Also:
- Constant Field Values
ChangeObject
public ChangeObject(java.lang.String cvid,
java.util.Map<java.lang.String,Attribute> attributes)
getCvid
public java.lang.String getCvid()
- Gets the cvid for this object.
- Returns:
- the cvid for this object.
getAttribute
public Attribute getAttribute(java.lang.String name)
- Gets an attribute for this object 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 when requesting this
object can be seen though there may be more attributes in the database.
Attributes that were not on this object 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 object or was not requested when looking it up.
getAttributes
public Attribute[] getAttributes()
- Gets all the attributes that were looked up with this object.
- Returns:
- all the attributes looked up with this object.
- See Also:
getAttribute(String)
toString
public java.lang.String toString()
- Overrides:
toString
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