public class ObjectManager extends java.lang.Object
| Constructor and Description |
|---|
ObjectManager()
Empty constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNamedObj(NamedObj namedObj)
Add a NamedObject to the ObjectManager.
|
NamedObj |
getHighestObjectRevision(KeplerLSID lsid)
Return the NamedObj that has the highest revision number for a given LSID
after searching through all the NamedObjs accessible by the
ObjectManager.
|
static ObjectManager |
getInstance()
Method for getting an instance of this singleton class.
|
NamedObj |
getObjectRevision(KeplerLSID lsid) |
java.lang.String |
getObjectType(KeplerLSID lsid) |
void |
printDebugInfo()
Print the objects that are currently registered with the ObjectManager.
|
NamedObj |
removeNamedObj(NamedObj namedObj)
Attempt to remove NamedObj from ObjectManager:
if getIdFor(namedObj) returns an LSID for an object
in the ObjectManager, it will be removed.
|
java.util.ArrayList<NamedObj> |
removeNamedObjs(NamedObj namedObj)
Attempt to remove NamedObj from ObjectManager:
if getIdFor(namedObj) returns an LSID for an object
in the ObjectManager, it will be removed.
|
NamedObj |
removeObject(KeplerLSID lsid)
Attempts to remove object from ObjectManager:
if getObjectRevision(lsid) returns a NamedObj, calls removeNamedObj on
this NamedObj.
|
NamedObj |
removeObjectForLSID(KeplerLSID lsid) |
java.util.ArrayList<NamedObj> |
removeObjectsForLSIDWithoutRevision(java.lang.String lsidWithoutRevision)
Remove all NamedObjects from ObjectManager that match this lsid without
revision.
|
public ObjectManager()
public void addNamedObj(NamedObj namedObj) throws java.lang.Exception
namedObj - java.lang.Exceptionpublic NamedObj removeNamedObj(NamedObj namedObj)
namedObj - public java.util.ArrayList<NamedObj> removeNamedObjs(NamedObj namedObj)
namedObj - public NamedObj removeObject(KeplerLSID lsid) throws java.lang.Exception
lsid - java.lang.Exceptionpublic NamedObj removeObjectForLSID(KeplerLSID lsid)
lsid - for the NamedObj to remove from ObjectManagerpublic java.util.ArrayList<NamedObj> removeObjectsForLSIDWithoutRevision(java.lang.String lsidWithoutRevision)
lsidWithoutRevision - public java.lang.String getObjectType(KeplerLSID lsid) throws java.lang.Exception
lsid - java.lang.Exceptionpublic NamedObj getObjectRevision(KeplerLSID lsid) throws java.lang.Exception
lsid - java.lang.Exceptionpublic NamedObj getHighestObjectRevision(KeplerLSID lsid) throws java.lang.Exception
lsid - java.lang.Exceptionpublic void printDebugInfo()
public static ObjectManager getInstance()