org.granite.messaging.reflect
Class SimpleFieldProperty
java.lang.Object
org.granite.messaging.reflect.SimpleFieldProperty
- All Implemented Interfaces:
- FieldProperty, Property
public class SimpleFieldProperty
- extends Object
- implements FieldProperty
- Author:
- Franck WOLFF
SimpleFieldProperty
public SimpleFieldProperty(Field field)
getField
public Field getField()
- Specified by:
getField in interface FieldProperty
getType
public Class<?> getType()
- Specified by:
getType in interface Property
getName
public String getName()
- Specified by:
getName in interface Property
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresent in interface Property
isReadable
public boolean isReadable()
- Specified by:
isReadable in interface Property
isWritable
public boolean isWritable()
- Specified by:
isWritable in interface Property
getBoolean
public boolean getBoolean(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getBoolean in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getChar
public char getChar(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getChar in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getByte
public byte getByte(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getByte in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getShort
public short getShort(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getShort in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getInt
public int getInt(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getInt in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getLong
public long getLong(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getLong in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getFloat
public float getFloat(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getFloat in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getDouble
public double getDouble(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getDouble in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getObject
public Object getObject(Object holder)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getObject in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
getRawObject
public Object getRawObject(Object holder)
throws IllegalArgumentException,
IllegalAccessException,
InvocationTargetException
- Specified by:
getRawObject in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException
setBoolean
public void setBoolean(Object holder,
boolean value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setBoolean in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
setChar
public void setChar(Object holder,
char value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setChar in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
setByte
public void setByte(Object holder,
byte value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setByte in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
setShort
public void setShort(Object holder,
short value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setShort in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
setInt
public void setInt(Object holder,
int value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setInt in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
setLong
public void setLong(Object holder,
long value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setLong in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
setFloat
public void setFloat(Object holder,
float value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setFloat in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
setDouble
public void setDouble(Object holder,
double value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setDouble in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
setObject
public void setObject(Object holder,
Object value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setObject in interface Property
- Throws:
IllegalArgumentException
IllegalAccessException
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object