flexjson
Class BeanProperty

java.lang.Object
  extended by flexjson.BeanProperty

public class BeanProperty
extends Object


Field Summary
protected  Boolean included
           
protected  DeferredInstantiation<? extends ObjectFactory> objectFactory
           
protected  Field property
           
protected  Method readMethod
           
protected  DeferredInstantiation<? extends Transformer> transformer
           
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 getJsonName()
           
 String getName()
           
 ObjectFactory getObjectFactory()
           
 Field getProperty()
           
 Class getPropertyType()
           
 Method getReadMethod()
           
 Transformer getTransformer()
           
 Object getValue(Object instance)
           
 Method getWriteMethod()
           
 Collection<Method> getWriteMethods()
           
 Boolean isIncluded()
           
protected  boolean isNonProperty()
          This method exists to help remove any properties that are only private members.
 Boolean isReadable()
           
 Boolean isTransient()
           
 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 final Field property

readMethod

protected Method readMethod

writeMethod

protected Method writeMethod

writeMethods

protected Map<Class<?>,Method> writeMethods

transformer

protected DeferredInstantiation<? extends Transformer> transformer

objectFactory

protected DeferredInstantiation<? extends ObjectFactory> objectFactory

included

protected Boolean included
Constructor Detail

BeanProperty

public BeanProperty(String name,
                    BeanAnalyzer bean)

BeanProperty

public BeanProperty(Field property,
                    BeanAnalyzer bean)
Method Detail

getName

public String getName()

getJsonName

public String getJsonName()

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)

isIncluded

public Boolean isIncluded()

getValue

public Object getValue(Object instance)

isReadable

public Boolean isReadable()

isWritable

public Boolean isWritable()

isTransient

public Boolean isTransient()

isNonProperty

protected boolean isNonProperty()
This method exists to help remove any properties that are only private members.

Returns:
returns true if this property doesn't have a read method, write method, or is a non-public field.

getTransformer

public Transformer getTransformer()
                           throws InstantiationException,
                                  IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

getObjectFactory

public ObjectFactory getObjectFactory()
                               throws InstantiationException,
                                      IllegalAccessException
Throws:
InstantiationException
IllegalAccessException


Copyright © 2014. All Rights Reserved.