org.vraptor.reflection
Class ArrayDealer

java.lang.Object
  extended by org.vraptor.reflection.ArrayDealer
All Implemented Interfaces:
SetDealer

public class ArrayDealer
extends Object
implements SetDealer

An array implementation.

Author:
Guilherme Silveira

Constructor Summary
ArrayDealer()
           
 
Method Summary
 Object getPosition(Object object, int arrayPosition, boolean mayCreate)
           
 Class getType(Type type)
           
 Object resizeAndSet(Object object, int position, boolean mayCreate, Type type)
          Resizes if needed (per one) and sets the object
 Object resizeAndSet(Object array, int position, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayDealer

public ArrayDealer()
Method Detail

resizeAndSet

public Object resizeAndSet(Object object,
                           int position,
                           boolean mayCreate,
                           Type type)
                    throws SettingException
Description copied from interface: SetDealer
Resizes if needed (per one) and sets the object

Specified by:
resizeAndSet in interface SetDealer
Throws:
SettingException

getPosition

public Object getPosition(Object object,
                          int arrayPosition,
                          boolean mayCreate)
Specified by:
getPosition in interface SetDealer

resizeAndSet

public Object resizeAndSet(Object array,
                           int position,
                           Object value)
                    throws SettingException
Specified by:
resizeAndSet in interface SetDealer
Throws:
SettingException

getType

public Class getType(Type type)
Specified by:
getType in interface SetDealer


Copyright © 2004-2008 VRaptor. All Rights Reserved.