Remote Systems
v6.4.1

com.ibm.etools.systems.references.impl
Class SystemPersistableReferencedObjectImpl

java.lang.Object
  extended byEObjectImpl
      extended bycom.ibm.etools.systems.references.impl.SystemReferencedObjectImpl
          extended bycom.ibm.etools.systems.references.impl.SystemPersistableReferencedObjectImpl
All Implemented Interfaces:
ISystemPersistableReferencedObject, ISystemReferencedObject, SystemPersistableReferencedObject, SystemReferencedObject
Direct Known Subclasses:
SystemFilterPoolImpl

public class SystemPersistableReferencedObjectImpl
extends SystemReferencedObjectImpl
implements SystemPersistableReferencedObject

YOUR SUBCLASS MUST OVERRIDE getReferenceName()!

See Also:
SystemPersistableReferenceManager, Serialized Form

Field Summary
static String copyright
           
 
Constructor Summary
SystemPersistableReferencedObjectImpl()
          Constructor.
 
Method Summary
 int addReference(ISystemReferencingObject ref)
          Add a reference, increment reference count, return new count
protected  EClass eStaticClass()
           
 int getReferenceCount()
          Return a count of how many referencing objects reference this object.
 String getReferenceName()
          Return the unique reference name of 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

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemPersistableReferencedObjectImpl

public SystemPersistableReferencedObjectImpl()
Constructor. Typically called by EMF framework via factory create method.

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class SystemReferencedObjectImpl

getReferenceName

public String getReferenceName()
Return the unique reference name of this object.

As required by the ISystemPersistableReferencedObject interface.

YOUR SUBCLASS MUST OVERRIDE THIS!!

Specified by:
getReferenceName in interface ISystemPersistableReferencedObject

addReference

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

Specified by:
addReference in interface ISystemReferencedObject
Overrides:
addReference in class SystemReferencedObjectImpl
Returns:
new count of how many referencing objects reference this object.

removeReference

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

Specified by:
removeReference in interface ISystemReferencedObject
Overrides:
removeReference in class SystemReferencedObjectImpl
Returns:
new count of how many referencing objects reference this object.

getReferenceCount

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

Specified by:
getReferenceCount in interface ISystemReferencedObject
Overrides:
getReferenceCount in class SystemReferencedObjectImpl

removeAllReferences

public void removeAllReferences()
Clear the list of referenced objects.

Specified by:
removeAllReferences in interface ISystemReferencedObject
Overrides:
removeAllReferences in class SystemReferencedObjectImpl

getReferencingObjects

public ISystemReferencingObject[] getReferencingObjects()
Return a list of all referencing objects of this object

Specified by:
getReferencingObjects in interface ISystemReferencedObject
Overrides:
getReferencingObjects in class SystemReferencedObjectImpl

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.