|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SmNativeType>
org.gxml.xs.SmNativeType
public enum SmNativeType
Symbolic constants representing the built-in types in XML Schema Part 2:Datatypes.
The enumeration captures both the XPath 2.0 and XQuery 1.0 Type Hierarchy as well as the special promotions that
occur for XPath (xs:decimal -> xs:float, xs:float -> xs:double, xs:anyURI -> xs:string). This effectively results in
two hierarchies.
Enum Constant Summary | |
---|---|
ANY_ATOMIC_TYPE
xs:anyAtomicType |
|
ANY_SIMPLE_TYPE
xs:anySimpleType |
|
ANY_TYPE
xs:anyType |
|
ANY_URI
xs:anyURI |
|
BASE64_BINARY
xs:base64Binary |
|
BOOLEAN
xs:boolean |
|
BYTE
xs:byte |
|
DATE
xs:date |
|
DATETIME
xs:dateTime |
|
DECIMAL
xs:decimal |
|
DOUBLE
xs:double |
|
DURATION
xs:duration |
|
DURATION_DAYTIME
xs:dayTimeDuration |
|
DURATION_YEARMONTH
xs:yearMonthDuration |
|
ENTITIES
xs:ENTITIES |
|
ENTITY
xs:ENTITY |
|
FLOAT
xs:float |
|
GDAY
xs:gDay |
|
GMONTH
xs:gMonth |
|
GMONTHDAY
xs:gMonthDay |
|
GYEAR
xs:gYear |
|
GYEARMONTH
xs:gYearMonth |
|
HEX_BINARY
xs:hexBinary |
|
ID
xs:ID |
|
IDREF
xs:IDREF |
|
IDREFS
xs:IDREFS |
|
INT
xs:int |
|
INTEGER
xs:integer |
|
LANGUAGE
xs:language |
|
LONG
xs:long |
|
NAME
xs:Name |
|
NCNAME
xs:NCName |
|
NEGATIVE_INTEGER
xs:negativeInteger |
|
NMTOKEN
xs:NMTOKEN |
|
NMTOKENS
xs:NMTOKENS |
|
NON_NEGATIVE_INTEGER
xs:nonNegativeInteger |
|
NON_POSITIVE_INTEGER
xs:nonPositiveInteger |
|
NORMALIZED_STRING
xs:normalizedString |
|
NOTATION
xs:NOTATION |
|
POSITIVE_INTEGER
xs:positiveInteger |
|
QNAME
xs:QName |
|
SHORT
xs:short |
|
STRING
xs:string |
|
TIME
xs:time |
|
TOKEN
xs:token |
|
UNSIGNED_BYTE
xs:unsignedByte |
|
UNSIGNED_INT
xs:unsignedInt |
|
UNSIGNED_LONG
xs:unsignedLong |
|
UNSIGNED_SHORT
xs:unsignedShort |
|
UNTYPED
xs:untyped |
|
UNTYPED_ATOMIC
xs:untypedAtomic |
Method Summary | |
---|---|
static SmNativeType |
computeCommonAncestorSelf(SmNativeType lhs,
SmNativeType rhs,
boolean promotions)
Returns the common ancestor type of two types. |
java.lang.Iterable<SmNativeType> |
getAncestorOrSelf(boolean promotions)
Returns an ordered collection of uber types, starting from the receiver uber type, and traversing up the hierarchy. |
java.lang.String |
getLocalName()
|
javax.xml.namespace.QName |
getName()
Returns the name of the type. |
SmNativeType |
getParent()
|
SmNativeType |
getPromotion()
|
static SmNativeType |
getType(java.lang.String localName)
|
boolean |
isA(SmNativeType other)
Determines whether this type is equal to or derived from the specified type. |
boolean |
isGregorian()
true if this type is ultimately derived from one of the Gregorian types, otherwise
false . |
boolean |
isID()
true if this type is ultimately derived from xs:ID, otherwise false . |
boolean |
isIDREF()
true if this type is ultimately derived from xs:IDREF, otherwise false . |
boolean |
isNumeric()
true if this type is ultimately derived from xs:double, xs:float or xs:decimal, otherwise
false . |
boolean |
isUrType()
Returs true if the type is one of xs:anyType, xs:anySimpleType or xs:anyAtomicType. |
boolean |
promotesTo(SmNativeType other)
Determines whether this type is equal to or derived from the specified type when promotions are included. |
static SmNativeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SmNativeType[] |
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 |
---|
public static final SmNativeType ANY_TYPE
public static final SmNativeType ANY_SIMPLE_TYPE
public static final SmNativeType ANY_ATOMIC_TYPE
public static final SmNativeType UNTYPED
public static final SmNativeType UNTYPED_ATOMIC
public static final SmNativeType STRING
public static final SmNativeType BOOLEAN
public static final SmNativeType DATE
public static final SmNativeType DATETIME
public static final SmNativeType TIME
public static final SmNativeType GYEARMONTH
public static final SmNativeType GYEAR
public static final SmNativeType GMONTHDAY
public static final SmNativeType GDAY
public static final SmNativeType GMONTH
public static final SmNativeType DURATION
public static final SmNativeType BASE64_BINARY
public static final SmNativeType HEX_BINARY
public static final SmNativeType ANY_URI
public static final SmNativeType QNAME
public static final SmNativeType NOTATION
public static final SmNativeType DOUBLE
public static final SmNativeType FLOAT
public static final SmNativeType DECIMAL
public static final SmNativeType INTEGER
public static final SmNativeType NON_POSITIVE_INTEGER
public static final SmNativeType NEGATIVE_INTEGER
public static final SmNativeType LONG
public static final SmNativeType INT
public static final SmNativeType SHORT
public static final SmNativeType BYTE
public static final SmNativeType NON_NEGATIVE_INTEGER
public static final SmNativeType UNSIGNED_LONG
public static final SmNativeType UNSIGNED_INT
public static final SmNativeType UNSIGNED_SHORT
public static final SmNativeType UNSIGNED_BYTE
public static final SmNativeType POSITIVE_INTEGER
public static final SmNativeType NORMALIZED_STRING
public static final SmNativeType TOKEN
public static final SmNativeType LANGUAGE
public static final SmNativeType NMTOKEN
public static final SmNativeType NAME
public static final SmNativeType NCNAME
public static final SmNativeType ID
public static final SmNativeType IDREF
public static final SmNativeType ENTITY
public static final SmNativeType DURATION_YEARMONTH
public static final SmNativeType DURATION_DAYTIME
public static final SmNativeType IDREFS
public static final SmNativeType NMTOKENS
public static final SmNativeType ENTITIES
Method Detail |
---|
public static SmNativeType[] values()
for (SmNativeType c : SmNativeType.values()) System.out.println(c);
public static SmNativeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic boolean isA(SmNativeType other)
other
- The specified type.public boolean promotesTo(SmNativeType other)
other
- The specified type.public boolean isID()
true
if this type is ultimately derived from xs:ID, otherwise false
.
public boolean isIDREF()
true
if this type is ultimately derived from xs:IDREF, otherwise false
.
public boolean isNumeric()
true
if this type is ultimately derived from xs:double, xs:float or xs:decimal, otherwise
false
.
public boolean isGregorian()
true
if this type is ultimately derived from one of the Gregorian types, otherwise
false
.
public javax.xml.namespace.QName getName()
null
for user-defined types.public java.lang.String getLocalName()
public boolean isUrType()
true
if the type is one of xs:anyType, xs:anySimpleType or xs:anyAtomicType.
public SmNativeType getParent()
public SmNativeType getPromotion()
public java.lang.Iterable<SmNativeType> getAncestorOrSelf(boolean promotions)
promotions
- Determines whether promotions are included in the returned collection.public static SmNativeType computeCommonAncestorSelf(SmNativeType lhs, SmNativeType rhs, boolean promotions)
lhs
- The LHS type.rhs
- The RHS type.promotions
- Determines whether promotions are included in computation.
null
if one does not exist.public static SmNativeType getType(java.lang.String localName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |