public class FieldAccessor<BeanType,FieldType> extends Object
| Constructor and Description |
|---|
FieldAccessor(Class<BeanType> clazz,
String fieldName) |
FieldAccessor(Field field) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(Object location,
RuntimeContext context,
BeanType instance) |
byte |
getByte(Object location,
RuntimeContext context,
BeanType instance) |
char |
getChar(Object location,
RuntimeContext context,
BeanType instance) |
double |
getDouble(Object location,
RuntimeContext context,
BeanType instance) |
float |
getFloat(Object location,
RuntimeContext context,
BeanType instance) |
int |
getInt(Object location,
RuntimeContext context,
BeanType instance) |
long |
getLong(Object location,
RuntimeContext context,
BeanType instance) |
FieldType |
getObject(Object location,
RuntimeContext context,
BeanType instance) |
short |
getShort(Object location,
RuntimeContext context,
BeanType instance) |
void |
setBoolean(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
boolean value) |
void |
setByte(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
byte value) |
void |
setChar(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
char value) |
void |
setDouble(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
double value) |
void |
setFloat(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
float value) |
void |
setInt(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
int value) |
void |
setLong(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
long value) |
void |
setObject(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
FieldType value) |
void |
setShort(XoXMLStreamReader reader,
RuntimeContext context,
BeanType instance,
short value) |
public final Field field
public final long offset
public FieldAccessor(Field field)
public FieldType getObject(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setObject(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, FieldType value) throws JAXBException
JAXBExceptionpublic boolean getBoolean(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setBoolean(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, boolean value) throws JAXBException
JAXBExceptionpublic byte getByte(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setByte(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, byte value) throws JAXBException
JAXBExceptionpublic char getChar(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setChar(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, char value) throws JAXBException
JAXBExceptionpublic short getShort(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setShort(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, short value) throws JAXBException
JAXBExceptionpublic int getInt(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setInt(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, int value) throws JAXBException
JAXBExceptionpublic long getLong(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setLong(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, long value) throws JAXBException
JAXBExceptionpublic float getFloat(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setFloat(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, float value) throws JAXBException
JAXBExceptionpublic double getDouble(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBExceptionpublic void setDouble(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, double value) throws JAXBException
JAXBExceptionCopyright © 2007–2021. All rights reserved.