org.apache.ws.commons.schema.walker
Enum XmlSchemaRestriction.Type

java.lang.Object
  extended by java.lang.Enum<XmlSchemaRestriction.Type>
      extended by org.apache.ws.commons.schema.walker.XmlSchemaRestriction.Type
All Implemented Interfaces:
Serializable, Comparable<XmlSchemaRestriction.Type>
Enclosing class:
XmlSchemaRestriction

public static enum XmlSchemaRestriction.Type
extends Enum<XmlSchemaRestriction.Type>

The facet type: one of the known constraining facets defined by XML Schema.


Enum Constant Summary
DIGITS_FRACTION
           
DIGITS_TOTAL
           
ENUMERATION
           
EXCLUSIVE_MAX
           
EXCLUSIVE_MIN
           
INCLUSIVE_MAX
           
INCLUSIVE_MIN
           
LENGTH
           
LENGTH_MAX
           
LENGTH_MIN
           
PATTERN
           
WHITESPACE
           
 
Method Summary
static XmlSchemaRestriction.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XmlSchemaRestriction.Type[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ENUMERATION

public static final XmlSchemaRestriction.Type ENUMERATION

EXCLUSIVE_MIN

public static final XmlSchemaRestriction.Type EXCLUSIVE_MIN

EXCLUSIVE_MAX

public static final XmlSchemaRestriction.Type EXCLUSIVE_MAX

INCLUSIVE_MIN

public static final XmlSchemaRestriction.Type INCLUSIVE_MIN

INCLUSIVE_MAX

public static final XmlSchemaRestriction.Type INCLUSIVE_MAX

PATTERN

public static final XmlSchemaRestriction.Type PATTERN

WHITESPACE

public static final XmlSchemaRestriction.Type WHITESPACE

LENGTH

public static final XmlSchemaRestriction.Type LENGTH

LENGTH_MAX

public static final XmlSchemaRestriction.Type LENGTH_MAX

LENGTH_MIN

public static final XmlSchemaRestriction.Type LENGTH_MIN

DIGITS_FRACTION

public static final XmlSchemaRestriction.Type DIGITS_FRACTION

DIGITS_TOTAL

public static final XmlSchemaRestriction.Type DIGITS_TOTAL
Method Detail

values

public static XmlSchemaRestriction.Type[] 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 (XmlSchemaRestriction.Type c : XmlSchemaRestriction.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static XmlSchemaRestriction.Type 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


Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.