flexjson
Class BeanProperty

java.lang.Object
  extended by flexjson.BeanProperty

public class BeanProperty
extends Object


Field Summary
protected  Field property
           
protected  Method readMethod
           
protected  Method writeMethod
           
protected  Map<Class<?>,Method> writeMethods
           
 
Constructor Summary
BeanProperty(Field property, BeanAnalyzer bean)
           
BeanProperty(String name, BeanAnalyzer bean)
           
 
Method Summary
 void addWriteMethod(Method method)
           
 String getName()
           
 Field getProperty()
           
 Class getPropertyType()
           
 Method getReadMethod()
           
 Object getValue(Object instance)
           
 Method getWriteMethod()
           
 Collection<Method> getWriteMethods()
           
 Boolean isAnnotated()
           
 Boolean isReadable()
           
 Boolean isWritable()
           
 void setReadMethod(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

property

protected Field property

readMethod

protected Method readMethod

writeMethod

protected Method writeMethod

writeMethods

protected Map<Class<?>,Method> writeMethods
Constructor Detail

BeanProperty

public BeanProperty(String name,
                    BeanAnalyzer bean)

BeanProperty

public BeanProperty(Field property,
                    BeanAnalyzer bean)
Method Detail

getName

public String getName()

getProperty

public Field getProperty()

getPropertyType

public Class getPropertyType()

getReadMethod

public Method getReadMethod()

getWriteMethod

public Method getWriteMethod()

getWriteMethods

public Collection<Method> getWriteMethods()

addWriteMethod

public void addWriteMethod(Method method)

setReadMethod

public void setReadMethod(Method method)

isAnnotated

public Boolean isAnnotated()

getValue

public Object getValue(Object instance)
                throws InvocationTargetException,
                       IllegalAccessException
Throws:
InvocationTargetException
IllegalAccessException

isReadable

public Boolean isReadable()

isWritable

public Boolean isWritable()


Copyright © 2010. All Rights Reserved.