flexjson
Class BeanProperty
java.lang.Object
flexjson.BeanProperty
public class BeanProperty
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
BeanProperty
public BeanProperty(String name,
BeanAnalyzer bean)
BeanProperty
public BeanProperty(Field property,
BeanAnalyzer bean)
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.