com.tivoli.twg.engine
Class TWGConRelationship

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGConObject
      extended bycom.tivoli.twg.engine.TWGConRelationship

public class TWGConRelationship
extends TWGConObject

Console shadow for TWGRelationship


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConRelationship(long obj_id)
          Constructor for TWGConRelationship with given object ID
 
Method Summary
 LongValueSet getDownwardLinks()
          Get value set containing downward linked object IDs
 long getIsAObjectID()
          Get ID of TWGManagedObject associated with relationship
 javax.swing.ImageIcon getLargeClosedImage()
          Get image for large 'closed' image
 javax.swing.ImageIcon getLargeOpenImage()
          Get image for large 'open' image
 java.lang.String getName()
          Get name of relationship
 long getPrimaryUpwardLink()
          Get object ID of primary upward link
 javax.swing.ImageIcon getSmallClosedImage()
          Get image for small 'closed' image
 javax.swing.ImageIcon getSmallOpenImage()
          Get image for small 'open' image
 LongValueSet getUpwardLinks()
          Get value set containing upward (non-primary) linked object IDs
 boolean isRelationshipConsoleInfo()
          Test if the console should get the image to display and the name to label the object with from the relationship object rather than from the managed object for the case where the relationship object is a managed object.
 java.lang.String toString()
          Get string representation of object
 void UpdateUsingShadowRecord(byte[] buf, int rec_off, int rec_len)
          Update object using shadow record created by the the engine object which is matched with this class.
 
Methods inherited from class com.tivoli.twg.engine.TWGConObject
AllObjects, AllObjects, Delete, DeleteObjects, DeregisterListener, FindObject, getBaseClassName, LookUpShadowClass, ObjectID, ProcessUpdateRequest, RegisterListener, SetObjectID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TWGConRelationship

public TWGConRelationship(long obj_id)
                   throws DuplicateObjectIDException
Constructor for TWGConRelationship with given object ID

Parameters:
obj_id - - object ID of console object
Throws:
DuplicateObjectIDException - if ID is duplicate of existing object ID
Method Detail

UpdateUsingShadowRecord

public void UpdateUsingShadowRecord(byte[] buf,
                                    int rec_off,
                                    int rec_len)
Update object using shadow record created by the the engine object which is matched with this class.

Specified by:
UpdateUsingShadowRecord in class TWGConObject
Parameters:
rec_off - - offset of shadow record in byte array
rec_len - - length of shadow record in byte array
buf - - byte array containing opaque representation of shadowed attributes

toString

public java.lang.String toString()
Get string representation of object

Overrides:
toString in class TWGConObject
Returns:
string representation

getName

public java.lang.String getName()
Get name of relationship

Returns:
name

getIsAObjectID

public long getIsAObjectID()
Get ID of TWGManagedObject associated with relationship

Returns:
managed object ID, or -1 if none

getUpwardLinks

public LongValueSet getUpwardLinks()
Get value set containing upward (non-primary) linked object IDs

Returns:
upward link object ID value set (primary not included)

getDownwardLinks

public LongValueSet getDownwardLinks()
Get value set containing downward linked object IDs

Returns:
downward link object ID value set

getPrimaryUpwardLink

public long getPrimaryUpwardLink()
Get object ID of primary upward link

Returns:
object ID for primary upward link, or 0 if none

getSmallOpenImage

public javax.swing.ImageIcon getSmallOpenImage()
Get image for small 'open' image

Returns:
image, or null if not defined

getSmallClosedImage

public javax.swing.ImageIcon getSmallClosedImage()
Get image for small 'closed' image

Returns:
image, or null if not defined

getLargeOpenImage

public javax.swing.ImageIcon getLargeOpenImage()
Get image for large 'open' image

Returns:
image, or null if not defined

getLargeClosedImage

public javax.swing.ImageIcon getLargeClosedImage()
Get image for large 'closed' image

Returns:
image, or null if not defined

isRelationshipConsoleInfo

public boolean isRelationshipConsoleInfo()
Test if the console should get the image to display and the name to label the object with from the relationship object rather than from the managed object for the case where the relationship object is a managed object.

Returns:
if true, use the data from the relationship object, otherwise use the data from the managed object.