org.genepattern.util
Class LSID
java.lang.Object
org.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
|
Constructor Summary |
LSID(java.lang.String lsid)
|
LSID(java.lang.String authority,
java.lang.String namespace,
java.lang.String identifier,
java.lang.String version)
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
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
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
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()
|