public enum NamespaceVersion extends Enum<NamespaceVersion>
Modifier and Type | Method and Description |
---|---|
QName |
asQName(XmlToken token)
Resolves XML token into a fully qualified name within given namespace version.
|
String |
getDefaultNamespacePrefix()
Method returns default namespace prefix for given namespace version.
|
static NamespaceVersion |
getLatestVersion()
Returns latest supported version of the policy namespace
|
static XmlToken |
resolveAsToken(QName name)
Resolves FQN into a policy XML token.
|
static NamespaceVersion |
resolveVersion(QName name)
Resolves fully qualified name defined in the WS-Policy namespace into an
enumeration value.
|
static NamespaceVersion |
resolveVersion(String uri)
Resolves URI represented as a String into an enumeration value.
|
String |
toString() |
static NamespaceVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NamespaceVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NamespaceVersion v1_2
public static final NamespaceVersion v1_5
public static NamespaceVersion[] values()
for (NamespaceVersion c : NamespaceVersion.values()) System.out.println(c);
public static NamespaceVersion 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 static NamespaceVersion resolveVersion(String uri)
null
.uri
- WS-Policy namespace URInull
if
no enumeration value exists for given URI.public static NamespaceVersion resolveVersion(QName name)
null
name
- fully qualified name defined in the WS-Policy namespacenull
if
no enumeration value exists for given namespace.public static NamespaceVersion getLatestVersion()
public static XmlToken resolveAsToken(QName name)
resolveVersion(QName)
.name
- fully qualified name defined in the WS-Policy namespaceXmlToken.UNKNOWN
value
is returned.public String getDefaultNamespacePrefix()
public QName asQName(XmlToken token) throws IllegalArgumentException
token
- XML token enumeration value.token
within given namespace
version. Method returns null
in case the token is not supported in
given namespace version or in case XmlToken.UNKNOWN
was used as
an input parameter.IllegalArgumentException
public String toString()
toString
in class Enum<NamespaceVersion>
Copyright © 2006–2014 Oracle Corporation. All rights reserved.