1 | package com.framsticks.params; |
---|
2 | |
---|
3 | |
---|
4 | import com.framsticks.params.types.EventParam; |
---|
5 | import com.framsticks.params.types.ProcedureParam; |
---|
6 | |
---|
7 | |
---|
8 | /** |
---|
9 | * The Interface Access. It's the most general class for storing data in |
---|
10 | * framsticks. In descriptions of methods names "property" and "parameter" are |
---|
11 | * synonyms. |
---|
12 | * |
---|
13 | * @author Jarek Szymczak <name.surname@gmail.com> (please replace name and |
---|
14 | * surname with my personal data) |
---|
15 | */ |
---|
16 | public interface Access extends ParamCollection { |
---|
17 | |
---|
18 | String getTypeId(); |
---|
19 | |
---|
20 | Object call(String id, Object... arguments); |
---|
21 | |
---|
22 | Object call(ProcedureParam param, Object... arguments); |
---|
23 | |
---|
24 | <T> T get(int i, Class<T> type); |
---|
25 | |
---|
26 | <T> T get(String id, Class<T> type); |
---|
27 | |
---|
28 | <T> T get(ValueParam param, Class<T> type); |
---|
29 | |
---|
30 | <T> int set(int i, T value); |
---|
31 | |
---|
32 | <T> int set(String id, T value); |
---|
33 | |
---|
34 | <T> int set(ValueParam param, T value); |
---|
35 | |
---|
36 | void reg(EventParam param, EventListener<?> listener); |
---|
37 | |
---|
38 | void regRemove(EventParam param, EventListener<?> listener); |
---|
39 | |
---|
40 | /** |
---|
41 | * Removes all the properties values. |
---|
42 | */ |
---|
43 | void clearValues(); |
---|
44 | |
---|
45 | Access select(Object object); |
---|
46 | |
---|
47 | Object getSelected(); |
---|
48 | |
---|
49 | Access cloneAccess(); |
---|
50 | |
---|
51 | Object createAccessee(); |
---|
52 | |
---|
53 | FramsClass getFramsClass(); |
---|
54 | |
---|
55 | void tryAutoAppend(Object object); |
---|
56 | |
---|
57 | int getCompositeParamCount(); |
---|
58 | |
---|
59 | CompositeParam getCompositeParam(int number); |
---|
60 | |
---|
61 | ParamBuilder buildParam(ParamBuilder builder); |
---|
62 | |
---|
63 | } |
---|