public final class XPointerScheme extends Object implements SimpleXPointerScheme
XPointerXPointer
Modifier and Type | Field and Description |
---|---|
static Name[] |
SCHEME_NAMES |
Constructor and Description |
---|
XPointerScheme() |
Modifier and Type | Method and Description |
---|---|
Name[] |
getSchemeNames()
Returns one or more names for this scheme.
|
XPointerXPointer |
parseXPointer(Name schemeName,
String schemeData,
PrefixToNamespace prefixToNS)
Parses xpointer having specified scheme name and specified scheme data.
|
public static final Name[] SCHEME_NAMES
public Name[] getSchemeNames()
SimpleXPointerScheme
getSchemeNames
in interface SimpleXPointerScheme
public XPointerXPointer parseXPointer(Name schemeName, String schemeData, PrefixToNamespace prefixToNS) throws XPointerException
SimpleXPointerScheme
parseXPointer
in interface SimpleXPointerScheme
schemeName
- the name of the scheme.
It's one of the names returned by SimpleXPointerScheme.getSchemeNames()
.schemeData
- the scheme data to be parsedprefixToNS
- maps prefixes to the corresponding namespacesnull
if the specification
cannot be parsed.XPointerException
- if the specification cannot be parsed.
Note that the implementation may choose to return null
rather than raise an exception.