org.embl.ebi.escience.baclava.lsid
Class StupidLSIDProvider

java.lang.Object
  extended by org.embl.ebi.escience.baclava.lsid.StupidLSIDProvider
All Implemented Interfaces:
LSIDProvider

public class StupidLSIDProvider
extends java.lang.Object
implements LSIDProvider

A ridiculously over simplified implementation of the LSIDProvider interface, just returns strings appended with a counter. IDs will be unique within a single JVM instance but certainly not beyond it.

Author:
Tom Oinn

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.embl.ebi.escience.baclava.LSIDProvider
LSIDProvider.NamespaceEnumeration
 
Field Summary
 
Fields inherited from interface org.embl.ebi.escience.baclava.LSIDProvider
DATATHINGCOLLECTION, DATATHINGLEAF, WFDEFINITION, WFINSTANCE
 
Constructor Summary
StupidLSIDProvider()
          Default constructor so an instance can be created for use by the enactor framework
 
Method Summary
 java.lang.String getID(LSIDProvider.NamespaceEnumeration namespace)
          Returns a particularly dumb implementation of a unique identifier
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StupidLSIDProvider

public StupidLSIDProvider()
Default constructor so an instance can be created for use by the enactor framework

Method Detail

getID

public java.lang.String getID(LSIDProvider.NamespaceEnumeration namespace)
Returns a particularly dumb implementation of a unique identifier

Specified by:
getID in interface LSIDProvider