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