org.xerial.util.bean.impl
Class CollectionSetter

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

public class CollectionSetter
extends Object


Constructor Summary
CollectionSetter(Method method, String parameterName, Class collectionType, Class elementType)
           
 
Method Summary
static void constractableTest(Class c)
           
static JSONArray getJSONArray(Object json, String key)
           
 Method getMethod()
           
 String getParameterName()
           
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
 

Constructor Detail

CollectionSetter

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

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.