Remote Systems
v6.4.1

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

java.lang.Object
  extended byEObjectImpl
      extended bycom.ibm.etools.systems.references.impl.SystemReferencingObjectImpl
          extended bycom.ibm.etools.systems.references.impl.SystemPersistableReferencingObjectImpl
All Implemented Interfaces:
ISystemPersistableReferencingObject, ISystemReferencingObject, SystemPersistableReferencingObject, SystemReferencingObject
Direct Known Subclasses:
SystemFilterPoolReferenceImpl

public class SystemPersistableReferencingObjectImpl
extends SystemReferencingObjectImpl
implements SystemPersistableReferencingObject

This class represents a object that references another object, where this reference is persistable to disk.

See Also:
SystemPersistableReferenceManager, Serialized Form

Field Summary
static String copyright
           
protected static String REFERENCED_OBJECT_NAME_EDEFAULT
          The default value of the 'Referenced Object Name' attribute
protected  String referencedObjectName
           
 
Fields inherited from class com.ibm.etools.systems.references.impl.SystemReferencingObjectImpl
referenceBroken
 
Constructor Summary
protected SystemPersistableReferencingObjectImpl()
          Constructor.
 
Method Summary
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 SystemPersistableReferenceManager getParentReferenceManager()
           
 ISystemReferencedObject getReferencedObject()
          Get the object which we reference
 String getReferencedObjectName()
          Get the persistable referenced object name.
 int removeReference()
          Fastpath to getReferencedObject().removeReference(this).
 void setParentReferenceManager(SystemPersistableReferenceManager newParentReferenceManager)
           
 void setReferencedObject(ISystemPersistableReferencedObject obj)
          Set the in-memory reference to the master object.
 void setReferencedObject(ISystemReferencedObject obj)
          Set the object to which we reference
 void setReferencedObjectName(String newReferencedObjectName)
          Set the persistable referenced object name
 String toString()
           
 
Methods inherited from class com.ibm.etools.systems.references.impl.SystemReferencingObjectImpl
isReferenceBroken, setReferenceBroken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.references.ISystemReferencingObject
isReferenceBroken, setReferenceBroken
 

Field Detail

REFERENCED_OBJECT_NAME_EDEFAULT

protected static final String REFERENCED_OBJECT_NAME_EDEFAULT
The default value of the 'Referenced Object Name' attribute.

See Also:
getReferencedObjectName()

copyright

public static final String copyright
See Also:
Constant Field Values

referencedObjectName

protected String referencedObjectName
Constructor Detail

SystemPersistableReferencingObjectImpl

protected SystemPersistableReferencingObjectImpl()
Constructor. Typically called by MOF framework via factory create method.

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class SystemReferencingObjectImpl

setReferencedObjectName

public void setReferencedObjectName(String newReferencedObjectName)
Set the persistable referenced object name

Specified by:
setReferencedObjectName in interface SystemPersistableReferencingObject
Parameters:
newReferencedObjectName - The new value of the ReferencedObjectName attribute

setReferencedObject

public void setReferencedObject(ISystemPersistableReferencedObject obj)
Set the in-memory reference to the master object. This implementation also extracts that master object's name and calls setReferencedObjectName as part of this method call.

Specified by:
setReferencedObject in interface ISystemPersistableReferencingObject
See Also:
ISystemPersistableReferencingObject.setReferencedObject(ISystemPersistableReferencedObject)

getReferencedObjectName

public String getReferencedObjectName()
Get the persistable referenced object name. Handled by MOF generated code.

Specified by:
getReferencedObjectName in interface SystemPersistableReferencingObject
Returns:
The value of the ReferencedObjectName attribute

setReferencedObject

public void setReferencedObject(ISystemReferencedObject obj)
Description copied from interface: ISystemReferencingObject
Set the object to which we reference

Specified by:
setReferencedObject in interface ISystemReferencingObject
Overrides:
setReferencedObject in class SystemReferencingObjectImpl
See Also:
ISystemReferencingObject.setReferencedObject(ISystemReferencedObject)

getReferencedObject

public ISystemReferencedObject getReferencedObject()
Description copied from interface: ISystemReferencingObject
Get the object which we reference

Specified by:
getReferencedObject in interface ISystemReferencingObject
Overrides:
getReferencedObject in class SystemReferencingObjectImpl
See Also:
ISystemReferencingObject.getReferencedObject()

removeReference

public int removeReference()
Description copied from interface: ISystemReferencingObject
Fastpath to getReferencedObject().removeReference(this).

Specified by:
removeReference in interface ISystemReferencingObject
Overrides:
removeReference in class SystemReferencingObjectImpl
See Also:
ISystemReferencingObject.removeReference()

getParentReferenceManager

public SystemPersistableReferenceManager getParentReferenceManager()
Specified by:
getParentReferenceManager in interface SystemPersistableReferencingObject
Returns:
The ParentReferenceManager reference

setParentReferenceManager

public void setParentReferenceManager(SystemPersistableReferenceManager newParentReferenceManager)
Specified by:
setParentReferenceManager in interface SystemPersistableReferencingObject

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     Class baseClass,
                                     NotificationChain msgs)


eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)


eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)


eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)


eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

eUnset

public void eUnset(EStructuralFeature eFeature)

toString

public String toString()

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.