org.apache.ws.commons.schema.walker
Enum XmlSchemaBaseSimpleType

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

public enum XmlSchemaBaseSimpleType
extends Enum<XmlSchemaBaseSimpleType>

Represents the set of simple types defined by XML Schema, and conversions between them and their respective QNames. This set is limited to only anyType, anySimpleType, and the primitive datatypes defined by XML Schema.


Enum Constant Summary
ANYSIMPLETYPE
           
ANYTYPE
           
ANYURI
           
BIN_BASE64
           
BIN_HEX
           
BOOLEAN
           
DATE
           
DATETIME
           
DAY
           
DECIMAL
           
DOUBLE
           
DURATION
           
FLOAT
           
MONTH
           
MONTHDAY
           
NOTATION
           
QNAME
           
STRING
           
TIME
           
YEAR
           
YEARMONTH
           
 
Method Summary
static XmlSchemaBaseSimpleType getBaseSimpleTypeFor(QName qName)
          Returns the XML Schema base simple type for the provided QName.
 QName getQName()
          The corresponding QName that the XmlSchemaBaseSimpleType represents in XML Schema.
static boolean isBaseSimpleType(QName qName)
          Returns true if the provided QName references XML Schema's anyType, anySimpleType, or one of the primitive datatypes defined by XML Schema.
static XmlSchemaBaseSimpleType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XmlSchemaBaseSimpleType[] 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

ANYTYPE

public static final XmlSchemaBaseSimpleType ANYTYPE

ANYSIMPLETYPE

public static final XmlSchemaBaseSimpleType ANYSIMPLETYPE

DURATION

public static final XmlSchemaBaseSimpleType DURATION

DATETIME

public static final XmlSchemaBaseSimpleType DATETIME

TIME

public static final XmlSchemaBaseSimpleType TIME

DATE

public static final XmlSchemaBaseSimpleType DATE

YEARMONTH

public static final XmlSchemaBaseSimpleType YEARMONTH

YEAR

public static final XmlSchemaBaseSimpleType YEAR

MONTHDAY

public static final XmlSchemaBaseSimpleType MONTHDAY

DAY

public static final XmlSchemaBaseSimpleType DAY

MONTH

public static final XmlSchemaBaseSimpleType MONTH

STRING

public static final XmlSchemaBaseSimpleType STRING

BOOLEAN

public static final XmlSchemaBaseSimpleType BOOLEAN

BIN_BASE64

public static final XmlSchemaBaseSimpleType BIN_BASE64

BIN_HEX

public static final XmlSchemaBaseSimpleType BIN_HEX

FLOAT

public static final XmlSchemaBaseSimpleType FLOAT

DECIMAL

public static final XmlSchemaBaseSimpleType DECIMAL

DOUBLE

public static final XmlSchemaBaseSimpleType DOUBLE

ANYURI

public static final XmlSchemaBaseSimpleType ANYURI

QNAME

public static final XmlSchemaBaseSimpleType QNAME

NOTATION

public static final XmlSchemaBaseSimpleType NOTATION
Method Detail

values

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

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

valueOf

public static XmlSchemaBaseSimpleType 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

getQName

public QName getQName()
The corresponding QName that the XmlSchemaBaseSimpleType represents in XML Schema.


getBaseSimpleTypeFor

public static XmlSchemaBaseSimpleType getBaseSimpleTypeFor(QName qName)
Returns the XML Schema base simple type for the provided QName. If the QName represents anyType, anySimpleType, or one of the primitive datatypes defined by XML Schema, returns the corresponding XmlSchemaBaseSimpleType. Otherwise, returns null.

Parameters:
qName - The QName of an XML Schema base simple type.
Returns:
The corresponding XmlSchemaBaseSimpleType.

isBaseSimpleType

public static boolean isBaseSimpleType(QName qName)
Returns true if the provided QName references XML Schema's anyType, anySimpleType, or one of the primitive datatypes defined by XML Schema. Otherwise, returns false.

Parameters:
qName - The QName of an XML Schema type to check.
Returns:
Whether that type is a XML Schema base simple type.


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