org.xerial.util.bean.impl
Class CollectionAdder

java.lang.Object
  extended by org.xerial.util.bean.impl.CollectionAdder
All Implemented Interfaces:
BeanBinder, BeanUpdator

public class CollectionAdder
extends Object
implements BeanUpdator


Constructor Summary
CollectionAdder(Method method, String parameterName, Class elementType)
           
 
Method Summary
static void constractableTest(Class c)
           
 Class getInputType()
           
static JSONArray getJSONArray(Object json, String key)
           
 Method getMethod()
           
 String getParameterName()
           
 BeanUpdatorType getType()
           
protected  void invokeMethod(Object bean, Object[] args)
          Invoke a method of the bean object, then handle some exceptions if they occur
 void setMethod(Method method)
           
 void setParameterName(String parameterName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xerial.util.bean.BeanUpdator
getMethod
 

Constructor Detail

CollectionAdder

public CollectionAdder(Method method,
                       String parameterName,
                       Class elementType)
                throws BeanException
Throws:
BeanException
Method Detail

getInputType

public Class getInputType()
Specified by:
getInputType in interface BeanUpdator

getType

public BeanUpdatorType getType()
Specified by:
getType in interface BeanUpdator

getMethod

public Method getMethod()
Specified by:
getMethod in interface BeanBinder

setMethod

public void setMethod(Method method)
Specified by:
setMethod in interface BeanBinder

toString

public String toString()
Specified by:
toString in interface BeanBinder
Overrides:
toString in class Object

getParameterName

public String getParameterName()
Specified by:
getParameterName in interface BeanBinder

setParameterName

public void setParameterName(String parameterName)
Specified by:
setParameterName in interface BeanBinder

getJSONArray

public static JSONArray getJSONArray(Object json,
                                     String key)

constractableTest

public static void constractableTest(Class c)
                              throws BeanException
Throws:
BeanException

invokeMethod

protected void invokeMethod(Object bean,
                            Object[] args)
                     throws BeanException
Invoke a method of the bean object, then handle some exceptions if they occur

Parameters:
bean -
args -
Throws:
BeanException


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