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)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AllDigestDigestAlgorithmExactlyOneIgnorableNameOptionalPolicyPolicyReferencePolicyUrisUNKNOWNUriUsingPolicy
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisElement()static XmlTokenresolveToken(String name)Resolves URI represented as a String into an enumeration value.StringtoString()static XmlTokenvalueOf(String name)Returns the enum constant of this type with the specified name.static XmlToken[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
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 nameNullPointerException- 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 returnsnull- Parameters:
name-- Returns:
- Enumeration value that represents given URI or
nullif no enumeration value exists for given URI.
-
isElement
public boolean isElement()
-
-