Package org.drools.core.base
Class ClassFieldWriter
- java.lang.Object
-
- org.drools.core.base.ClassFieldWriter
-
- All Implemented Interfaces:
Externalizable,Serializable,WriteAccessor
public class ClassFieldWriter extends Object implements WriteAccessor
This class implements the WriteAccessor interface allowing the application to write values into a field from a class- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassFieldWriter()ClassFieldWriter(String className, String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)StringgetClassName()StringgetFieldName()Class<?>getFieldType()intgetIndex()MethodgetNativeWriteMethod()ValueTypegetValueType()inthashCode()voidreadExternal(ObjectInput is)voidsetBigDecimalValue(Object bean, BigDecimal value)voidsetBigIntegerValue(Object bean, BigInteger value)voidsetBooleanValue(Object bean, boolean value)voidsetByteValue(Object bean, byte value)voidsetCharValue(Object bean, char value)voidsetDoubleValue(Object bean, double value)voidsetFloatValue(Object bean, float value)voidsetIntValue(Object bean, int value)voidsetLongValue(Object bean, long value)voidsetShortValue(Object bean, short value)voidsetValue(Object bean, Object value)voidsetWriteAccessor(WriteAccessor writer)StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput is) throws ClassNotFoundException, IOException
- Specified by:
readExternalin interfaceExternalizable- Throws:
ClassNotFoundExceptionIOException
-
setWriteAccessor
public void setWriteAccessor(WriteAccessor writer)
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceWriteAccessor
-
getClassName
public String getClassName()
-
getFieldName
public String getFieldName()
-
getFieldType
public Class<?> getFieldType()
- Specified by:
getFieldTypein interfaceWriteAccessor
-
getNativeWriteMethod
public Method getNativeWriteMethod()
- Specified by:
getNativeWriteMethodin interfaceWriteAccessor
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceWriteAccessor
-
setBooleanValue
public void setBooleanValue(Object bean, boolean value)
- Specified by:
setBooleanValuein interfaceWriteAccessor
-
setByteValue
public void setByteValue(Object bean, byte value)
- Specified by:
setByteValuein interfaceWriteAccessor
-
setCharValue
public void setCharValue(Object bean, char value)
- Specified by:
setCharValuein interfaceWriteAccessor
-
setDoubleValue
public void setDoubleValue(Object bean, double value)
- Specified by:
setDoubleValuein interfaceWriteAccessor
-
setFloatValue
public void setFloatValue(Object bean, float value)
- Specified by:
setFloatValuein interfaceWriteAccessor
-
setIntValue
public void setIntValue(Object bean, int value)
- Specified by:
setIntValuein interfaceWriteAccessor
-
setLongValue
public void setLongValue(Object bean, long value)
- Specified by:
setLongValuein interfaceWriteAccessor
-
setShortValue
public void setShortValue(Object bean, short value)
- Specified by:
setShortValuein interfaceWriteAccessor
-
setValue
public void setValue(Object bean, Object value)
- Specified by:
setValuein interfaceWriteAccessor
-
setBigDecimalValue
public void setBigDecimalValue(Object bean, BigDecimal value)
- Specified by:
setBigDecimalValuein interfaceWriteAccessor
-
setBigIntegerValue
public void setBigIntegerValue(Object bean, BigInteger value)
- Specified by:
setBigIntegerValuein interfaceWriteAccessor
-
-