|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.references.impl.SystemPersistableReferenceManagerImpl
YOU MUST OVERRIDE resolveReferencesAfterRestore() IN THIS CLASS!
YOU MUST OVERRIDE getReferenceName() IN SYSTEMPERSISTABLEREFERENCEDOBJECT!
SystemPersistableReferenceManager
,
Serialized FormField Summary | |
---|---|
static String |
copyright
|
static boolean |
debug
|
static HashMap |
EMPTY_MAP
|
protected String |
name
|
protected static String |
NAME_EDEFAULT
The default value of the ' Name ' attribute |
protected EList |
referencingObjectList
|
Constructor Summary | |
---|---|
protected |
SystemPersistableReferenceManagerImpl()
Constructor. |
Method Summary | |
---|---|
static String |
addPathTerminator(String path)
Ensure given path ends with path separator. |
int |
addReferencingObject(ISystemPersistableReferencingObject object)
Add a referencing object to the managed list. |
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)
|
String |
getName()
|
ISystemPersistableReferencingObject |
getReferencedObject(ISystemPersistableReferencedObject object)
Search list of referencing objects to see if one of them references the given referencable object. |
int |
getReferencingObjectCount()
Return how many referencing objects are currently in the list. |
EList |
getReferencingObjectList()
|
int |
getReferencingObjectPosition(ISystemPersistableReferencingObject object)
Return the zero-based position of the given referencing object within the list. |
ISystemPersistableReferencingObject[] |
getReferencingObjects()
Return an array of the referencing objects currently being managed. |
static ReferencesFactory |
initMOF()
Initialize the MOF package. |
protected EList |
internalGetList()
Internal method to get the mof EList that is the current list. |
protected void |
invalidateCache()
Internal method to invalidate any cached info. |
boolean |
isReferenced(ISystemPersistableReferencedObject object)
Return true if the given referencable object is indeed referenced by a referencing object in the current list. |
void |
moveReferencingObjectPosition(int newPosition,
ISystemPersistableReferencingObject object)
Move the given referencing object to a new zero-based position in the list. |
void |
removeAllReferencingObjects()
Remove all objects from the list. |
void |
removeAndDeReferenceAllReferencingObjects()
Remove and dereference all objects from the list. |
int |
removeAndDeReferenceReferencingObject(ISystemPersistableReferencingObject object)
Remove and dereferences a referencing object from the managed list. |
int |
removeReferencingObject(ISystemPersistableReferencingObject object)
Remove a referencing object from the managed list. |
boolean |
resolveReferencesAfterRestore()
YOU MUST OVERRIDE THIS METHOD! |
static SystemPersistableReferenceManager |
restore(IFolder folder,
String fileName)
Restore a persisted manager from disk. |
void |
save(IFolder folder,
String fileName)
Attempt to save contents of manager to disk. |
void |
setName(String newName)
|
void |
setReferencingObjects(ISystemPersistableReferencingObject[] objects,
boolean deReference)
Set in one shot the list of referencing objects. |
String |
toString()
Return string identifying this filter |
String |
toStringGen()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final String NAME_EDEFAULT
Name
' attribute.
getName()
public static boolean debug
public static HashMap EMPTY_MAP
public static final String copyright
protected String name
protected EList referencingObjectList
Constructor Detail |
protected SystemPersistableReferenceManagerImpl()
Method Detail |
protected EClass eStaticClass()
protected EList internalGetList()
protected void invalidateCache()
public ISystemPersistableReferencingObject[] getReferencingObjects()
getReferencingObjects
in interface SystemPersistableReferenceManager
public void setReferencingObjects(ISystemPersistableReferencingObject[] objects, boolean deReference)
setReferencingObjects
in interface SystemPersistableReferenceManager
objects
- An array of referencing objects which is to become the new list.deReference
- true to first de-reference all objects in the existing list.public int addReferencingObject(ISystemPersistableReferencingObject object)
addReferencingObject
in interface SystemPersistableReferenceManager
public int removeReferencingObject(ISystemPersistableReferencingObject object)
Does NOT call removeReference on the master referenced object.
removeReferencingObject
in interface SystemPersistableReferenceManager
public int removeAndDeReferenceReferencingObject(ISystemPersistableReferencingObject object)
DOES call removeReference on the master referenced object.
removeAndDeReferenceReferencingObject
in interface SystemPersistableReferenceManager
public void removeAllReferencingObjects()
Does NOT call removeReference on the master referenced objects.
removeAllReferencingObjects
in interface SystemPersistableReferenceManager
public void removeAndDeReferenceAllReferencingObjects()
DOES call removeReference on the master referenced objects.
removeAndDeReferenceAllReferencingObjects
in interface SystemPersistableReferenceManager
public int getReferencingObjectCount()
getReferencingObjectCount
in interface SystemPersistableReferenceManager
public int getReferencingObjectPosition(ISystemPersistableReferencingObject object)
getReferencingObjectPosition
in interface SystemPersistableReferenceManager
object
- The referencing object to find position of.
public void moveReferencingObjectPosition(int newPosition, ISystemPersistableReferencingObject object)
moveReferencingObjectPosition
in interface SystemPersistableReferenceManager
newPosition
- New zero-based positionobject
- The referencing object to movepublic boolean isReferenced(ISystemPersistableReferencedObject object)
isReferenced
in interface SystemPersistableReferenceManager
object
- The referencable object to which to search for a referencing object within this list
public ISystemPersistableReferencingObject getReferencedObject(ISystemPersistableReferencedObject object)
getReferencedObject
in interface SystemPersistableReferenceManager
object
- The referencable object to which to search for a referencing object within this list
public String toString()
public boolean resolveReferencesAfterRestore()
After restoring this from disk, there is only the referenced object name, not the referenced object pointer, for each referencing object.
This method is called after restore and for each restored object in the list must:
resolveReferencesAfterRestore
in interface SystemPersistableReferenceManager
public void save(IFolder folder, String fileName) throws Exception
save
in interface SystemPersistableReferenceManager
folder
- The folder in which to save the manager.fileName
- The unqualified file name to save to. Should include extension, such as .xmi
Exception
public static SystemPersistableReferenceManager restore(IFolder folder, String fileName) throws Exception
After restoration, YOU MUST CALL resolveReferencesAfterRestore
This presumes yours subclass has overridden that method!
folder
- The folder in which the saved manager exists.fileName
- The unqualified save file name including extension such as .xmi
Exception
public static ReferencesFactory initMOF()
public static String addPathTerminator(String path)
public String getName()
getName
in interface SystemPersistableReferenceManager
public void setName(String newName)
setName
in interface SystemPersistableReferenceManager
newName
- The new value of the Name attributepublic EList getReferencingObjectList()
getReferencingObjectList
in interface SystemPersistableReferenceManager
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
public Object eGet(EStructuralFeature eFeature, boolean resolve)
public boolean eIsSet(EStructuralFeature eFeature)
public void eSet(EStructuralFeature eFeature, Object newValue)
public void eUnset(EStructuralFeature eFeature)
public String toStringGen()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |