Package org.drools.core.facttemplates
Class FactTemplateFieldExtractor
- java.lang.Object
-
- org.drools.core.facttemplates.FactTemplateFieldExtractor
-
- All Implemented Interfaces:
Externalizable
,Serializable
,InternalReadAccessor
,ReadAccessor
public class FactTemplateFieldExtractor extends Object implements Externalizable, InternalReadAccessor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FactTemplateFieldExtractor()
FactTemplateFieldExtractor(FactTemplate factTemplate, int fieldIndex)
-
Method Summary
-
-
-
Constructor Detail
-
FactTemplateFieldExtractor
public FactTemplateFieldExtractor()
-
FactTemplateFieldExtractor
public FactTemplateFieldExtractor(FactTemplate factTemplate, int fieldIndex)
-
-
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
-
getValueType
public ValueType getValueType()
- Specified by:
getValueType
in interfaceReadAccessor
-
getValue
public Object getValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getValue
in interfaceInternalReadAccessor
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceReadAccessor
-
getExtractToClass
public Class getExtractToClass()
- Specified by:
getExtractToClass
in interfaceReadAccessor
-
getExtractToClassName
public String getExtractToClassName()
- Specified by:
getExtractToClassName
in interfaceReadAccessor
-
getBooleanValue
public boolean getBooleanValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getBooleanValue
in interfaceInternalReadAccessor
-
getByteValue
public byte getByteValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getByteValue
in interfaceInternalReadAccessor
-
getCharValue
public char getCharValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getCharValue
in interfaceInternalReadAccessor
-
getDoubleValue
public double getDoubleValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getDoubleValue
in interfaceInternalReadAccessor
-
getFloatValue
public float getFloatValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getFloatValue
in interfaceInternalReadAccessor
-
getIntValue
public int getIntValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getIntValue
in interfaceInternalReadAccessor
-
getLongValue
public long getLongValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getLongValue
in interfaceInternalReadAccessor
-
getShortValue
public short getShortValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getShortValue
in interfaceInternalReadAccessor
-
getNativeReadMethod
public Method getNativeReadMethod()
- Specified by:
getNativeReadMethod
in interfaceReadAccessor
-
getNativeReadMethodName
public String getNativeReadMethodName()
- Specified by:
getNativeReadMethodName
in interfaceReadAccessor
-
getHashCode
public int getHashCode(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getHashCode
in interfaceInternalReadAccessor
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobal
in interfaceInternalReadAccessor
-
isSelfReference
public boolean isSelfReference()
- Specified by:
isSelfReference
in interfaceInternalReadAccessor
-
isNullValue
public boolean isNullValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
isNullValue
in interfaceInternalReadAccessor
-
getBooleanValue
public boolean getBooleanValue(Object object)
- Specified by:
getBooleanValue
in interfaceReadAccessor
-
getByteValue
public byte getByteValue(Object object)
- Specified by:
getByteValue
in interfaceReadAccessor
-
getCharValue
public char getCharValue(Object object)
- Specified by:
getCharValue
in interfaceReadAccessor
-
getDoubleValue
public double getDoubleValue(Object object)
- Specified by:
getDoubleValue
in interfaceReadAccessor
-
getFloatValue
public float getFloatValue(Object object)
- Specified by:
getFloatValue
in interfaceReadAccessor
-
getHashCode
public int getHashCode(Object object)
- Specified by:
getHashCode
in interfaceReadAccessor
-
getIntValue
public int getIntValue(Object object)
- Specified by:
getIntValue
in interfaceReadAccessor
-
getLongValue
public long getLongValue(Object object)
- Specified by:
getLongValue
in interfaceReadAccessor
-
getShortValue
public short getShortValue(Object object)
- Specified by:
getShortValue
in interfaceReadAccessor
-
getValue
public Object getValue(Object object)
- Specified by:
getValue
in interfaceReadAccessor
-
getBigDecimalValue
public BigDecimal getBigDecimalValue(Object object)
- Specified by:
getBigDecimalValue
in interfaceReadAccessor
-
getBigIntegerValue
public BigInteger getBigIntegerValue(Object object)
- Specified by:
getBigIntegerValue
in interfaceReadAccessor
-
getBigDecimalValue
public BigDecimal getBigDecimalValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getBigDecimalValue
in interfaceInternalReadAccessor
-
getBigIntegerValue
public BigInteger getBigIntegerValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getBigIntegerValue
in interfaceInternalReadAccessor
-
isNullValue
public boolean isNullValue(Object object)
- Specified by:
isNullValue
in interfaceReadAccessor
-
-