|
Version: 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.generationcp.core.LSIDUtils
public abstract class LSIDUtils
A utility class helping with LSIDs.
| Constructor Summary | |
|---|---|
LSIDUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
createLSID(java.lang.String authority,
java.lang.String namespace,
java.lang.String objectId,
java.lang.String version)
Creates a well formed LSID from the given parts. |
static java.lang.String |
extractNamespace(java.lang.String lsid)
Extract and return the "Namespace" part of the given LSID. |
static java.lang.String |
extractObjectId(java.lang.String lsid)
Extract and return the "Object ID" part of the given LSID. |
static java.lang.String |
removeVersion(java.lang.String lsid)
Remove the version ("release") form the given 'lsid'. |
static java.lang.String |
resolveAuthority(java.lang.String lsid)
Extract and return the Authority part of the given LSID. |
static java.lang.String |
resolveNamespace(java.lang.String lsid)
Extract and return the Namespace part of the given LSID. |
static java.lang.String |
resolveObjectId(java.lang.String lsid)
Extract and return the Object ID part of the given LSID. |
static java.lang.String |
resolveVersion(java.lang.String lsid)
Extract and return the Version part of the given LSID. |
static java.lang.String[] |
splitLSID(java.lang.String lsid)
Split the LSID into component parts. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LSIDUtils()
| Method Detail |
|---|
public static java.lang.String extractObjectId(java.lang.String lsid)
lsid - to be extracted from
public static java.lang.String extractNamespace(java.lang.String lsid)
lsid - to be extracted from
public static java.lang.String removeVersion(java.lang.String lsid)
lsid - to be manipulated
public static java.lang.String[] splitLSID(java.lang.String lsid)
throws java.lang.IllegalArgumentException
lsid - to be split
java.lang.IllegalArgumentException - if the 'lsid' has less than
three (mandatory) components
public static java.lang.String resolveAuthority(java.lang.String lsid)
throws java.lang.IllegalArgumentException
lsid - to be extracted from
java.lang.IllegalArgumentException - if the 'lsid' does not have
valid LSID structure
public static java.lang.String resolveNamespace(java.lang.String lsid)
throws java.lang.IllegalArgumentException
extractNamespace(java.lang.String) by throwing
an exception if the input is not a valid LSID.
lsid - to be extracted from
java.lang.IllegalArgumentException - if the 'lsid' does not have
valid LSID structure
public static java.lang.String resolveObjectId(java.lang.String lsid)
throws java.lang.IllegalArgumentException
extractObjectId(java.lang.String) by throwing
an exception if the input is not a valid LSID.
lsid - to be extracted from
java.lang.IllegalArgumentException - if the 'lsid' does not have
valid LSID structure
public static java.lang.String resolveVersion(java.lang.String lsid)
throws java.lang.IllegalArgumentException
lsid - to be extracted from
java.lang.IllegalArgumentException - if the 'lsid' does not have
valid LSID structure
public static java.lang.String createLSID(java.lang.String authority,
java.lang.String namespace,
java.lang.String objectId,
java.lang.String version)
throws java.lang.IllegalArgumentException
authority - describes the (database) authoritynamespace - is a namespace within given authorityobjectId - is the unique identifier of the object in the
given namespace of the given authorityversion - is optional; if it is null or an empty string,
it is ignored
java.lang.IllegalArgumentException - if any of authority, namespace
or objectId is null or empty
|
Version: 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||