org.genepattern.util
Class LSID

java.lang.Object
  extended byorg.genepattern.util.LSID
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class LSID
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String DELIMITER
           
static java.lang.String SCHEME
           
static java.lang.String URN
           
static java.lang.String VERSION_DELIMITER
           
 
Constructor Summary
LSID(java.lang.String lsid)
           
LSID(java.lang.String authority, java.lang.String namespace, java.lang.String identifier, java.lang.String version)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 LSID copy()
           
 boolean equals(java.lang.Object other)
           
 java.lang.String getAuthority()
           
 java.lang.String getIdentifier()
           
 java.lang.String getIncrementedMinorVersion()
           
 java.lang.String getNamespace()
           
 java.lang.String getVersion()
           
 int hashCode()
           
 boolean hasVersion()
           
 boolean isEquivalent(LSID other)
           
static boolean isLSID(java.lang.String lsid)
           
 boolean isSameAuthority(LSID other)
           
 boolean isSameIdentifier(LSID other)
           
 boolean isSameNamespace(LSID other)
           
 boolean isSimilar(LSID other)
           
 boolean matchingVersion(LSID other)
           
 void setAuthority(java.lang.String authority)
           
 void setIdentifier(java.lang.String identifier)
           
 void setNamespace(java.lang.String namespace)
           
 void setVersion(java.lang.String version)
           
 java.lang.String toString()
           
 java.lang.String toStringNoVersion()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

URN

public static final java.lang.String URN
See Also:
Constant Field Values

SCHEME

public static final java.lang.String SCHEME
See Also:
Constant Field Values

DELIMITER

public static final java.lang.String DELIMITER
See Also:
Constant Field Values

VERSION_DELIMITER

public static final java.lang.String VERSION_DELIMITER
See Also:
Constant Field Values
Constructor Detail

LSID

public LSID(java.lang.String lsid)
     throws java.net.MalformedURLException

LSID

public LSID(java.lang.String authority,
            java.lang.String namespace,
            java.lang.String identifier,
            java.lang.String version)
     throws java.net.MalformedURLException
Method Detail

isLSID

public static boolean isLSID(java.lang.String lsid)

hasVersion

public boolean hasVersion()

matchingVersion

public boolean matchingVersion(LSID other)

toString

public java.lang.String toString()

toStringNoVersion

public java.lang.String toStringNoVersion()

compareTo

public int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object other)

isEquivalent

public boolean isEquivalent(LSID other)

isSimilar

public boolean isSimilar(LSID other)

isSameAuthority

public boolean isSameAuthority(LSID other)

isSameNamespace

public boolean isSameNamespace(LSID other)

isSameIdentifier

public boolean isSameIdentifier(LSID other)

getAuthority

public java.lang.String getAuthority()

setAuthority

public void setAuthority(java.lang.String authority)
                  throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getNamespace

public java.lang.String getNamespace()

setNamespace

public void setNamespace(java.lang.String namespace)
                  throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getIdentifier

public java.lang.String getIdentifier()

setIdentifier

public void setIdentifier(java.lang.String identifier)
                   throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getVersion

public java.lang.String getVersion()

setVersion

public void setVersion(java.lang.String version)
                throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

copy

public LSID copy()

getIncrementedMinorVersion

public java.lang.String getIncrementedMinorVersion()


Hosted by docs.bugaco.com