com.sun.xml.ws.policy.sourcemodel.wspolicy
Enum XmlToken
java.lang.Object
java.lang.Enum<XmlToken>
com.sun.xml.ws.policy.sourcemodel.wspolicy.XmlToken
- All Implemented Interfaces:
- Serializable, Comparable<XmlToken>
public enum XmlToken
- extends Enum<XmlToken>
- Author:
- Marek Potociar (marek.potociar at sun.com)
Policy
public static final XmlToken Policy
ExactlyOne
public static final XmlToken ExactlyOne
All
public static final XmlToken All
PolicyReference
public static final XmlToken PolicyReference
UsingPolicy
public static final XmlToken UsingPolicy
Name
public static final XmlToken Name
Optional
public static final XmlToken Optional
Ignorable
public static final XmlToken Ignorable
PolicyUris
public static final XmlToken PolicyUris
Uri
public static final XmlToken Uri
Digest
public static final XmlToken Digest
DigestAlgorithm
public static final XmlToken DigestAlgorithm
UNKNOWN
public static final XmlToken UNKNOWN
values
public static XmlToken[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (XmlToken c : XmlToken.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static XmlToken valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
resolveToken
public static XmlToken resolveToken(String name)
- Resolves URI represented as a String into an enumeration value. If the URI
doesn't represent any existing enumeration value, method returns
null
- Parameters:
uri -
- Returns:
- Enumeration value that represents given URI or
null if
no enumeration value exists for given URI.
isElement
public boolean isElement()
toString
public String toString()
- Overrides:
toString in class Enum<XmlToken>
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.