Package org.kie.pmml.api.enums
Enum DATA_TYPE
- java.lang.Object
-
- java.lang.Enum<DATA_TYPE>
-
- org.kie.pmml.api.enums.DATA_TYPE
-
- All Implemented Interfaces:
Serializable,Comparable<DATA_TYPE>,Named
public enum DATA_TYPE extends Enum<DATA_TYPE> implements Named
- See Also:
- DATATYPE
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DATA_TYPEbyName(String name)ObjectgetActualValue(Object rawValue)This method convert a raw object value to the correct type as defined in the originalDataDictionary.Class<?>getMappedClass()StringgetName()static DATA_TYPEvalueOf(String name)Returns the enum constant of this type with the specified name.static DATA_TYPE[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final DATA_TYPE STRING
-
INTEGER
public static final DATA_TYPE INTEGER
-
FLOAT
public static final DATA_TYPE FLOAT
-
DOUBLE
public static final DATA_TYPE DOUBLE
-
BOOLEAN
public static final DATA_TYPE BOOLEAN
-
DATE
public static final DATA_TYPE DATE
-
TIME
public static final DATA_TYPE TIME
-
DATE_TIME
public static final DATA_TYPE DATE_TIME
-
DATE_DAYS_SINCE_0
public static final DATA_TYPE DATE_DAYS_SINCE_0
-
DATE_DAYS_SINCE_1960
public static final DATA_TYPE DATE_DAYS_SINCE_1960
-
DATE_DAYS_SINCE_1970
public static final DATA_TYPE DATE_DAYS_SINCE_1970
-
DATE_DAYS_SINCE_1980
public static final DATA_TYPE DATE_DAYS_SINCE_1980
-
TIME_SECONDS
public static final DATA_TYPE TIME_SECONDS
-
DATE_TIME_SECONDS_SINCE_0
public static final DATA_TYPE DATE_TIME_SECONDS_SINCE_0
-
DATE_TIME_SECONDS_SINCE_1960
public static final DATA_TYPE DATE_TIME_SECONDS_SINCE_1960
-
DATE_TIME_SECONDS_SINCE_1970
public static final DATA_TYPE DATE_TIME_SECONDS_SINCE_1970
-
DATE_TIME_SECONDS_SINCE_1980
public static final DATA_TYPE DATE_TIME_SECONDS_SINCE_1980
-
-
Method Detail
-
values
public static DATA_TYPE[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DATA_TYPE c : DATA_TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DATA_TYPE valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getMappedClass
public Class<?> getMappedClass()
-
getActualValue
public Object getActualValue(Object rawValue)
This method convert a raw object value to the correct type as defined in the originalDataDictionary. Needed for example when an unmarshalledPredicateexpose a field' value asStringwhile the value' type is defined asdoublein theDataFielddefinition.- Parameters:
rawValue-- Returns:
-
-