org.granite.messaging.reflect
Interface Property

All Known Subinterfaces:
FieldProperty, MethodProperty
All Known Implementing Classes:
NoopWritableProperty, NullProperty, SimpleFieldProperty, SimpleMethodProperty

public interface Property

Author:
Franck WOLFF

Method Summary
 boolean getBoolean(Object holder)
           
 byte getByte(Object holder)
           
 char getChar(Object holder)
           
 double getDouble(Object holder)
           
 float getFloat(Object holder)
           
 int getInt(Object holder)
           
 long getLong(Object holder)
           
 String getName()
           
 Object getObject(Object holder)
           
 Object getRawObject(Object holder)
           
 short getShort(Object holder)
           
 Class<?> getType()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
           
 boolean isReadable()
           
 boolean isWritable()
           
 void setBoolean(Object holder, boolean value)
           
 void setByte(Object holder, byte value)
           
 void setChar(Object holder, char value)
           
 void setDouble(Object holder, double value)
           
 void setFloat(Object holder, float value)
           
 void setInt(Object holder, int value)
           
 void setLong(Object holder, long value)
           
 void setObject(Object holder, Object value)
           
 void setShort(Object holder, short value)
           
 

Method Detail

getType

Class<?> getType()

getName

String getName()

isAnnotationPresent

boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)

isReadable

boolean isReadable()

isWritable

boolean isWritable()

getBoolean

boolean getBoolean(Object holder)
                   throws IllegalArgumentException,
                          IllegalAccessException,
                          InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getChar

char getChar(Object holder)
             throws IllegalArgumentException,
                    IllegalAccessException,
                    InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getByte

byte getByte(Object holder)
             throws IllegalArgumentException,
                    IllegalAccessException,
                    InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getShort

short getShort(Object holder)
               throws IllegalArgumentException,
                      IllegalAccessException,
                      InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getInt

int getInt(Object holder)
           throws IllegalArgumentException,
                  IllegalAccessException,
                  InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getLong

long getLong(Object holder)
             throws IllegalArgumentException,
                    IllegalAccessException,
                    InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getFloat

float getFloat(Object holder)
               throws IllegalArgumentException,
                      IllegalAccessException,
                      InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getDouble

double getDouble(Object holder)
                 throws IllegalArgumentException,
                        IllegalAccessException,
                        InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getObject

Object getObject(Object holder)
                 throws IllegalArgumentException,
                        IllegalAccessException,
                        InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getRawObject

Object getRawObject(Object holder)
                    throws IllegalArgumentException,
                           IllegalAccessException,
                           InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setBoolean

void setBoolean(Object holder,
                boolean value)
                throws IllegalArgumentException,
                       IllegalAccessException,
                       InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setChar

void setChar(Object holder,
             char value)
             throws IllegalArgumentException,
                    IllegalAccessException,
                    InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setByte

void setByte(Object holder,
             byte value)
             throws IllegalArgumentException,
                    IllegalAccessException,
                    InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setShort

void setShort(Object holder,
              short value)
              throws IllegalArgumentException,
                     IllegalAccessException,
                     InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setInt

void setInt(Object holder,
            int value)
            throws IllegalArgumentException,
                   IllegalAccessException,
                   InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setLong

void setLong(Object holder,
             long value)
             throws IllegalArgumentException,
                    IllegalAccessException,
                    InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setFloat

void setFloat(Object holder,
              float value)
              throws IllegalArgumentException,
                     IllegalAccessException,
                     InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setDouble

void setDouble(Object holder,
               double value)
               throws IllegalArgumentException,
                      IllegalAccessException,
                      InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

setObject

void setObject(Object holder,
               Object value)
               throws IllegalArgumentException,
                      IllegalAccessException,
                      InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException