org.drools.facttemplates
Class FactTemplateFieldExtractor

java.lang.Object
  extended by org.drools.facttemplates.FactTemplateFieldExtractor
All Implemented Interfaces:
Externalizable, Serializable, InternalReadAccessor, ReadAccessor

public class FactTemplateFieldExtractor
extends Object
implements Externalizable, InternalReadAccessor

See Also:
Serialized Form

Constructor Summary
FactTemplateFieldExtractor()
           
FactTemplateFieldExtractor(FactTemplate factTemplate, int fieldIndex)
           
 
Method Summary
 boolean equals(Object obj)
           
 BigDecimal getBigDecimalValue(InternalWorkingMemory workingMemory, Object object)
           
 BigDecimal getBigDecimalValue(Object object)
           
 BigInteger getBigIntegerValue(InternalWorkingMemory workingMemory, Object object)
           
 BigInteger getBigIntegerValue(Object object)
           
 boolean getBooleanValue(InternalWorkingMemory workingMemory, Object object)
           
 boolean getBooleanValue(Object object)
           
 byte getByteValue(InternalWorkingMemory workingMemory, Object object)
           
 byte getByteValue(Object object)
           
 char getCharValue(InternalWorkingMemory workingMemory, Object object)
           
 char getCharValue(Object object)
           
 double getDoubleValue(InternalWorkingMemory workingMemory, Object object)
           
 double getDoubleValue(Object object)
           
 Class getExtractToClass()
           
 String getExtractToClassName()
           
 float getFloatValue(InternalWorkingMemory workingMemory, Object object)
           
 float getFloatValue(Object object)
           
 int getHashCode(InternalWorkingMemory workingMemory, Object object)
           
 int getHashCode(Object object)
           
 int getIndex()
           
 int getIntValue(InternalWorkingMemory workingMemory, Object object)
           
 int getIntValue(Object object)
           
 long getLongValue(InternalWorkingMemory workingMemory, Object object)
           
 long getLongValue(Object object)
           
 Method getNativeReadMethod()
           
 short getShortValue(InternalWorkingMemory workingMemory, Object object)
           
 short getShortValue(Object object)
           
 Object getValue(InternalWorkingMemory workingMemory, Object object)
           
 Object getValue(Object object)
           
 ValueType getValueType()
           
 int hashCode()
           
 boolean isGlobal()
           
 boolean isNullValue(InternalWorkingMemory workingMemory, Object object)
           
 boolean isNullValue(Object object)
           
 boolean isSelfReference()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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 interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getValueType

public ValueType getValueType()
Specified by:
getValueType in interface ReadAccessor

getValue

public Object getValue(InternalWorkingMemory workingMemory,
                       Object object)
Specified by:
getValue in interface InternalReadAccessor

getIndex

public int getIndex()
Specified by:
getIndex in interface ReadAccessor

getExtractToClass

public Class getExtractToClass()
Specified by:
getExtractToClass in interface ReadAccessor

getExtractToClassName

public String getExtractToClassName()
Specified by:
getExtractToClassName in interface ReadAccessor

getBooleanValue

public boolean getBooleanValue(InternalWorkingMemory workingMemory,
                               Object object)
Specified by:
getBooleanValue in interface InternalReadAccessor

getByteValue

public byte getByteValue(InternalWorkingMemory workingMemory,
                         Object object)
Specified by:
getByteValue in interface InternalReadAccessor

getCharValue

public char getCharValue(InternalWorkingMemory workingMemory,
                         Object object)
Specified by:
getCharValue in interface InternalReadAccessor

getDoubleValue

public double getDoubleValue(InternalWorkingMemory workingMemory,
                             Object object)
Specified by:
getDoubleValue in interface InternalReadAccessor

getFloatValue

public float getFloatValue(InternalWorkingMemory workingMemory,
                           Object object)
Specified by:
getFloatValue in interface InternalReadAccessor

getIntValue

public int getIntValue(InternalWorkingMemory workingMemory,
                       Object object)
Specified by:
getIntValue in interface InternalReadAccessor

getLongValue

public long getLongValue(InternalWorkingMemory workingMemory,
                         Object object)
Specified by:
getLongValue in interface InternalReadAccessor

getShortValue

public short getShortValue(InternalWorkingMemory workingMemory,
                           Object object)
Specified by:
getShortValue in interface InternalReadAccessor

getNativeReadMethod

public Method getNativeReadMethod()
Specified by:
getNativeReadMethod in interface ReadAccessor

getHashCode

public int getHashCode(InternalWorkingMemory workingMemory,
                       Object object)
Specified by:
getHashCode in interface InternalReadAccessor

isGlobal

public boolean isGlobal()
Specified by:
isGlobal in interface InternalReadAccessor

isSelfReference

public boolean isSelfReference()
Specified by:
isSelfReference in interface InternalReadAccessor

isNullValue

public boolean isNullValue(InternalWorkingMemory workingMemory,
                           Object object)
Specified by:
isNullValue in interface InternalReadAccessor

getBooleanValue

public boolean getBooleanValue(Object object)
Specified by:
getBooleanValue in interface ReadAccessor

getByteValue

public byte getByteValue(Object object)
Specified by:
getByteValue in interface ReadAccessor

getCharValue

public char getCharValue(Object object)
Specified by:
getCharValue in interface ReadAccessor

getDoubleValue

public double getDoubleValue(Object object)
Specified by:
getDoubleValue in interface ReadAccessor

getFloatValue

public float getFloatValue(Object object)
Specified by:
getFloatValue in interface ReadAccessor

getHashCode

public int getHashCode(Object object)
Specified by:
getHashCode in interface ReadAccessor

getIntValue

public int getIntValue(Object object)
Specified by:
getIntValue in interface ReadAccessor

getLongValue

public long getLongValue(Object object)
Specified by:
getLongValue in interface ReadAccessor

getShortValue

public short getShortValue(Object object)
Specified by:
getShortValue in interface ReadAccessor

getValue

public Object getValue(Object object)
Specified by:
getValue in interface ReadAccessor

getBigDecimalValue

public BigDecimal getBigDecimalValue(Object object)
Specified by:
getBigDecimalValue in interface ReadAccessor

getBigIntegerValue

public BigInteger getBigIntegerValue(Object object)
Specified by:
getBigIntegerValue in interface ReadAccessor

getBigDecimalValue

public BigDecimal getBigDecimalValue(InternalWorkingMemory workingMemory,
                                     Object object)
Specified by:
getBigDecimalValue in interface InternalReadAccessor

getBigIntegerValue

public BigInteger getBigIntegerValue(InternalWorkingMemory workingMemory,
                                     Object object)
Specified by:
getBigIntegerValue in interface InternalReadAccessor

isNullValue

public boolean isNullValue(Object object)
Specified by:
isNullValue in interface ReadAccessor

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.