|
@@ -44,7 +44,7 @@ public interface ActionController {
|
44
|
44
|
*
|
45
|
45
|
* @param action The action to be registered
|
46
|
46
|
*/
|
47
|
|
- @Precondition(value = "The specified action is not null")
|
|
47
|
+ @Precondition("The specified action is not null")
|
48
|
48
|
void addAction(final Action action);
|
49
|
49
|
|
50
|
50
|
/**
|
|
@@ -60,13 +60,9 @@ public interface ActionController {
|
60
|
60
|
* @param oldName The old name of the group
|
61
|
61
|
* @param newName The new name of the group
|
62
|
62
|
*/
|
63
|
|
- @Precondition(value = {
|
64
|
|
- "The old name is non-null and not empty",
|
65
|
|
- "The old name is an existing group",
|
66
|
|
- "The new name is non-null and not empty",
|
67
|
|
- "The new name is not an existing group",
|
68
|
|
- "The old name does not equal the new name"
|
69
|
|
- })
|
|
63
|
+ @Precondition({"The old name is non-null and not empty", "The old name is an existing group",
|
|
64
|
+ "The new name is non-null and not empty", "The new name is not an existing group",
|
|
65
|
+ "The old name does not equal the new name"})
|
70
|
66
|
void changeGroupName(final String oldName, final String newName);
|
71
|
67
|
|
72
|
68
|
/**
|
|
@@ -76,10 +72,8 @@ public interface ActionController {
|
76
|
72
|
*
|
77
|
73
|
* @return The newly created group
|
78
|
74
|
*/
|
79
|
|
- @Precondition(value = {
|
80
|
|
- "The specified group is non-null and not empty",
|
81
|
|
- "The specified group is not an existing group"
|
82
|
|
- })
|
|
75
|
+ @Precondition({"The specified group is non-null and not empty",
|
|
76
|
+ "The specified group is not an existing group"})
|
83
|
77
|
ActionGroup createGroup(final String group);
|
84
|
78
|
|
85
|
79
|
/**
|
|
@@ -87,10 +81,8 @@ public interface ActionController {
|
87
|
81
|
*
|
88
|
82
|
* @param group The group to be removed
|
89
|
83
|
*/
|
90
|
|
- @Precondition(value = {
|
91
|
|
- "The specified group is non-null and not empty",
|
92
|
|
- "The specified group is an existing group"
|
93
|
|
- })
|
|
84
|
+ @Precondition({"The specified group is non-null and not empty",
|
|
85
|
+ "The specified group is an existing group"})
|
94
|
86
|
void deleteGroup(final String group);
|
95
|
87
|
|
96
|
88
|
/**
|
|
@@ -100,7 +92,7 @@ public interface ActionController {
|
100
|
92
|
*
|
101
|
93
|
* @return A list of compatible action comparisons
|
102
|
94
|
*/
|
103
|
|
- @Precondition(value = "The specified target is not null")
|
|
95
|
+ @Precondition("The specified target is not null")
|
104
|
96
|
List<ActionComparison> findCompatibleComparisons(final Class<?> target);
|
105
|
97
|
|
106
|
98
|
/**
|
|
@@ -110,7 +102,7 @@ public interface ActionController {
|
110
|
102
|
*
|
111
|
103
|
* @return A list of compatible action components
|
112
|
104
|
*/
|
113
|
|
- @Precondition(value = "The specified target is not null")
|
|
105
|
+ @Precondition("The specified target is not null")
|
114
|
106
|
List<ActionComponent> findCompatibleComponents(final Class<?> target);
|
115
|
107
|
|
116
|
108
|
/**
|
|
@@ -120,7 +112,7 @@ public interface ActionController {
|
120
|
112
|
*
|
121
|
113
|
* @return A list of compatible action types
|
122
|
114
|
*/
|
123
|
|
- @Precondition(value = "The specified type is not null")
|
|
115
|
+ @Precondition("The specified type is not null")
|
124
|
116
|
List<ActionType> findCompatibleTypes(final ActionType type);
|
125
|
117
|
|
126
|
118
|
/**
|
|
@@ -131,7 +123,7 @@ public interface ActionController {
|
131
|
123
|
*
|
132
|
124
|
* @return The actiontype with the specified name, or null on failure
|
133
|
125
|
*/
|
134
|
|
- @Precondition(value = "The specified type is non-null and not empty")
|
|
126
|
+ @Precondition("The specified type is non-null and not empty")
|
135
|
127
|
ActionComparison getComparison(final String type);
|
136
|
128
|
|
137
|
129
|
/**
|
|
@@ -142,7 +134,7 @@ public interface ActionController {
|
142
|
134
|
*
|
143
|
135
|
* @return The actioncomponent with the specified name, or null on failure
|
144
|
136
|
*/
|
145
|
|
- @Precondition(value = "The specified type is non-null and not empty")
|
|
137
|
+ @Precondition("The specified type is non-null and not empty")
|
146
|
138
|
ActionComponent getComponent(final String type);
|
147
|
139
|
|
148
|
140
|
/**
|
|
@@ -189,7 +181,7 @@ public interface ActionController {
|
189
|
181
|
*
|
190
|
182
|
* @param comps An array of ActionComparisons to be registered
|
191
|
183
|
*/
|
192
|
|
- @Precondition(value = "None of the specified ActionComparisons are null")
|
|
184
|
+ @Precondition("None of the specified ActionComparisons are null")
|
193
|
185
|
void registerComparisons(final ActionComparison[] comps);
|
194
|
186
|
|
195
|
187
|
/**
|
|
@@ -197,7 +189,7 @@ public interface ActionController {
|
197
|
189
|
*
|
198
|
190
|
* @param comps An array of ActionComponents to be registered
|
199
|
191
|
*/
|
200
|
|
- @Precondition(value = "None of the specified ActionComponents are null")
|
|
192
|
+ @Precondition("None of the specified ActionComponents are null")
|
201
|
193
|
void registerComponents(final ActionComponent[] comps);
|
202
|
194
|
|
203
|
195
|
/**
|
|
@@ -221,7 +213,7 @@ public interface ActionController {
|
221
|
213
|
*
|
222
|
214
|
* @param newTypes An array of ActionTypes to be registered
|
223
|
215
|
*/
|
224
|
|
- @Precondition(value = "None of the specified ActionTypes are null")
|
|
216
|
+ @Precondition("None of the specified ActionTypes are null")
|
225
|
217
|
void registerTypes(final ActionType[] newTypes);
|
226
|
218
|
|
227
|
219
|
/**
|
|
@@ -229,7 +221,7 @@ public interface ActionController {
|
229
|
221
|
*
|
230
|
222
|
* @param action The action to be unregistered
|
231
|
223
|
*/
|
232
|
|
- @Precondition(value = "The specified action is not null")
|
|
224
|
+ @Precondition("The specified action is not null")
|
233
|
225
|
void removeAction(final Action action);
|
234
|
226
|
|
235
|
227
|
/**
|
|
@@ -255,11 +247,10 @@ public interface ActionController {
|
255
|
247
|
* @return True if the event should be processed, or false if an action listener has requested
|
256
|
248
|
* the event be skipped.
|
257
|
249
|
*/
|
258
|
|
- @Precondition(value = {
|
259
|
|
- "The specified ActionType is not null",
|
260
|
|
- "The specified ActionType has a valid ActionMetaType",
|
261
|
|
- "The length of the arguments array equals the arity of the ActionType's ActionMetaType"
|
262
|
|
- })
|
|
250
|
+ @Precondition({"The specified ActionType is not null",
|
|
251
|
+ "The specified ActionType has a valid ActionMetaType",
|
|
252
|
+ "The length of the arguments array equals the arity of the ActionType's " +
|
|
253
|
+ "ActionMetaType"})
|
263
|
254
|
boolean triggerEvent(final ActionType type, final StringBuffer format, final Object... arguments);
|
264
|
255
|
|
265
|
256
|
/**
|