|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BaseType> org.deegree.commons.tom.primitive.BaseType
public enum BaseType
Base primitive type system.
Based on XML schema types, but stripped down to leave out any distinctions that are not strictly necessary in the feature model.
Enum Constant Summary | |
---|---|
BOOLEAN
Property value is of class Boolean . |
|
DATE
Property value is of class Date . |
|
DATE_TIME
Property value is of class DateTime . |
|
DECIMAL
Property value is of class BigDecimal . |
|
DOUBLE
Property value is of class Double (needed because BigDecimal cannot express "NaN", "-INF" and
"INF"), which are required by xs:double / xs:float . |
|
INTEGER
Property value is of class BigInteger . |
|
STRING
Property value is of class String . |
|
TIME
Property value is of class Time . |
Method Summary | |
---|---|
int |
getSQLType()
Returns the |
Class<?> |
getValueClass()
Returns the class that primitive values of this type must have. |
String |
getXSTypeName()
|
static BaseType |
valueOf(int sqlType)
Returns the BaseType for the given SQL type (from Types ). |
static BaseType |
valueOf(Object value)
Returns the BaseType for the given value. |
static BaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BaseType |
valueOf(org.apache.xerces.xs.XSSimpleTypeDefinition xsdTypeDef)
Returns the BaseType for the given XSD simple type definition. |
static BaseType[] |
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 BaseType STRING
String
.
public static final BaseType BOOLEAN
Boolean
.
public static final BaseType DECIMAL
BigDecimal
.
public static final BaseType DOUBLE
Double
(needed because BigDecimal cannot express "NaN", "-INF" and
"INF"), which are required by xs:double
/ xs:float
.
public static final BaseType INTEGER
BigInteger
.
public static final BaseType DATE
Date
.
public static final BaseType DATE_TIME
DateTime
.
public static final BaseType TIME
Time
.
Method Detail |
---|
public static BaseType[] values()
for (BaseType c : BaseType.values()) System.out.println(c);
public static BaseType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Class<?> getValueClass()
public String getXSTypeName()
public int getSQLType()
public static BaseType valueOf(Object value) throws IllegalArgumentException
BaseType
for the given value.
value
-
BaseType
, never null
IllegalArgumentException
public static BaseType valueOf(int sqlType)
BaseType
for the given SQL type (from Types
).
sqlType
-
BaseType
, never null
IllegalArgumentException
- if the SQL type can not be mapped to a BaseType
Types
public static BaseType valueOf(org.apache.xerces.xs.XSSimpleTypeDefinition xsdTypeDef)
BaseType
for the given XSD simple type definition.
xsdTypeDef
- XSD simple type definition, must not be null
BaseType
, never null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |