com.dyuproject.json
Class StandardPojoConvertor.StandardSetter

java.lang.Object
  extended by org.mortbay.util.ajax.JSONPojoConvertor.Setter
      extended by com.dyuproject.json.StandardPojoConvertor.StandardSetter
Direct Known Subclasses:
OverloadPojoConvertor.OverloadSetter, SimpleJSONConsumer.ValidatingSetter
Enclosing class:
StandardPojoConvertor

public static class StandardPojoConvertor.StandardSetter
extends org.mortbay.util.ajax.JSONPojoConvertor.Setter

The standard setter. If overloading is needed, use OverloadPojoConvertor.OverloadSetter instead.


Field Summary
protected  int _collectionType
           
protected static int LIST
           
protected static int SET
           
 
Fields inherited from class org.mortbay.util.ajax.JSONPojoConvertor.Setter
_componentType, _method, _numberType, _propertyName, _type
 
Constructor Summary
StandardPojoConvertor.StandardSetter(String propertyName, Method method)
           
 
Method Summary
 void invoke(Object obj, Object value)
           
static boolean invokeObject(Object obj, Object value, StandardPojoConvertor.StandardSetter setter)
           
 
Methods inherited from class org.mortbay.util.ajax.JSONPojoConvertor.Setter
getComponentType, getMethod, getNumberType, getPropertyName, getType, invokeObject, isPropertyNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIST

protected static final int LIST
See Also:
Constant Field Values

SET

protected static final int SET
See Also:
Constant Field Values

_collectionType

protected int _collectionType
Constructor Detail

StandardPojoConvertor.StandardSetter

public StandardPojoConvertor.StandardSetter(String propertyName,
                                            Method method)
Method Detail

invoke

public void invoke(Object obj,
                   Object value)
            throws IllegalArgumentException,
                   IllegalAccessException,
                   InvocationTargetException
Overrides:
invoke in class org.mortbay.util.ajax.JSONPojoConvertor.Setter
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

invokeObject

public static boolean invokeObject(Object obj,
                                   Object value,
                                   StandardPojoConvertor.StandardSetter setter)
                            throws IllegalArgumentException,
                                   IllegalAccessException,
                                   InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException


Copyright © 2008-2013. All Rights Reserved.