Enum XmlSchemaBaseSimpleType
- All Implemented Interfaces:
Serializable,Comparable<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
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate QNameprivate static HashMap<QName, XmlSchemaBaseSimpleType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XmlSchemaBaseSimpleTypegetBaseSimpleTypeFor(QName qName) Returns the XML Schema base simple type for the providedQName.getQName()The correspondingQNamethat theXmlSchemaBaseSimpleTyperepresents in XML Schema.static booleanisBaseSimpleType(QName qName) Returnstrueif the providedQNamereferences XML Schema'sanyType,anySimpleType, or one of the primitive datatypes defined by XML Schema.static XmlSchemaBaseSimpleTypeReturns 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.
-
Enum Constant Details
-
ANYTYPE
-
ANYSIMPLETYPE
-
DURATION
-
DATETIME
-
TIME
-
DATE
-
YEARMONTH
-
YEAR
-
MONTHDAY
-
DAY
-
MONTH
-
STRING
-
BOOLEAN
-
BIN_BASE64
-
BIN_HEX
-
FLOAT
-
DECIMAL
-
DOUBLE
-
ANYURI
-
QNAME
-
NOTATION
-
-
Field Details
-
qName
-
reverseMap
-
-
Constructor Details
-
XmlSchemaBaseSimpleType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getQName
The correspondingQNamethat theXmlSchemaBaseSimpleTyperepresents in XML Schema. -
getBaseSimpleTypeFor
Returns the XML Schema base simple type for the providedQName. If theQNamerepresentsanyType,anySimpleType, or one of the primitive datatypes defined by XML Schema, returns the correspondingXmlSchemaBaseSimpleType. Otherwise, returnsnull.- Parameters:
qName- TheQNameof an XML Schema base simple type.- Returns:
- The corresponding
XmlSchemaBaseSimpleType.
-
isBaseSimpleType
Returnstrueif the providedQNamereferences XML Schema'sanyType,anySimpleType, or one of the primitive datatypes defined by XML Schema. Otherwise, returnsfalse.- Parameters:
qName- TheQNameof an XML Schema type to check.- Returns:
- Whether that type is a XML Schema base simple type.
-