org.vraptor.reflection
Class CollectionDealer

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

public class CollectionDealer
extends Object
implements SetDealer

Collection implementation.

Author:
Guilherme Silveira

Constructor Summary
CollectionDealer()
           
 
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 obj, int position, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionDealer

public CollectionDealer()
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)
                   throws SettingException
Specified by:
getPosition in interface SetDealer
Throws:
SettingException

resizeAndSet

public Object resizeAndSet(Object obj,
                           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.