1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package test.de.smartics.properties.spi.config.proxy.examples;
17
18 import java.beans.PropertyChangeListener;
19
20 import de.smartics.properties.api.config.domain.ConfigurationProperties;
21 import de.smartics.properties.api.config.domain.ConfigurationValidationException;
22 import de.smartics.properties.api.config.domain.DescribedProperty;
23 import de.smartics.properties.api.config.domain.SerializableConfigurationProperties;
24 import de.smartics.properties.api.config.domain.UnknownPropertyException;
25 import de.smartics.properties.api.config.domain.ValidatedProperty;
26 import de.smartics.properties.api.config.domain.key.ConfigurationKey;
27 import de.smartics.properties.api.core.app.PropertyRootException;
28 import de.smartics.properties.api.core.domain.PropertiesContext;
29 import de.smartics.properties.api.core.domain.PropertyContext;
30 import de.smartics.properties.api.core.domain.PropertyDescriptor;
31 import de.smartics.properties.api.core.domain.PropertyKey;
32 import de.smartics.properties.api.core.domain.PropertyValidationException;
33 import de.smartics.properties.api.core.domain.PropertyValueConversionException;
34 import de.smartics.properties.api.core.security.SecurityException;
35
36
37
38
39 public class TestSerializableConfigurationProperties implements
40 SerializableConfigurationProperties
41 {
42
43
44
45
46 private static final long serialVersionUID = 1L;
47
48
49
50
51 private Object param1;
52
53
54
55
56
57
58 public TestSerializableConfigurationProperties(final String param1)
59 {
60 this.param1 = param1;
61 }
62
63 @Override
64 public boolean isInAdminMode()
65 {
66 return false;
67 }
68
69 @Override
70 public final ConfigurationKey<?> getKey()
71 {
72 param1 = param1 + "a";
73 return null;
74 }
75
76 @Override
77 public final PropertiesContext getContext(final Class<?> declaringType)
78 throws NullPointerException
79 {
80 return null;
81 }
82
83 @Override
84 public final PropertyContext getContext(final PropertyDescriptor descriptor)
85 throws NullPointerException
86 {
87 return null;
88 }
89
90 @Override
91 public final <T> T getProperties(final Class<T> propertiesInterface)
92 {
93 return null;
94 }
95
96 @Override
97 public final Object getPropertyValue(final PropertyDescriptor descriptor)
98 throws NullPointerException, PropertyValidationException
99 {
100 return null;
101 }
102
103 @Override
104 public final Object getPropertyValue(final String key)
105 throws IllegalArgumentException, UnknownPropertyException,
106 PropertyValidationException
107 {
108 return null;
109 }
110
111 @Override
112 public final Object getPropertyValue(final PropertyKey key)
113 throws IllegalArgumentException, UnknownPropertyException,
114 PropertyValidationException
115 {
116 return null;
117 }
118
119 @Override
120 public final Object getPropertyValue(final PropertyDescriptor descriptor,
121 final Object defaultValue) throws NullPointerException,
122 PropertyValueConversionException, PropertyValidationException,
123 UnknownPropertyException
124 {
125 return null;
126 }
127
128 @Override
129 public final Object getPropertyValue(final String key,
130 final Object defaultValue) throws IllegalArgumentException,
131 UnknownPropertyException, PropertyValidationException
132 {
133 return null;
134 }
135
136 @Override
137 public Object getPropertyAsType(final PropertyDescriptor descriptor)
138 throws IllegalArgumentException, UnknownPropertyException,
139 PropertyValueConversionException, SecurityException, PropertyRootException
140 {
141 return null;
142 }
143
144 @Override
145 public final ValidatedProperty getValidatedProperty(
146 final PropertyDescriptor descriptor, final Object defaultValue)
147 throws IllegalArgumentException, UnknownPropertyException,
148 PropertyValidationException
149 {
150 return null;
151 }
152
153 @Override
154 public final ValidatedProperty getValidatedProperty(final PropertyKey key,
155 final Object defaultValue) throws IllegalArgumentException,
156 UnknownPropertyException, PropertyValidationException
157 {
158 return null;
159 }
160
161 @Override
162 public final ValidatedProperty getValidatedProperty(final String key,
163 final Object defaultValue) throws IllegalArgumentException,
164 UnknownPropertyException, PropertyValidationException
165 {
166 return null;
167 }
168
169 @Override
170 public final String getPropertyValueAsString(
171 final PropertyDescriptor descriptor) throws NullPointerException,
172 PropertyValidationException
173 {
174 return null;
175 }
176
177 @Override
178 public final String getPropertyValueAsString(final String key)
179 throws IllegalArgumentException, UnknownPropertyException,
180 PropertyValidationException
181 {
182 return null;
183 }
184
185 @Override
186 public final String getPropertyValueAsString(
187 final PropertyDescriptor descriptor, final Object defaultValue)
188 throws NullPointerException, PropertyValidationException
189 {
190 return null;
191 }
192
193 @Override
194 public final String getPropertyValueAsString(final String key,
195 final Object defaultValue) throws IllegalArgumentException,
196 UnknownPropertyException, PropertyValidationException
197 {
198 return null;
199 }
200
201 @Override
202 public void validate() throws ConfigurationValidationException
203 {
204 }
205
206 @Override
207 public final void validate(final Class<?>... groups)
208 throws ConfigurationValidationException
209 {
210 }
211
212 @Override
213 public void validate(final boolean lenient, final Class<?>... groups)
214 throws ConfigurationValidationException
215 {
216 }
217
218 @Override
219 public void validate(final PropertyDescriptor descriptor,
220 final Class<?>... ifInOneOfTheseGroups)
221 throws ConfigurationValidationException
222 {
223 }
224
225 @Override
226 public void validate(final PropertyDescriptor descriptor, final String value,
227 final Class<?>... ifInOneOfTheseGroups)
228 throws ConfigurationValidationException
229 {
230 }
231
232 @Override
233 public void addPropertyChangeListener(final PropertyKey name,
234 final PropertyChangeListener listener) throws NullPointerException
235 {
236 }
237
238 @Override
239 public void removePropertyChangeListener(final PropertyKey name,
240 final PropertyChangeListener listener) throws NullPointerException
241 {
242 }
243
244 @Override
245 public void addPropertyChangeListener(final PropertyChangeListener listener)
246 throws NullPointerException
247 {
248 }
249
250 @Override
251 public void removePropertyChangeListener(final PropertyChangeListener listener)
252 throws NullPointerException
253 {
254 }
255
256 @Override
257 public final SerializableConfigurationProperties toSerializable()
258 {
259 return null;
260 }
261
262 @Override
263 public DescribedProperty getProperty(final String key)
264 throws IllegalArgumentException, UnknownPropertyException
265 {
266 return null;
267 }
268
269 @Override
270 public DescribedProperty getProperty(final String key, final Object defaultValue)
271 throws IllegalArgumentException, UnknownPropertyException
272 {
273 return null;
274 }
275
276 @Override
277 public DescribedProperty getProperty(final PropertyKey key)
278 throws IllegalArgumentException, UnknownPropertyException
279 {
280 return null;
281 }
282
283 @Override
284 public DescribedProperty getProperty(final PropertyDescriptor descriptor)
285 throws IllegalArgumentException, UnknownPropertyException
286 {
287 return null;
288 }
289
290 @Override
291 public DescribedProperty getProperty(final PropertyDescriptor descriptor,
292 final Object defaultValue) throws IllegalArgumentException,
293 UnknownPropertyException
294 {
295 return null;
296 }
297
298 @Override
299 public ConfigurationProperties toRepresentative()
300 {
301 return this;
302 }
303 }