public class Ref extends Object
Constructor and Description |
---|
Ref() |
Modifier and Type | Method and Description |
---|---|
static String |
getOidFromRef(String ref)
Get the ObjectID from the specified ref url
|
static String |
getRelativeRef(String ref)
Create a relative ref url from the specified ref
|
static String |
getTypeFromRef(String ref)
Get the type from the specified ref url
|
static boolean |
isRef(String ref)
Determine whether the specified string is a valid ref url.
|
public static boolean isRef(String ref)
ref
- the string to be tested. May be either absolute or relative, e.g. /defect/1234public static String getRelativeRef(String ref)
ref
- the ref url to be made relativepublic static String getTypeFromRef(String ref)
ref
- the ref url to extract the type fromCopyright © 2016. All Rights Reserved.