public class KeplerLocalLSIDService extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
KeplerLocalLSIDService()
Constructor for the KeplerLocalLSIDService object
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator |
assignedLSIDs()
Description of the Method
|
void |
assignLSID(java.lang.String lsid,
NamedObj obj)
Adds a named object to an lsid that hasn't been previously assigned.
|
void |
commitChanges()
TODO: throw error
|
java.lang.String |
createLocallyUniqueLSID(java.lang.String namespace)
This is a simple algorithm that computes a new id for a given namespace
in the default domain.
|
java.lang.String |
createLSID(java.lang.String namespace,
java.lang.String id) |
EntityTreeModel |
getBasicActorLibrary()
This operation provides access to the assigned library model.
|
NamedObj |
getData(java.lang.String lsid) |
java.util.Iterator |
getLSIDFor(NamedObj obj) |
static KeplerLocalLSIDService |
instance() |
boolean |
isAssignedLSID(java.lang.String lsid) |
boolean |
isWellFormedLSID(java.lang.String lsid) |
static void |
main(java.lang.String[] args)
The main program for the KeplerLocalLSIDService class
|
void |
setBasicActorLibrary(EntityTreeModel _libraryModel)
Assigns the current kepler actor library.
|
void |
updateLSID(java.lang.String lsid,
NamedObj obj)
Updates a previously assigned lsid to be assigned the given object.
|
protected KeplerLocalLSIDService()
public static KeplerLocalLSIDService instance()
public void setBasicActorLibrary(EntityTreeModel _libraryModel)
_libraryModel - The current kepler actor librarypublic EntityTreeModel getBasicActorLibrary()
public void assignLSID(java.lang.String lsid, NamedObj obj) throws IllegalLSIDAssignmentException
obj - The object to assign an lsid tolsid - Description of the ParameterIllegalLSIDAssignmentException - Description of the Exceptionpublic void updateLSID(java.lang.String lsid, NamedObj obj) throws IllegalLSIDAssignmentException
lsid - the lsid to updateobj - the new object to connect to the lsidIllegalLSIDAssignmentException - Description of the Exceptionpublic java.lang.String createLSID(java.lang.String namespace, java.lang.String id) throws IllegalLSIDException
namespace - Description of the Parameterid - Description of the ParameterIllegalLSIDException - Description of the Exceptionpublic java.lang.String createLocallyUniqueLSID(java.lang.String namespace)
namespace - Description of the Parameterpublic java.util.Iterator getLSIDFor(NamedObj obj)
obj - Description of the Parameterpublic boolean isAssignedLSID(java.lang.String lsid)
lsid - the lsid to testpublic boolean isWellFormedLSID(java.lang.String lsid)
lsid - the lsid to testpublic NamedObj getData(java.lang.String lsid)
lsid - Description of the Parameterpublic void commitChanges()
public java.util.Iterator assignedLSIDs()
public static void main(java.lang.String[] args)
args - The command line arguments