|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Utility.ResourceNameTranslate
This class converts a String representation of a ResourceNameComponent into the appropriate structure and vice versa. This is particularly useful for mapping String names into the RAD space. e.g. Id.10001/field.BACTERIOLOGY maps to a ResourceNameComponent array of two elements. The element before the period is the name_string and the element after the period is the value_string This follows the specification for Stringified NameComponents as specified in the updated NamingService This seems appropriate because the ResourceNameComponent was borrowed from that specification.
| Method Summary | |
static boolean |
isValid(java.lang.String resource)
Check to see if Resource string is a valid ResourceName |
static ResourceNameComponent[] |
toName(java.lang.String resourceName)
function to turn string into a ResourceNameComponent array The characters '.', '/' and '\' can be included in the string values if they are preceded with '\' |
static ResourceName |
toResource(java.lang.String resource)
Convert resourceName string into a full resourceName |
static java.lang.String |
toString(ResourceName resource)
Extend convention to handle resource name prepend the authority as though it were a protocol. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static boolean isValid(java.lang.String resource)
resource - string containing the ResourceName
public static java.lang.String toString(ResourceName resource)
resource - ResourceName to be stringified
public static ResourceName toResource(java.lang.String resource)
throws InvalidResourceName
resource - string with the full resourceName
InvalidResourceName
public static ResourceNameComponent[] toName(java.lang.String resourceName)
throws InvalidResourceName
resourceName - to be converted to ResourceNameComponent
InvalidResourceName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||