|
org.eclipse.rse.core.references
Class SystemReferencedObject
java.lang.Object
org.eclipse.rse.core.model.RSEPersistableObject
org.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.references.SystemReferencedObject
-
All Implemented Interfaces:
-
IPropertySetContainer,
IRSEModelObject,
IRSEPersistableContainer,
IRSEBaseReferencedObject,
IRSEReferencedObject
-
public abstract class SystemReferencedObject
- extends
RSEModelObject
- implements
IRSEReferencedObject
A class to encapsulate the operations required of an object which supports
references to it by other objects (
SystemReferencingObject ). This
type of class needs to support maintaining an in-memory list of all who
reference it so that list can be following on delete and rename operations.
-
Since:
- org.eclipse.rse.core 3.0
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
helper
protected
SystemReferencedObjectHelper helper
SystemReferencedObject
protected SystemReferencedObject()
- Default constructor. Typically called by EMF factory method.
addReference
public int addReference(
IRSEBaseReferencingObject ref)
- Add a reference, increment reference count, return new count
-
-
Specified by:
-
addReference
in interface
IRSEBaseReferencedObject
-
-
Parameters:
-
ref - the referencing object
-
Returns:
- new count of how many referencing objects reference this object.
removeReference
public int removeReference(
IRSEBaseReferencingObject ref)
- Remove a reference, decrement reference count, return new count
-
-
Specified by:
-
removeReference
in interface
IRSEBaseReferencedObject
-
-
Parameters:
-
ref - the referencing object
-
Returns:
- new count of how many referencing objects reference this object.
getReferenceCount
public int getReferenceCount()
-
Description copied from interface:
IRSEBaseReferencedObject
- Return a count of how many referencing objects reference this object.
-
-
Specified by:
-
getReferenceCount
in interface
IRSEBaseReferencedObject
-
-
Returns:
- a count of how many referencing objects reference this object.
removeAllReferences
public void removeAllReferences()
- Clear the list of referenced objects.
-
-
Specified by:
-
removeAllReferences
in interface
IRSEBaseReferencedObject
-
getReferencingObjects
public
IRSEBaseReferencingObject[] getReferencingObjects()
-
-
Specified by:
-
getReferencingObjects
in interface
IRSEBaseReferencedObject
-
-
Returns:
- a list of all referencing objects of this object
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|