Package org.openehealth.ipf.commons.core
Class URN
java.lang.Object
org.openehealth.ipf.commons.core.URN
- All Implemented Interfaces:
Serializable
,Comparable<URN>
URN abstraction, following the pattern of URI and URL classes. This is not meant as a generic
URN representation as defined in RFC 2141, but limited to its uses in healthcare domain,
specifically for encoding UUIDs and OIDs.
Note that in URNs the namespace identifier is case-insensitive
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
UUID
- See Also:
-
OID
- See Also:
-
PIN
- See Also:
-
-
Constructor Details
-
URN
- Throws:
URISyntaxException
-
URN
-
URN
-
URN
-
URN
- Throws:
URISyntaxException
-
-
Method Details
-
create
- Throws:
URISyntaxException
-
compareTo
- Specified by:
compareTo
in interfaceComparable<URN>
-
equals
-
hashCode
public int hashCode() -
isURN
-
toURI
- Returns:
- a new URI object representing this URN
-
getNamespaceId
- Returns:
- the namespace ID of the URN
-
isNamespace
-
getNamespaceSpecificString
- Returns:
- namespace-specific string, i.e. an OID or UUID value
-
toString
-