|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<NamespaceVersion>
com.sun.xml.ws.policy.sourcemodel.wspolicy.NamespaceVersion
public enum NamespaceVersion
| Enum Constant Summary | |
|---|---|
v1_2
|
|
v1_5
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final NamespaceVersion v1_2
public static final NamespaceVersion v1_5
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic static NamespaceVersion resolveVersion(String uri)
null.
uri - WS-Policy namespace URI
null if
no enumeration value exists for given URI.public static NamespaceVersion resolveVersion(QName name)
null
name - fully qualified name defined in the WS-Policy namespace
null 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 namespace
XmlToken.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.
IllegalArgumentExceptionpublic String toString()
toString in class Enum<NamespaceVersion>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||