Enum Class XsdDataType
java.lang.Object
java.lang.Enum<XsdDataType>
fr.inria.rules.integraal.model.logicalElements.impl.literals.types.XsdDataType
- All Implemented Interfaces:
Serializable, Comparable<XsdDataType>, Constable
All 47 W3C XSD 1.1 built-in datatypes.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionXSD anyURI datatype.XSD base64Binary datatype.XSD boolean datatype.XSD byte datatype.XSD date datatype.XSD dateTime datatype.XSD dateTimeStamp datatype.XSD dayTimeDuration datatype.XSD decimal datatype.XSD double datatype.XSD duration datatype.XSD ENTITIES datatype.XSD ENTITY datatype.XSD float datatype.XSD gDay datatype.XSD gMonth datatype.XSD gMonthDay datatype.XSD gYear datatype.XSD gYearMonth datatype.XSD hexBinary datatype.XSD ID datatype.XSD IDREF datatype.XSD IDREFS datatype.XSD int datatype.XSD integer datatype.XSD language datatype.XSD long datatype.XSD Name datatype.XSD NCName datatype.XSD negativeInteger datatype.XSD NMTOKEN datatype.XSD NMTOKENS datatype.XSD nonNegativeInteger datatype.XSD nonPositiveInteger datatype.XSD normalizedString datatype.XSD NOTATION datatype.XSD positiveInteger datatype.XSD QName datatype.XSD short datatype.XSD string datatype.XSD time datatype.XSD token datatype.XSD unsignedByte datatype.XSD unsignedInt datatype.XSD unsignedLong datatype.XSD unsignedShort datatype.XSD yearMonthDuration datatype. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<XsdDataType> fromLocalName(String localName) Find an enum constant by local name.Returns the local XSD name of this datatype.static XsdDataTypeReturns the enum constant of this class with the specified name.static XsdDataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
XSD string datatype. -
BOOLEAN
XSD boolean datatype. -
DECIMAL
XSD decimal datatype. -
FLOAT
XSD float datatype. -
DOUBLE
XSD double datatype. -
DURATION
XSD duration datatype. -
DATETIME
XSD dateTime datatype. -
TIME
XSD time datatype. -
DATE
XSD date datatype. -
GYEARMONTH
XSD gYearMonth datatype. -
GYEAR
XSD gYear datatype. -
GMONTHDAY
XSD gMonthDay datatype. -
GDAY
XSD gDay datatype. -
GMONTH
XSD gMonth datatype. -
HEXBINARY
XSD hexBinary datatype. -
BASE64BINARY
XSD base64Binary datatype. -
ANYURI
XSD anyURI datatype. -
QNAME
XSD QName datatype. -
NOTATION
XSD NOTATION datatype. -
NORMALIZED_STRING
XSD normalizedString datatype. -
TOKEN
XSD token datatype. -
LANGUAGE
XSD language datatype. -
NMTOKEN
XSD NMTOKEN datatype. -
NMTOKENS
XSD NMTOKENS datatype. -
NAME
XSD Name datatype. -
NCNAME
XSD NCName datatype. -
ID
XSD ID datatype. -
IDREF
XSD IDREF datatype. -
IDREFS
XSD IDREFS datatype. -
ENTITY
XSD ENTITY datatype. -
ENTITIES
XSD ENTITIES datatype. -
INTEGER
XSD integer datatype. -
NON_POSITIVE_INTEGER
XSD nonPositiveInteger datatype. -
NEGATIVE_INTEGER
XSD negativeInteger datatype. -
LONG
XSD long datatype. -
INT
XSD int datatype. -
SHORT
XSD short datatype. -
BYTE
XSD byte datatype. -
NON_NEGATIVE_INTEGER
XSD nonNegativeInteger datatype. -
UNSIGNED_LONG
XSD unsignedLong datatype. -
UNSIGNED_INT
XSD unsignedInt datatype. -
UNSIGNED_SHORT
XSD unsignedShort datatype. -
UNSIGNED_BYTE
XSD unsignedByte datatype. -
POSITIVE_INTEGER
XSD positiveInteger datatype. -
YEARMONTH_DURATION
XSD yearMonthDuration datatype. -
DAYTIME_DURATION
XSD dayTimeDuration datatype. -
DATETIME_STAMP
XSD dateTimeStamp datatype.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getLocalName
Returns the local XSD name of this datatype.- Returns:
- the local XSD name
-
fromLocalName
Find an enum constant by local name.- Parameters:
localName- the local XSD name to resolve- Returns:
- the matching datatype, if recognized
-