RSE
Release 3.2

org.eclipse.rse.core.references
Interface IRSEBaseReferencedObject

All Known Subinterfaces:
IRSEBasePersistableReferencedObject, IRSEPersistableReferencedObject, IRSEReferencedObject, ISystemFilter, ISystemFilterPool, ISystemFilterString
All Known Implementing Classes:
SystemReferencedObject

public interface IRSEBaseReferencedObject

Interface that any master object that is referenced must implement.


Method Summary
 int addReference(IRSEBaseReferencingObject ref)
          Add a reference, increment reference count, return new count
 int getReferenceCount()
          Return a count of how many referencing objects reference this object.
 IRSEBaseReferencingObject[] getReferencingObjects()
           
 void removeAllReferences()
          Clear the list of referenced objects.
 int removeReference(IRSEBaseReferencingObject ref)
          Remove a reference, decrement reference count, return new count
 

Method Detail

addReference

int addReference(IRSEBaseReferencingObject ref)
Add a reference, increment reference count, return new count

Parameters:
ref - the referencing object from which this object will now be referenced.
Returns:
new count of how many referencing objects reference this object.

removeReference

int removeReference(IRSEBaseReferencingObject ref)
Remove a reference, decrement reference count, return new count

Parameters:
ref - the referencing object from which this object is no longer referenced.
Returns:
new count of how many referencing objects reference this object.

getReferenceCount

int getReferenceCount()
Return a count of how many referencing objects reference this object.

Returns:
a count of how many referencing objects reference this object.

removeAllReferences

void removeAllReferences()
Clear the list of referenced objects.


getReferencingObjects

IRSEBaseReferencingObject[] getReferencingObjects()
Returns:
a list of all referencing objects of this object

RSE
Release 3.2

Copyright (c) IBM Corporation and others 2000, 2010. All Rights Reserved.