Package org.drools.core.base
Enum ValueType
- java.lang.Object
-
- java.lang.Enum<ValueType>
-
- org.drools.core.base.ValueType
-
- All Implemented Interfaces:
Serializable
,Comparable<ValueType>
public enum ValueType extends Enum<ValueType>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
coerce(Object value)
static ValueType
determineValueType(Class<?> clazz)
Class<?>
getClassType()
String
getName()
boolean
isBoolean()
boolean
isChar()
boolean
isDate()
boolean
isDecimalNumber()
boolean
isEvent()
boolean
isIntegerNumber()
boolean
isNumber()
String
toString()
static ValueType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL_TYPE
public static final ValueType NULL_TYPE
-
PCHAR_TYPE
public static final ValueType PCHAR_TYPE
-
PBYTE_TYPE
public static final ValueType PBYTE_TYPE
-
PSHORT_TYPE
public static final ValueType PSHORT_TYPE
-
PINTEGER_TYPE
public static final ValueType PINTEGER_TYPE
-
PLONG_TYPE
public static final ValueType PLONG_TYPE
-
PFLOAT_TYPE
public static final ValueType PFLOAT_TYPE
-
PDOUBLE_TYPE
public static final ValueType PDOUBLE_TYPE
-
PBOOLEAN_TYPE
public static final ValueType PBOOLEAN_TYPE
-
CHAR_TYPE
public static final ValueType CHAR_TYPE
-
BYTE_TYPE
public static final ValueType BYTE_TYPE
-
SHORT_TYPE
public static final ValueType SHORT_TYPE
-
INTEGER_TYPE
public static final ValueType INTEGER_TYPE
-
LONG_TYPE
public static final ValueType LONG_TYPE
-
FLOAT_TYPE
public static final ValueType FLOAT_TYPE
-
DOUBLE_TYPE
public static final ValueType DOUBLE_TYPE
-
BOOLEAN_TYPE
public static final ValueType BOOLEAN_TYPE
-
NUMBER_TYPE
public static final ValueType NUMBER_TYPE
-
BIG_DECIMAL_TYPE
public static final ValueType BIG_DECIMAL_TYPE
-
BIG_INTEGER_TYPE
public static final ValueType BIG_INTEGER_TYPE
-
DATE_TYPE
public static final ValueType DATE_TYPE
-
LOCAL_DATE_TYPE
public static final ValueType LOCAL_DATE_TYPE
-
LOCAL_TIME_TYPE
public static final ValueType LOCAL_TIME_TYPE
-
ARRAY_TYPE
public static final ValueType ARRAY_TYPE
-
STRING_TYPE
public static final ValueType STRING_TYPE
-
OBJECT_TYPE
public static final ValueType OBJECT_TYPE
-
FACTTEMPLATE_TYPE
public static final ValueType FACTTEMPLATE_TYPE
-
EVENT_TYPE
public static final ValueType EVENT_TYPE
-
QUERY_TYPE
public static final ValueType QUERY_TYPE
-
TRAIT_TYPE
public static final ValueType TRAIT_TYPE
-
CLASS_TYPE
public static final ValueType CLASS_TYPE
-
-
Method Detail
-
values
public static ValueType[] 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 (ValueType c : ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueType 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
-
getName
public String getName()
-
getClassType
public Class<?> getClassType()
-
isBoolean
public boolean isBoolean()
-
isNumber
public boolean isNumber()
-
isIntegerNumber
public boolean isIntegerNumber()
-
isDecimalNumber
public boolean isDecimalNumber()
-
isChar
public boolean isChar()
-
isDate
public boolean isDate()
-
isEvent
public boolean isEvent()
-
-