2
2
3
3
// THIS FILE IS GENERATED WHILE COMPILING. DO NOT CHANGE ANYTHING HERE!
4
4
5
+ import org .codeoverflow .chatoverflow .api .io .parameter .BooleanParameter ;
6
+ import org .codeoverflow .chatoverflow .api .io .parameter .ColorParameter ;
7
+ import org .codeoverflow .chatoverflow .api .io .parameter .DoubleParameter ;
8
+ import org .codeoverflow .chatoverflow .api .io .parameter .IntegerParameter ;
9
+ import org .codeoverflow .chatoverflow .api .io .parameter .ListParameter ;
10
+ import org .codeoverflow .chatoverflow .api .io .parameter .MapParameter ;
5
11
import org .codeoverflow .chatoverflow .api .io .parameter .StringParameter ;
12
+ import org .codeoverflow .chatoverflow .api .io .parameter .UriParameter ;
6
13
7
14
// THIS FILE IS GENERATED WHILE COMPILING. DO NOT CHANGE ANYTHING HERE!
8
15
@@ -17,6 +24,138 @@ public class Parameter {
17
24
this .requirements = requirements ;
18
25
}
19
26
27
+ /**
28
+ * Requires a BooleanParameter which has to be specified by the user.
29
+ *
30
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
31
+ * @param displayName a string to display to the user while setting your requirement
32
+ * @param isOptional true if this requirement is optional, false if mandatory
33
+ * @return the requirement object. Use the get() method only at runtime!
34
+ */
35
+ public Requirement <BooleanParameter > booleanParameter (String uniqueRequirementId , String displayName , boolean isOptional ) {
36
+ return requirements .requireParameter (uniqueRequirementId , displayName , isOptional , BooleanParameter .class );
37
+ }
38
+
39
+ /**
40
+ * Requires a BooleanParameter which has to be specified by the user.
41
+ *
42
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
43
+ * @return the requirement object. Use the get() method only at runtime!
44
+ */
45
+ public Requirement <BooleanParameter > booleanParameter (String uniqueRequirementId ) {
46
+ return requirements .requireParameter (uniqueRequirementId , "Boolean Parameter" , false , BooleanParameter .class );
47
+ }
48
+
49
+ /**
50
+ * Requires a ColorParameter which has to be specified by the user.
51
+ *
52
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
53
+ * @param displayName a string to display to the user while setting your requirement
54
+ * @param isOptional true if this requirement is optional, false if mandatory
55
+ * @return the requirement object. Use the get() method only at runtime!
56
+ */
57
+ public Requirement <ColorParameter > colorParameter (String uniqueRequirementId , String displayName , boolean isOptional ) {
58
+ return requirements .requireParameter (uniqueRequirementId , displayName , isOptional , ColorParameter .class );
59
+ }
60
+
61
+ /**
62
+ * Requires a ColorParameter which has to be specified by the user.
63
+ *
64
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
65
+ * @return the requirement object. Use the get() method only at runtime!
66
+ */
67
+ public Requirement <ColorParameter > colorParameter (String uniqueRequirementId ) {
68
+ return requirements .requireParameter (uniqueRequirementId , "Color Parameter" , false , ColorParameter .class );
69
+ }
70
+
71
+ /**
72
+ * Requires a DoubleParameter which has to be specified by the user.
73
+ *
74
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
75
+ * @param displayName a string to display to the user while setting your requirement
76
+ * @param isOptional true if this requirement is optional, false if mandatory
77
+ * @return the requirement object. Use the get() method only at runtime!
78
+ */
79
+ public Requirement <DoubleParameter > doubleParameter (String uniqueRequirementId , String displayName , boolean isOptional ) {
80
+ return requirements .requireParameter (uniqueRequirementId , displayName , isOptional , DoubleParameter .class );
81
+ }
82
+
83
+ /**
84
+ * Requires a DoubleParameter which has to be specified by the user.
85
+ *
86
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
87
+ * @return the requirement object. Use the get() method only at runtime!
88
+ */
89
+ public Requirement <DoubleParameter > doubleParameter (String uniqueRequirementId ) {
90
+ return requirements .requireParameter (uniqueRequirementId , "Double Parameter" , false , DoubleParameter .class );
91
+ }
92
+
93
+ /**
94
+ * Requires a IntegerParameter which has to be specified by the user.
95
+ *
96
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
97
+ * @param displayName a string to display to the user while setting your requirement
98
+ * @param isOptional true if this requirement is optional, false if mandatory
99
+ * @return the requirement object. Use the get() method only at runtime!
100
+ */
101
+ public Requirement <IntegerParameter > integerParameter (String uniqueRequirementId , String displayName , boolean isOptional ) {
102
+ return requirements .requireParameter (uniqueRequirementId , displayName , isOptional , IntegerParameter .class );
103
+ }
104
+
105
+ /**
106
+ * Requires a IntegerParameter which has to be specified by the user.
107
+ *
108
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
109
+ * @return the requirement object. Use the get() method only at runtime!
110
+ */
111
+ public Requirement <IntegerParameter > integerParameter (String uniqueRequirementId ) {
112
+ return requirements .requireParameter (uniqueRequirementId , "Integer Parameter" , false , IntegerParameter .class );
113
+ }
114
+
115
+ /**
116
+ * Requires a ListParameter which has to be specified by the user.
117
+ *
118
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
119
+ * @param displayName a string to display to the user while setting your requirement
120
+ * @param isOptional true if this requirement is optional, false if mandatory
121
+ * @return the requirement object. Use the get() method only at runtime!
122
+ */
123
+ public Requirement <ListParameter > listParameter (String uniqueRequirementId , String displayName , boolean isOptional ) {
124
+ return requirements .requireParameter (uniqueRequirementId , displayName , isOptional , ListParameter .class );
125
+ }
126
+
127
+ /**
128
+ * Requires a ListParameter which has to be specified by the user.
129
+ *
130
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
131
+ * @return the requirement object. Use the get() method only at runtime!
132
+ */
133
+ public Requirement <ListParameter > listParameter (String uniqueRequirementId ) {
134
+ return requirements .requireParameter (uniqueRequirementId , "List Parameter" , false , ListParameter .class );
135
+ }
136
+
137
+ /**
138
+ * Requires a MapParameter which has to be specified by the user.
139
+ *
140
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
141
+ * @param displayName a string to display to the user while setting your requirement
142
+ * @param isOptional true if this requirement is optional, false if mandatory
143
+ * @return the requirement object. Use the get() method only at runtime!
144
+ */
145
+ public Requirement <MapParameter > mapParameter (String uniqueRequirementId , String displayName , boolean isOptional ) {
146
+ return requirements .requireParameter (uniqueRequirementId , displayName , isOptional , MapParameter .class );
147
+ }
148
+
149
+ /**
150
+ * Requires a MapParameter which has to be specified by the user.
151
+ *
152
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
153
+ * @return the requirement object. Use the get() method only at runtime!
154
+ */
155
+ public Requirement <MapParameter > mapParameter (String uniqueRequirementId ) {
156
+ return requirements .requireParameter (uniqueRequirementId , "Map Parameter" , false , MapParameter .class );
157
+ }
158
+
20
159
/**
21
160
* Requires a StringParameter which has to be specified by the user.
22
161
*
@@ -25,7 +164,7 @@ public class Parameter {
25
164
* @param isOptional true if this requirement is optional, false if mandatory
26
165
* @return the requirement object. Use the get() method only at runtime!
27
166
*/
28
- public Requirement <StringParameter > string (String uniqueRequirementId , String displayName , boolean isOptional ) {
167
+ public Requirement <StringParameter > stringParameter (String uniqueRequirementId , String displayName , boolean isOptional ) {
29
168
return requirements .requireParameter (uniqueRequirementId , displayName , isOptional , StringParameter .class );
30
169
}
31
170
@@ -35,8 +174,30 @@ public Requirement<StringParameter> string(String uniqueRequirementId, String di
35
174
* @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
36
175
* @return the requirement object. Use the get() method only at runtime!
37
176
*/
38
- public Requirement <StringParameter > string (String uniqueRequirementId ) {
39
- return requirements .requireParameter (uniqueRequirementId , "String" , false , StringParameter .class );
177
+ public Requirement <StringParameter > stringParameter (String uniqueRequirementId ) {
178
+ return requirements .requireParameter (uniqueRequirementId , "String Parameter" , false , StringParameter .class );
179
+ }
180
+
181
+ /**
182
+ * Requires a UriParameter which has to be specified by the user.
183
+ *
184
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
185
+ * @param displayName a string to display to the user while setting your requirement
186
+ * @param isOptional true if this requirement is optional, false if mandatory
187
+ * @return the requirement object. Use the get() method only at runtime!
188
+ */
189
+ public Requirement <UriParameter > uriParameter (String uniqueRequirementId , String displayName , boolean isOptional ) {
190
+ return requirements .requireParameter (uniqueRequirementId , displayName , isOptional , UriParameter .class );
191
+ }
192
+
193
+ /**
194
+ * Requires a UriParameter which has to be specified by the user.
195
+ *
196
+ * @param uniqueRequirementId a plugin unique identifier which is stored for your plugin
197
+ * @return the requirement object. Use the get() method only at runtime!
198
+ */
199
+ public Requirement <UriParameter > uriParameter (String uniqueRequirementId ) {
200
+ return requirements .requireParameter (uniqueRequirementId , "Uri Parameter" , false , UriParameter .class );
40
201
}
41
202
42
203
0 commit comments