|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PrimitiveType>
org.deegree.commons.types.PrimitiveType
public enum PrimitiveType
Primitive type system for object properties (e.g. for Feature instances).
Based on XML schema types, but stripped down to leave out any distinctions that are not 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 | |
|---|---|
static PrimitiveType |
determinePrimitiveType(Object value)
Returns the PrimitiveType for the given value. |
Class<?> |
getValueClass()
Returns the class that primitive values of this type must have. |
static PrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PrimitiveType[] |
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 PrimitiveType STRING
String.
public static final PrimitiveType BOOLEAN
Boolean.
public static final PrimitiveType DECIMAL
BigDecimal.
public static final PrimitiveType DOUBLE
Double (needed because BigDecimal cannot express "NaN", "-INF" and
"INF"), which are required by xs:double / xs:float.
public static final PrimitiveType INTEGER
BigInteger.
public static final PrimitiveType DATE
Date.
public static final PrimitiveType DATE_TIME
DateTime.
public static final PrimitiveType TIME
Time.
| Method Detail |
|---|
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType 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 static PrimitiveType determinePrimitiveType(Object value)
throws IllegalArgumentException
PrimitiveType for the given value.
value -
PrimitiveType, never null
IllegalArgumentException
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||