01: package org.vraptor.reflection;
02:
03: import java.lang.reflect.Type;
04:
05: /**
06: * A generic set dealer.
07: *
08: * @author Guilherme Silveira
09: */
10: public interface SetDealer {
11:
12: /**
13: * Resizes if needed (per one) and sets the object
14: */
15: Object resizeAndSet(Object object, int position, boolean mayCreate,
16: Type type) throws SettingException;
17:
18: Object getPosition(Object object, int arrayPosition,
19: boolean mayCreate) throws SettingException;
20:
21: Object resizeAndSet(Object component, int arrayPosition,
22: Object value) throws SettingException;
23:
24: Class getType(Type type);
25:
26: }
|