flexjson
Class ObjectBinder
java.lang.Object
flexjson.ObjectBinder
public class ObjectBinder
- extends Object
Method Summary |
Object |
bind(Object input)
|
Object |
bind(Object source,
Object target)
|
Object |
bind(Object input,
Type targetType)
|
|
bindIntoCollection(Collection value,
T target,
Type targetType)
|
Object |
bindIntoMap(Map input,
Map<Object,Object> result,
Type keyType,
Type valueType)
|
Object |
bindIntoObject(Map jsonOwner,
Object target,
Type targetType)
|
Object |
bindPrimitive(Object value,
Class clazz)
|
JSONException |
cannotConvertValueToTargetType(Object value,
Class targetType)
|
Class |
findClassAtPath(Path currentPath)
|
protected Class |
findClassInMap(Map map,
Class override)
|
Path |
getCurrentPath()
|
Object |
getSource()
|
Object |
getTarget()
|
protected Object |
instantiate(Class clazz)
|
ObjectBinder |
use(Class clazz,
ObjectFactory factory)
|
ObjectBinder |
use(Path path,
ObjectFactory factory)
|
protected Class |
useMostSpecific(Class classFromTarget,
Class typeFound)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectBinder
public ObjectBinder()
use
public ObjectBinder use(Path path,
ObjectFactory factory)
use
public ObjectBinder use(Class clazz,
ObjectFactory factory)
getCurrentPath
public Path getCurrentPath()
bind
public Object bind(Object input)
bind
public Object bind(Object source,
Object target)
bind
public Object bind(Object input,
Type targetType)
bindIntoCollection
public <T extends Collection<Object>> T bindIntoCollection(Collection value,
T target,
Type targetType)
bindIntoMap
public Object bindIntoMap(Map input,
Map<Object,Object> result,
Type keyType,
Type valueType)
bindIntoObject
public Object bindIntoObject(Map jsonOwner,
Object target,
Type targetType)
cannotConvertValueToTargetType
public JSONException cannotConvertValueToTargetType(Object value,
Class targetType)
useMostSpecific
protected Class useMostSpecific(Class classFromTarget,
Class typeFound)
findClassInMap
protected Class findClassInMap(Map map,
Class override)
instantiate
protected Object instantiate(Class clazz)
getTarget
public Object getTarget()
getSource
public Object getSource()
bindPrimitive
public Object bindPrimitive(Object value,
Class clazz)
findClassAtPath
public Class findClassAtPath(Path currentPath)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
Copyright © 2014. All Rights Reserved.