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 booleanequals(Object object)BigDecimalgetBigDecimalValue()BigIntegergetBigIntegerValue()booleangetBooleanValue()bytegetByteValue()chargetCharValue()doublegetDoubleValue()StringgetEnumName()StringgetFieldName()floatgetFloatValue()intgetIntValue()longgetLongValue()shortgetShortValue()ObjectgetValue()inthashCode()booleanisBooleanField()booleanisCollectionField()Returns true if the given field value implements the Collection interfacebooleanisEnum()booleanisFloatNumberField()booleanisIntegerNumberField()booleanisNull()booleanisObjectField()booleanisStringField()voidreadExternal(ObjectInput in)voidsetEnum(boolean isEnum)voidsetEnumName(String enumName)voidsetFieldName(String fieldName)StringtoString()voidwriteExternal(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:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getValue
public Object getValue()
- Specified by:
getValuein interfaceFieldValue
-
getBooleanValue
public boolean getBooleanValue()
- Specified by:
getBooleanValuein interfaceFieldValue
-
getByteValue
public byte getByteValue()
- Specified by:
getByteValuein interfaceFieldValue
-
getCharValue
public char getCharValue()
- Specified by:
getCharValuein interfaceFieldValue
-
getDoubleValue
public double getDoubleValue()
- Specified by:
getDoubleValuein interfaceFieldValue
-
getFloatValue
public float getFloatValue()
- Specified by:
getFloatValuein interfaceFieldValue
-
getIntValue
public int getIntValue()
- Specified by:
getIntValuein interfaceFieldValue
-
getLongValue
public long getLongValue()
- Specified by:
getLongValuein interfaceFieldValue
-
getShortValue
public short getShortValue()
- Specified by:
getShortValuein interfaceFieldValue
-
isNull
public boolean isNull()
- Specified by:
isNullin interfaceFieldValue
-
isBooleanField
public boolean isBooleanField()
- Specified by:
isBooleanFieldin interfaceFieldValue
-
isFloatNumberField
public boolean isFloatNumberField()
- Specified by:
isFloatNumberFieldin interfaceFieldValue
-
isIntegerNumberField
public boolean isIntegerNumberField()
- Specified by:
isIntegerNumberFieldin interfaceFieldValue
-
isObjectField
public boolean isObjectField()
- Specified by:
isObjectFieldin interfaceFieldValue
-
isCollectionField
public boolean isCollectionField()
Description copied from interface:FieldValueReturns true if the given field value implements the Collection interface- Specified by:
isCollectionFieldin interfaceFieldValue- Returns:
-
isStringField
public boolean isStringField()
- Specified by:
isStringFieldin interfaceFieldValue
-
getBigDecimalValue
public BigDecimal getBigDecimalValue()
- Specified by:
getBigDecimalValuein interfaceFieldValue
-
getBigIntegerValue
public BigInteger getBigIntegerValue()
- Specified by:
getBigIntegerValuein 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)
-
-