org.xerial.util.bean.impl
Class MapSetter

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

public class MapSetter
extends Object


Constructor Summary
MapSetter(Method method, String parameterName, Class mapType, Class keyType, Class valueType)
           
 
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

MapSetter

public MapSetter(Method method,
                 String parameterName,
                 Class mapType,
                 Class keyType,
                 Class valueType)
          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.