public enum DataTypeEnum extends Enum<DataTypeEnum>
Each data type defines:
prefix:localName is used as
short name and prefixes are used as defined by the NamespaceEnum.
Enum.name() is not used, but typically the local name with an capital
first letter is used. The URI of the data type is used by the implementation
of toString().In addition the the definition of all the data types this class also provides several utilities for getting the data type by short name, URI as well as preferred or all defined java class mappings.
| Enum Constant and Description |
|---|
AnyUri
|
Boolean |
Byte |
Date |
DateTime |
Decimal |
Double |
Duration |
Float |
Int |
Integer |
Long |
Reference |
Short |
String |
Text |
Time |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
getAdditionalJavaTypes() |
static Set<DataTypeEnum> |
getAllDataTypes(Class<?> javaClass) |
static DataTypeEnum |
getDataType(String uri) |
static DataTypeEnum |
getDataTypeByShortName(String shortName) |
Class<?> |
getJavaType() |
String |
getLocalName() |
NamespaceEnum |
getNamespace() |
static Set<DataTypeEnum> |
getPrimaryDataTypes(Class<?> javaClass) |
QName |
getQName() |
String |
getShortName() |
String |
getUri() |
String |
toString() |
static DataTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataTypeEnum Reference
public static final DataTypeEnum Text
public static final DataTypeEnum AnyUri
public static final DataTypeEnum Boolean
public static final DataTypeEnum Byte
public static final DataTypeEnum Short
public static final DataTypeEnum Integer
public static final DataTypeEnum Decimal
public static final DataTypeEnum Int
public static final DataTypeEnum Long
public static final DataTypeEnum Float
public static final DataTypeEnum Double
public static final DataTypeEnum String
public static final DataTypeEnum Time
public static final DataTypeEnum Date
public static final DataTypeEnum DateTime
public static final DataTypeEnum Duration
public static DataTypeEnum[] values()
for (DataTypeEnum c : DataTypeEnum.values()) System.out.println(c);
public static DataTypeEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic final String getLocalName()
public final Class<?> getJavaType()
public final NamespaceEnum getNamespace()
public final String getUri()
public final String getShortName()
public final QName getQName()
public String toString()
toString in class Enum<DataTypeEnum>public static Set<DataTypeEnum> getPrimaryDataTypes(Class<?> javaClass)
public static Set<DataTypeEnum> getAllDataTypes(Class<?> javaClass)
public static DataTypeEnum getDataType(String uri)
public static DataTypeEnum getDataTypeByShortName(String shortName)
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.