gov.nih.nci.caarray.domain
Class LSID

java.lang.Object
  extended by gov.nih.nci.caarray.domain.LSID
All Implemented Interfaces:
java.io.Serializable

public final class LSID
extends java.lang.Object
implements java.io.Serializable

Life Science Identifier -- a unique identifier for entities. From Wikipedia:

Life Science Identifiers are a way to name and locate pieces of information on the web. Essentially, an LSID is a unique identifier for some data, and the LSID protocol specifies a standard way to locate the data (as well as a standard way of describing that data).

An LSID is represented as a Uniform Resource Name (URN) with the following format. URN:LSID:<Authority>:<Namespace>:<ObjectID>[:<Version>]

See Also:
Serialized Form

Constructor Summary
LSID(java.lang.String lsidString)
          Sets the LSID components for this entity.
LSID(java.lang.String authority, java.lang.String namespace, java.lang.String objectId)
          Instantiates a complete, populated LSID.
 
Method Summary
 java.lang.String getAuthority()
           
 java.lang.String getNamespace()
           
 java.lang.String getObjectId()
           
 java.lang.String toString()
          Returns the full formatted LSID string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LSID

public LSID(java.lang.String authority,
            java.lang.String namespace,
            java.lang.String objectId)
Instantiates a complete, populated LSID.

Parameters:
authority - the LSID authority
namespace - the LSID namespace
objectId - the LSID objectID

LSID

public LSID(java.lang.String lsidString)
Sets the LSID components for this entity. If the authority and namespace are both absent, the default caArray authority and namespace will be used. The LSID string is of the form authority:namespace:objectId where authority can be absent, or authority and namespace can both be absent.

Parameters:
lsidString - the LSID string
Method Detail

getAuthority

public java.lang.String getAuthority()
Returns:
the authority

getNamespace

public java.lang.String getNamespace()
Returns:
the namespace

getObjectId

public java.lang.String getObjectId()
Returns:
the objectId

toString

public java.lang.String toString()
Returns the full formatted LSID string.

Overrides:
toString in class java.lang.Object
Returns:
the formatted LSID.