|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.util.naming.Canonicalizer
Validate guid, surl and lfn.
Constructor Summary | |
Canonicalizer()
|
Method Summary | |
static java.lang.String |
guid(java.lang.String guid)
Check whether a guid is valid |
static java.net.URI |
guid(java.net.URI guid)
Check whether a guid is valid |
static java.lang.String |
lfn(java.lang.String lfn)
Check whether an lfn is valid |
static java.net.URI |
lfn(java.net.URI lfn)
Check whether an lfn is valid |
static java.net.URI |
stripGuidPrefix(java.lang.String guid)
|
static java.net.URI |
stripGuidPrefix(java.net.URI guid)
For a given GUID, chech if a prefix exists: If not, return the same GUID otherwise remove the prefix "guid:" |
static java.net.URI |
stripLfnPrefix(java.lang.String lfn)
|
static java.net.URI |
stripLfnPrefix(java.net.URI lfn)
For a given LFN, chech if a prefix exists: If not, return the same LFN otherwise remove the prefix "lfn:" |
static java.lang.String |
surl(java.lang.String surl)
Check whether a surl is valid |
static java.net.URI |
surl(java.net.URI surl)
Check whether a surl is valid |
static java.net.URI |
withGuidPrefix(java.lang.String guid)
|
static java.net.URI |
withGuidPrefix(java.net.URI guid)
For a given GUID, chech if a prefix exists: If yes, return the same GUID otherwise add a "guid:" prefix. |
static java.net.URI |
withLfnPrefix(java.lang.String lfn)
|
static java.net.URI |
withLfnPrefix(java.net.URI lfn)
For a given LFN, chech if a prefix exists: If yes, return the same LFN otherwise add a "lfn:" prefix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Canonicalizer()
Method Detail |
public static java.lang.String guid(java.lang.String guid) throws InvalidFileTypeException
guid
-
InvalidFileTypeException
public static java.net.URI guid(java.net.URI guid) throws InvalidFileTypeException
guid
-
InvalidFileTypeException
public static java.lang.String surl(java.lang.String surl) throws InvalidFileTypeException
surl
-
InvalidFileTypeException
public static java.net.URI surl(java.net.URI surl) throws InvalidFileTypeException
surl
-
InvalidFileTypeException
public static java.lang.String lfn(java.lang.String lfn) throws InvalidFileTypeException
lfn
-
InvalidFileTypeException
public static java.net.URI lfn(java.net.URI lfn) throws InvalidFileTypeException
lfn
-
InvalidFileTypeException
public static java.net.URI withGuidPrefix(java.net.URI guid)
guid
- GUID to be prefixed. This should not be null
.
public static java.net.URI withGuidPrefix(java.lang.String guid) throws InvalidFileTypeException
InvalidFileTypeException
public static java.net.URI stripGuidPrefix(java.net.URI guid)
guid
- GUID to be prefixed. This should not be null
.
public static java.net.URI stripGuidPrefix(java.lang.String guid) throws InvalidFileTypeException
InvalidFileTypeException
public static java.net.URI withLfnPrefix(java.net.URI lfn)
lfn
- LFN to be prefixed. This should not be null
.
public static java.net.URI withLfnPrefix(java.lang.String lfn) throws InvalidFileTypeException
InvalidFileTypeException
public static java.net.URI stripLfnPrefix(java.net.URI lfn)
lfn
- LFN to be prefixed. This should not be null
.
public static java.net.URI stripLfnPrefix(java.lang.String lfn) throws InvalidFileTypeException
InvalidFileTypeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |