Package org.drools.core.base.field
Class ObjectFieldImpl
- java.lang.Object
-
- org.drools.core.base.field.ObjectFieldImpl
-
- All Implemented Interfaces:
Externalizable
,Serializable
,FieldValue
public class ObjectFieldImpl extends Object implements FieldValue, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectFieldImpl()
ObjectFieldImpl(Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
BigDecimal
getBigDecimalValue()
BigInteger
getBigIntegerValue()
boolean
getBooleanValue()
byte
getByteValue()
char
getCharValue()
double
getDoubleValue()
String
getEnumName()
String
getFieldName()
float
getFloatValue()
int
getIntValue()
long
getLongValue()
short
getShortValue()
Object
getValue()
int
hashCode()
boolean
isBooleanField()
boolean
isCollectionField()
Returns true if the given field value implements the Collection interfaceboolean
isEnum()
boolean
isFloatNumberField()
boolean
isIntegerNumberField()
boolean
isNull()
boolean
isObjectField()
boolean
isStringField()
void
readExternal(ObjectInput in)
void
setEnum(boolean isEnum)
void
setEnumName(String enumName)
void
setFieldName(String fieldName)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
ObjectFieldImpl
public ObjectFieldImpl()
-
ObjectFieldImpl
public ObjectFieldImpl(Object value)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getValue
public Object getValue()
- Specified by:
getValue
in interfaceFieldValue
-
getBooleanValue
public boolean getBooleanValue()
- Specified by:
getBooleanValue
in interfaceFieldValue
-
getByteValue
public byte getByteValue()
- Specified by:
getByteValue
in interfaceFieldValue
-
getCharValue
public char getCharValue()
- Specified by:
getCharValue
in interfaceFieldValue
-
getDoubleValue
public double getDoubleValue()
- Specified by:
getDoubleValue
in interfaceFieldValue
-
getFloatValue
public float getFloatValue()
- Specified by:
getFloatValue
in interfaceFieldValue
-
getIntValue
public int getIntValue()
- Specified by:
getIntValue
in interfaceFieldValue
-
getLongValue
public long getLongValue()
- Specified by:
getLongValue
in interfaceFieldValue
-
getShortValue
public short getShortValue()
- Specified by:
getShortValue
in interfaceFieldValue
-
isNull
public boolean isNull()
- Specified by:
isNull
in interfaceFieldValue
-
isBooleanField
public boolean isBooleanField()
- Specified by:
isBooleanField
in interfaceFieldValue
-
isFloatNumberField
public boolean isFloatNumberField()
- Specified by:
isFloatNumberField
in interfaceFieldValue
-
isIntegerNumberField
public boolean isIntegerNumberField()
- Specified by:
isIntegerNumberField
in interfaceFieldValue
-
isObjectField
public boolean isObjectField()
- Specified by:
isObjectField
in interfaceFieldValue
-
isCollectionField
public boolean isCollectionField()
Description copied from interface:FieldValue
Returns true if the given field value implements the Collection interface- Specified by:
isCollectionField
in interfaceFieldValue
- Returns:
-
isStringField
public boolean isStringField()
- Specified by:
isStringField
in interfaceFieldValue
-
getBigDecimalValue
public BigDecimal getBigDecimalValue()
- Specified by:
getBigDecimalValue
in interfaceFieldValue
-
getBigIntegerValue
public BigInteger getBigIntegerValue()
- Specified by:
getBigIntegerValue
in interfaceFieldValue
-
isEnum
public boolean isEnum()
-
setEnum
public void setEnum(boolean isEnum)
-
getEnumName
public String getEnumName()
-
setEnumName
public void setEnumName(String enumName)
-
getFieldName
public String getFieldName()
-
setFieldName
public void setFieldName(String fieldName)
-
-