eu.etaxonomy.cdm.model.common
Class LSID

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.LSID
All Implemented Interfaces:
Serializable

public class LSID
extends Object
implements Serializable

This class is copied from com.ibm.lsid.LSID, I needed to re-implement this since the domain objects are required to be Serializable

Author:
Ben Szekely (bhszekel@us.ibm.com), ben.clark
See Also:
com.ibm.lsid.client.LSID, Serialized Form

Constructor Summary
LSID(String lsid)
          Construct a new LSID with the String representation.
LSID(String authority, String namespace, String object, String revision)
          Construct a new LSID with the given components
 
Method Summary
 boolean equals(Object lsid)
          Two LSIDs are equal their string representations are equal disregarding case.
 String getAuthority()
          Returns the authority component of the LSID
 String getLsid()
          Returns the lsid
 String getNamespace()
          Returns the namespace component of the LSID
 String getObject()
          Returns the object component of the LSID
 String getRevision()
          Returns the revision component of the LSID if it exists
static boolean isLsid(String strLsid)
           
 String toString()
          return the string representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LSID

public LSID(String lsid)
     throws com.ibm.lsid.MalformedLSIDException
Construct a new LSID with the String representation.

Parameters:
String - The lsid String respresentation
Throws:
com.ibm.lsid.MalformedLSIDException

LSID

public LSID(String authority,
            String namespace,
            String object,
            String revision)
     throws com.ibm.lsid.MalformedLSIDException
Construct a new LSID with the given components

Parameters:
String - the authority
String - the namespace
String - the object
String - the revision, can be null
Throws:
com.ibm.lsid.MalformedLSIDException
Method Detail

getLsid

public String getLsid()
Returns the lsid

Returns:
String The lsid String representation

getAuthority

public String getAuthority()
Returns the authority component of the LSID

Returns:
LSIDAuthority the authority

getNamespace

public String getNamespace()
Returns the namespace component of the LSID

Returns:
String

getObject

public String getObject()
Returns the object component of the LSID

Returns:
String

getRevision

public String getRevision()
Returns the revision component of the LSID if it exists

Returns:
String

isLsid

public static boolean isLsid(String strLsid)

toString

public String toString()
return the string representation

Overrides:
toString in class Object
Returns:
String

equals

public boolean equals(Object lsid)
Two LSIDs are equal their string representations are equal disregarding case.

Overrides:
equals in class Object


Copyright © 2007-2012 EDIT. All Rights Reserved.