public enum XPathVersion extends Enum<XPathVersion>
Modifier and Type | Method and Description |
---|---|
static XPathVersion |
fromURI(String uri)
Get instance from version URI
|
String |
getURI() |
String |
getVersionNumber() |
static XPathVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XPathVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XPathVersion V1_0
public static final XPathVersion V2_0
public static XPathVersion[] values()
for (XPathVersion c : XPathVersion.values()) System.out.println(c);
public static XPathVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getURI()
public String getVersionNumber()
public static XPathVersion fromURI(String uri) throws IllegalArgumentException
uri
- URI of this XPATH version.IllegalArgumentException
- if uri does not match any XPath versionCopyright © 2012–2020. All rights reserved.