|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.references.impl.SystemReferencedObjectHelper
This is a class that implements all the methods in the ISystemReferencedObject. It makes implementing this interface trivial. The easiest use of this class is to subclass it, but since that is not always possible, it is not abstract and hence can be leveraged via containment.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
SystemReferencedObjectHelper()
Constructor for SystemReferencedObjectHelper |
Method Summary | |
---|---|
int |
addReference(ISystemReferencingObject ref)
Add a reference, increment reference count, return new count |
protected void |
assertThis(boolean assertion,
String msg)
Little assertion method for debugging purposes |
int |
getReferenceCount()
Return a count of how many referencing objects reference this object. |
ISystemReferencingObject[] |
getReferencingObjects()
Return a list of all referencing objects of this object |
void |
removeAllReferences()
Clear the list of referenced objects. |
int |
removeReference(ISystemReferencingObject ref)
Remove a reference, decrement reference count, return new count |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
Constructor Detail |
public SystemReferencedObjectHelper()
Method Detail |
public int addReference(ISystemReferencingObject ref)
ISystemReferencedObject
addReference
in interface ISystemReferencedObject
ISystemReferencedObject.addReference(ISystemReferencingObject)
public int removeReference(ISystemReferencingObject ref)
ISystemReferencedObject
removeReference
in interface ISystemReferencedObject
ISystemReferencedObject.removeReference(ISystemReferencingObject)
public int getReferenceCount()
ISystemReferencedObject
getReferenceCount
in interface ISystemReferencedObject
ISystemReferencedObject.getReferenceCount()
public void removeAllReferences()
removeAllReferences
in interface ISystemReferencedObject
public ISystemReferencingObject[] getReferencingObjects()
ISystemReferencedObject
getReferencingObjects
in interface ISystemReferencedObject
ISystemReferencedObject.getReferencingObjects()
protected void assertThis(boolean assertion, String msg)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |