public abstract class AbstractBeanDecoder extends Object implements BeanDecoder
Constructor and Description |
---|
AbstractBeanDecoder() |
public void setCodeGenerator(CodeGenerator value)
setCodeGenerator
in interface BeanDecoder
public Object decode(UseBeanData entity, FetchType fetchType, Object data) throws BeanDecoderException
decode
in interface BeanDecoder
BeanDecoderException
protected Object getValue(UseBeanData entity, FetchType fetchType, Object data, StringBuilder path, NodeBeanDecoder parent)
protected Object getValue(MetaBean entity, Object data, StringBuilder path, NodeBeanDecoder parent)
public Object decode(DependencyBean dependencyBean, FetchType fetchType, Object data) throws BeanDecoderException
decode
in interface BeanDecoder
BeanDecoderException
protected Object getValue(DependencyBean entity, FetchType fetchType, StringBuilder path, NodeBeanDecoder node)
protected Object getValue(Bean entity, StringBuilder path, NodeBeanDecoder parent)
protected Object getValueBean(Bean entity, StringBuilder path, NodeBeanDecoder parent)
protected Object getValueCollection(CollectionBean entity, StringBuilder path, NodeBeanDecoder parent)
protected Object getValueCollectionObject(CollectionBean entity, Element e, StringBuilder path, NodeBeanDecoder parent)
protected Object getValueCollectionSimple(CollectionBean entity, Element e, StringBuilder path, NodeBeanDecoder parent)
protected Object getValueMap(MapBean entity, StringBuilder path, NodeBeanDecoder parent)
protected Object getValueMapObject(MapBean entity, Key k, StringBuilder path, NodeBeanDecoder parent)
protected Object getValueMapSimple(MapBean entity, Key k, StringBuilder path, NodeBeanDecoder parent)
protected Object getInstance(ConstructorBean constructor, StringBuilder path, NodeBeanDecoder parent)
protected Object getInstanceByConstructor(ConstructorBean constructor, StringBuilder path, NodeBeanDecoder parent) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
protected Object getInstanceByFactory(ConstructorBean constructor, StringBuilder path, NodeBeanDecoder parent) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
protected Object[] getArgs(ConstructorBean constructor, StringBuilder path, NodeBeanDecoder parent) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
protected void updatePath(StringBuilder builder, String separator, String name)
protected NodeBeanDecoder getNextNode(UseBeanData entity, StringBuilder path, NodeBeanDecoder current)
protected NodeBeanDecoder getNextNode(DependencyBean entity, StringBuilder path, NodeBeanDecoder current)
protected NodeBeanDecoder getNextNode(String beanPath, String pathName, StringBuilder path, NodeBeanDecoder current)
protected abstract Object getValue(MetaBean entity, StringBuilder path, NodeBeanDecoder node)
protected abstract Object getValue(UseBeanData entity, StringBuilder path, NodeBeanDecoder node)
protected abstract Object getValue(DependencyBean entity, StringBuilder path, NodeBeanDecoder node)
protected boolean endsWith(StringBuilder builder, String value)
Copyright © 2018 Brandao. All rights reserved.