org.xerial.util.bean.impl
Class BeanUtilImpl

java.lang.Object
  extended by org.xerial.util.bean.impl.BeanUtilImpl

public class BeanUtilImpl
extends Object

Implementations of BeanUtil

Author:
leo

Constructor Summary
BeanUtilImpl()
           
 
Method Summary
static
<E> E
createBeanFromJSON(Class<E> beanType, Reader jsonReader)
           
static
<E> E
createBeanFromMap(Class<E> beanType, Map map)
           
static
<E> E
createBeanFromParseTree(Class<E> beanType, org.antlr.runtime.tree.Tree parseTree, String[] parserTokenNames)
           
static
<E> E
createBeanFromXML(Class<E> beanType, Element xmlElement)
           
static
<E> E
createBeanFromXML(Class<E> beanType, Reader xmlReader)
           
static Object populateBeanWithJSON(Object bean, Reader jsonReader)
           
static Object populateBeanWithMap(Object bean, Map map)
           
static Object populateBeanWithParseTree(Object bean, org.antlr.runtime.tree.Tree parseTree, String[] parserTokenNames)
           
static Object populateBeanWithXML(Object bean, Element xmlElement)
           
static Object populateBeanWithXML(Object bean, Reader xmlReader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanUtilImpl

public BeanUtilImpl()
Method Detail

createBeanFromXML

public static <E> E createBeanFromXML(Class<E> beanType,
                                      Reader xmlReader)
                           throws XerialException
Throws:
XerialException

populateBeanWithXML

public static Object populateBeanWithXML(Object bean,
                                         Reader xmlReader)
                                  throws XerialException
Throws:
XerialException

createBeanFromXML

public static <E> E createBeanFromXML(Class<E> beanType,
                                      Element xmlElement)
                           throws XerialException
Throws:
XerialException

populateBeanWithXML

public static Object populateBeanWithXML(Object bean,
                                         Element xmlElement)
                                  throws XerialException
Throws:
XerialException

createBeanFromParseTree

public static <E> E createBeanFromParseTree(Class<E> beanType,
                                            org.antlr.runtime.tree.Tree parseTree,
                                            String[] parserTokenNames)
                                 throws XerialException
Throws:
XerialException

populateBeanWithParseTree

public static Object populateBeanWithParseTree(Object bean,
                                               org.antlr.runtime.tree.Tree parseTree,
                                               String[] parserTokenNames)
                                        throws XerialException
Throws:
XerialException

createBeanFromJSON

public static <E> E createBeanFromJSON(Class<E> beanType,
                                       Reader jsonReader)
                            throws IOException,
                                   XerialException
Throws:
IOException
XerialException

populateBeanWithJSON

public static Object populateBeanWithJSON(Object bean,
                                          Reader jsonReader)
                                   throws IOException,
                                          XerialException
Throws:
IOException
XerialException

createBeanFromMap

public static <E> E createBeanFromMap(Class<E> beanType,
                                      Map map)
                           throws XerialException
Throws:
XerialException

populateBeanWithMap

public static Object populateBeanWithMap(Object bean,
                                         Map map)
                                  throws XerialException
Throws:
XerialException


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.