- All Implemented Interfaces:
Serializable,Comparable<URIScheme>,Constable
URI scheme
This also include URN namespaces.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanfromScheme(String iriStr, URIScheme scheme) Match case insensitivelystatic URISchemegetName()Scheme name,including any URN namespace.Initial part of the URI scheme that identifies this scheme.Scheme name; no ':'URN namespace name, or null, if not a URN.final booleanisURN()static booleanmatchesExact(String iriStr, URIScheme scheme) Match schema name, not including any urn namespace, case sensitivelystatic booleanmatchesIgnoreCase(String iriStr, URIScheme scheme) Match case insensitivelystatic URISchemeReturns the enum constant of this class with the specified name.static URIScheme[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GENERAL
-
HTTP
-
HTTPS
-
URN
-
URN_UUID
-
UUID
-
FILE
-
DID
-
URN_OID
-
URN_EXAMPLE
-
OID
-
EXAMPLE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
get
-
matchesExact
Match schema name, not including any urn namespace, case sensitively -
matchesIgnoreCase
Match case insensitively -
fromScheme
Match case insensitively -
isURN
public final boolean isURN() -
getSchemeName
Scheme name; no ':' -
getURNNamespace
URN namespace name, or null, if not a URN. -
getName
Scheme name,including any URN namespace. -
getPrefix
Initial part of the URI scheme that identifies this scheme. In practice this is the schema name in lower case followed by ':'; for URNs, it includes the URN namespace. if that is one that is covered by the scheme-specific validation rule.
-