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
JAXBException
public void setObject(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, FieldType value) throws JAXBException
JAXBException
public boolean getBoolean(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBException
public void setBoolean(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, boolean value) throws JAXBException
JAXBException
public byte getByte(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBException
public void setByte(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, byte value) throws JAXBException
JAXBException
public char getChar(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBException
public void setChar(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, char value) throws JAXBException
JAXBException
public short getShort(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBException
public void setShort(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, short value) throws JAXBException
JAXBException
public int getInt(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBException
public void setInt(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, int value) throws JAXBException
JAXBException
public long getLong(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBException
public void setLong(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, long value) throws JAXBException
JAXBException
public float getFloat(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBException
public void setFloat(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, float value) throws JAXBException
JAXBException
public double getDouble(Object location, RuntimeContext context, BeanType instance) throws JAXBException
JAXBException
public void setDouble(XoXMLStreamReader reader, RuntimeContext context, BeanType instance, double value) throws JAXBException
JAXBException
Copyright © 2007–2019. All rights reserved.