|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| package org.apache.tapestry; |
|
16 |
| |
|
17 |
| import java.io.IOException; |
|
18 |
| import java.io.InputStream; |
|
19 |
| import java.text.MessageFormat; |
|
20 |
| import java.util.ArrayList; |
|
21 |
| import java.util.Collection; |
|
22 |
| import java.util.HashMap; |
|
23 |
| import java.util.Iterator; |
|
24 |
| import java.util.List; |
|
25 |
| import java.util.Locale; |
|
26 |
| import java.util.Map; |
|
27 |
| import java.util.Properties; |
|
28 |
| import java.util.ResourceBundle; |
|
29 |
| import java.util.Set; |
|
30 |
| |
|
31 |
| import org.apache.hivemind.ApplicationRuntimeException; |
|
32 |
| import org.apache.hivemind.HiveMind; |
|
33 |
| import org.apache.hivemind.Location; |
|
34 |
| import org.apache.hivemind.service.ClassFabUtils; |
|
35 |
| import org.apache.tapestry.event.ChangeObserver; |
|
36 |
| import org.apache.tapestry.event.ObservedChangeEvent; |
|
37 |
| import org.apache.tapestry.services.ServiceConstants; |
|
38 |
| import org.apache.tapestry.spec.IComponentSpecification; |
|
39 |
| import org.apache.tapestry.util.StringSplitter; |
|
40 |
| |
|
41 |
| |
|
42 |
| |
|
43 |
| |
|
44 |
| |
|
45 |
| |
|
46 |
| |
|
47 |
| |
|
48 |
| |
|
49 |
| public final class Tapestry |
|
50 |
| { |
|
51 |
| |
|
52 |
| |
|
53 |
| |
|
54 |
| |
|
55 |
| |
|
56 |
| |
|
57 |
| |
|
58 |
| |
|
59 |
| |
|
60 |
| public final static String ACTION_SERVICE = "action"; |
|
61 |
| |
|
62 |
| |
|
63 |
| |
|
64 |
| |
|
65 |
| |
|
66 |
| |
|
67 |
| |
|
68 |
| |
|
69 |
| |
|
70 |
| |
|
71 |
| |
|
72 |
| |
|
73 |
| public final static String DIRECT_SERVICE = "direct"; |
|
74 |
| |
|
75 |
| |
|
76 |
| |
|
77 |
| |
|
78 |
| |
|
79 |
| |
|
80 |
| |
|
81 |
| |
|
82 |
| |
|
83 |
| |
|
84 |
| |
|
85 |
| |
|
86 |
| public final static String EXTERNAL_SERVICE = "external"; |
|
87 |
| |
|
88 |
| |
|
89 |
| |
|
90 |
| |
|
91 |
| |
|
92 |
| |
|
93 |
| |
|
94 |
| |
|
95 |
| public final static String PAGE_SERVICE = "page"; |
|
96 |
| |
|
97 |
| |
|
98 |
| |
|
99 |
| |
|
100 |
| |
|
101 |
| |
|
102 |
| public final static String HOME_SERVICE = "home"; |
|
103 |
| |
|
104 |
| |
|
105 |
| |
|
106 |
| |
|
107 |
| |
|
108 |
| |
|
109 |
| public static final String RESTART_SERVICE = "restart"; |
|
110 |
| |
|
111 |
| |
|
112 |
| |
|
113 |
| |
|
114 |
| |
|
115 |
| public static final String ASSET_SERVICE = "asset"; |
|
116 |
| |
|
117 |
| |
|
118 |
| |
|
119 |
| |
|
120 |
| |
|
121 |
| |
|
122 |
| |
|
123 |
| |
|
124 |
| |
|
125 |
| |
|
126 |
| |
|
127 |
| public static final String RESET_SERVICE = "reset"; |
|
128 |
| |
|
129 |
| |
|
130 |
| |
|
131 |
| |
|
132 |
| |
|
133 |
| |
|
134 |
| |
|
135 |
| |
|
136 |
| |
|
137 |
| public static final String SERVICE_QUERY_PARAMETER_NAME = ServiceConstants.SERVICE; |
|
138 |
| |
|
139 |
| |
|
140 |
| |
|
141 |
| |
|
142 |
| |
|
143 |
| |
|
144 |
| |
|
145 |
| |
|
146 |
| |
|
147 |
| |
|
148 |
| |
|
149 |
| |
|
150 |
| |
|
151 |
| public static final String PARAMETERS_QUERY_PARAMETER_NAME = ServiceConstants.PARAMETER; |
|
152 |
| |
|
153 |
| |
|
154 |
| |
|
155 |
| |
|
156 |
| |
|
157 |
| |
|
158 |
| |
|
159 |
| |
|
160 |
| |
|
161 |
| |
|
162 |
| public static final String TEMPLATE_EXTENSION_PROPERTY = "org.apache.tapestry.template-extension"; |
|
163 |
| |
|
164 |
| |
|
165 |
| |
|
166 |
| |
|
167 |
| |
|
168 |
| |
|
169 |
| |
|
170 |
| public static final String LINK_COMPONENT_ATTRIBUTE_NAME = "org.apache.tapestry.active-link-component"; |
|
171 |
| |
|
172 |
| |
|
173 |
| |
|
174 |
| |
|
175 |
| |
|
176 |
| |
|
177 |
| |
|
178 |
| |
|
179 |
| public static final String PARAMETER_PROPERTY_NAME_SUFFIX = "Binding"; |
|
180 |
| |
|
181 |
| |
|
182 |
| |
|
183 |
| |
|
184 |
| |
|
185 |
| |
|
186 |
| |
|
187 |
| |
|
188 |
| public static final String REQUEST_DECODER_EXTENSION_NAME = "org.apache.tapestry.request-decoder"; |
|
189 |
| |
|
190 |
| |
|
191 |
| |
|
192 |
| |
|
193 |
| |
|
194 |
| |
|
195 |
| |
|
196 |
| |
|
197 |
| |
|
198 |
| |
|
199 |
| public static final String MULTIPART_DECODER_EXTENSION_NAME = "org.apache.tapestry.multipart-decoder"; |
|
200 |
| |
|
201 |
| |
|
202 |
| |
|
203 |
| |
|
204 |
| |
|
205 |
| |
|
206 |
| |
|
207 |
| |
|
208 |
| public static final String ABSTRACTPAGE_VALIDATE_METHOD_ID = "AbstractPage.validate()"; |
|
209 |
| |
|
210 |
| |
|
211 |
| |
|
212 |
| |
|
213 |
| |
|
214 |
| |
|
215 |
| |
|
216 |
| |
|
217 |
| public static final String ABSTRACTPAGE_DETACH_METHOD_ID = "AbstractPage.detach()"; |
|
218 |
| |
|
219 |
| |
|
220 |
| |
|
221 |
| |
|
222 |
| |
|
223 |
| |
|
224 |
| |
|
225 |
| |
|
226 |
| |
|
227 |
| public static final String SIMPLE_PROPERTY_NAME_PATTERN = "^_?[a-zA-Z]\\w*$"; |
|
228 |
| |
|
229 |
| |
|
230 |
| |
|
231 |
| |
|
232 |
| |
|
233 |
| |
|
234 |
| |
|
235 |
| |
|
236 |
| |
|
237 |
| public static final String MONITOR_FACTORY_EXTENSION_NAME = "org.apache.tapestry.monitor-factory"; |
|
238 |
| |
|
239 |
| |
|
240 |
| |
|
241 |
| |
|
242 |
| |
|
243 |
| public static final String OGNL_TYPE_CONVERTER = "org.apache.tapestry.ognl-type-converter"; |
|
244 |
| |
|
245 |
| |
|
246 |
| |
|
247 |
| |
|
248 |
| |
|
249 |
0
| private Tapestry()
|
|
250 |
| { |
|
251 |
| } |
|
252 |
| |
|
253 |
| |
|
254 |
| |
|
255 |
| |
|
256 |
| |
|
257 |
| public static final String VERSION = readVersion(); |
|
258 |
| |
|
259 |
| |
|
260 |
| |
|
261 |
| |
|
262 |
| |
|
263 |
| |
|
264 |
| |
|
265 |
| private static ResourceBundle _strings; |
|
266 |
| |
|
267 |
| |
|
268 |
| |
|
269 |
| |
|
270 |
| |
|
271 |
| |
|
272 |
| private static final Map _localeMap = new HashMap(); |
|
273 |
| |
|
274 |
| static |
|
275 |
| { |
|
276 |
3
| Locale[] locales = Locale.getAvailableLocales();
|
|
277 |
3
| for (int i = 0; i < locales.length; i++)
|
|
278 |
| { |
|
279 |
396
| _localeMap.put(locales[i].toString(), locales[i]);
|
|
280 |
| } |
|
281 |
| } |
|
282 |
| |
|
283 |
| |
|
284 |
| |
|
285 |
| |
|
286 |
| |
|
287 |
| private static final ThreadLocal _invokedMethodIds = new ThreadLocal(); |
|
288 |
| |
|
289 |
| |
|
290 |
| |
|
291 |
| |
|
292 |
| |
|
293 |
| |
|
294 |
| |
|
295 |
0
| public static void copyInformalBindings(IComponent source, IComponent destination)
|
|
296 |
| { |
|
297 |
0
| Collection names = source.getBindingNames();
|
|
298 |
| |
|
299 |
0
| if (names == null)
|
|
300 |
0
| return;
|
|
301 |
| |
|
302 |
0
| IComponentSpecification specification = source.getSpecification();
|
|
303 |
0
| Iterator i = names.iterator();
|
|
304 |
| |
|
305 |
0
| while (i.hasNext())
|
|
306 |
| { |
|
307 |
0
| String name = (String) i.next();
|
|
308 |
| |
|
309 |
| |
|
310 |
| |
|
311 |
0
| if (specification.getParameter(name) == null)
|
|
312 |
| { |
|
313 |
0
| IBinding binding = source.getBinding(name);
|
|
314 |
| |
|
315 |
0
| destination.setBinding(name, binding);
|
|
316 |
| } |
|
317 |
| } |
|
318 |
| } |
|
319 |
| |
|
320 |
| |
|
321 |
| |
|
322 |
| |
|
323 |
| |
|
324 |
| |
|
325 |
| |
|
326 |
0
| public static Locale getLocale(String s)
|
|
327 |
| { |
|
328 |
0
| Locale result = null;
|
|
329 |
| |
|
330 |
0
| synchronized (_localeMap)
|
|
331 |
| { |
|
332 |
0
| result = (Locale) _localeMap.get(s);
|
|
333 |
| } |
|
334 |
| |
|
335 |
0
| if (result == null)
|
|
336 |
| { |
|
337 |
0
| StringSplitter splitter = new StringSplitter('_');
|
|
338 |
0
| String[] terms = splitter.splitToArray(s);
|
|
339 |
| |
|
340 |
0
| switch (terms.length)
|
|
341 |
| { |
|
342 |
0
| case 1:
|
|
343 |
| |
|
344 |
0
| result = new Locale(terms[0], "");
|
|
345 |
0
| break;
|
|
346 |
| |
|
347 |
0
| case 2:
|
|
348 |
| |
|
349 |
0
| result = new Locale(terms[0], terms[1]);
|
|
350 |
0
| break;
|
|
351 |
| |
|
352 |
0
| case 3:
|
|
353 |
| |
|
354 |
0
| result = new Locale(terms[0], terms[1], terms[2]);
|
|
355 |
0
| break;
|
|
356 |
| |
|
357 |
0
| default:
|
|
358 |
| |
|
359 |
0
| throw new IllegalArgumentException("Unable to convert '" + s + "' to a Locale.");
|
|
360 |
| } |
|
361 |
| |
|
362 |
0
| synchronized (_localeMap)
|
|
363 |
| { |
|
364 |
0
| _localeMap.put(s, result);
|
|
365 |
| } |
|
366 |
| |
|
367 |
| } |
|
368 |
| |
|
369 |
0
| return result;
|
|
370 |
| |
|
371 |
| } |
|
372 |
| |
|
373 |
| |
|
374 |
| |
|
375 |
| |
|
376 |
| |
|
377 |
| |
|
378 |
| |
|
379 |
453
| public static void close(InputStream stream)
|
|
380 |
| { |
|
381 |
453
| if (stream != null)
|
|
382 |
| { |
|
383 |
453
| try
|
|
384 |
| { |
|
385 |
453
| stream.close();
|
|
386 |
| } |
|
387 |
| catch (IOException ex) |
|
388 |
| { |
|
389 |
| |
|
390 |
| } |
|
391 |
| } |
|
392 |
| } |
|
393 |
| |
|
394 |
| |
|
395 |
| |
|
396 |
| |
|
397 |
| |
|
398 |
| |
|
399 |
| |
|
400 |
| |
|
401 |
81
| public static String format(String key, Object[] args)
|
|
402 |
| { |
|
403 |
81
| if (_strings == null)
|
|
404 |
3
| _strings = ResourceBundle.getBundle("org.apache.tapestry.TapestryStrings");
|
|
405 |
| |
|
406 |
81
| String pattern = _strings.getString(key);
|
|
407 |
| |
|
408 |
81
| if (args == null)
|
|
409 |
33
| return pattern;
|
|
410 |
| |
|
411 |
48
| return MessageFormat.format(pattern, args);
|
|
412 |
| } |
|
413 |
| |
|
414 |
| |
|
415 |
| |
|
416 |
| |
|
417 |
| |
|
418 |
| |
|
419 |
| |
|
420 |
33
| public static String getMessage(String key)
|
|
421 |
| { |
|
422 |
33
| return format(key, null);
|
|
423 |
| } |
|
424 |
| |
|
425 |
| |
|
426 |
| |
|
427 |
| |
|
428 |
| |
|
429 |
| |
|
430 |
| |
|
431 |
15
| public static String format(String key, Object arg)
|
|
432 |
| { |
|
433 |
15
| return format(key, new Object[]
|
|
434 |
| { arg }); |
|
435 |
| } |
|
436 |
| |
|
437 |
| |
|
438 |
| |
|
439 |
| |
|
440 |
| |
|
441 |
| |
|
442 |
| |
|
443 |
24
| public static String format(String key, Object arg1, Object arg2)
|
|
444 |
| { |
|
445 |
24
| return format(key, new Object[]
|
|
446 |
| { arg1, arg2 }); |
|
447 |
| } |
|
448 |
| |
|
449 |
| |
|
450 |
| |
|
451 |
| |
|
452 |
| |
|
453 |
| |
|
454 |
| |
|
455 |
9
| public static String format(String key, Object arg1, Object arg2, Object arg3)
|
|
456 |
| { |
|
457 |
9
| return format(key, new Object[]
|
|
458 |
| { arg1, arg2, arg3 }); |
|
459 |
| } |
|
460 |
| |
|
461 |
| private static final String UNKNOWN_VERSION = "Unknown"; |
|
462 |
| |
|
463 |
| |
|
464 |
| |
|
465 |
| |
|
466 |
| |
|
467 |
3
| private static final String readVersion()
|
|
468 |
| { |
|
469 |
3
| Properties props = new Properties();
|
|
470 |
| |
|
471 |
3
| try
|
|
472 |
| { |
|
473 |
3
| InputStream in = Tapestry.class.getResourceAsStream("version.properties");
|
|
474 |
| |
|
475 |
3
| if (in == null)
|
|
476 |
0
| return UNKNOWN_VERSION;
|
|
477 |
| |
|
478 |
3
| props.load(in);
|
|
479 |
| |
|
480 |
3
| in.close();
|
|
481 |
| |
|
482 |
3
| return props.getProperty("project.version", UNKNOWN_VERSION);
|
|
483 |
| } |
|
484 |
| catch (IOException ex) |
|
485 |
| { |
|
486 |
0
| return UNKNOWN_VERSION;
|
|
487 |
| } |
|
488 |
| |
|
489 |
| } |
|
490 |
| |
|
491 |
| |
|
492 |
| |
|
493 |
| |
|
494 |
| |
|
495 |
| |
|
496 |
| |
|
497 |
6171
| public static int size(Collection c)
|
|
498 |
| { |
|
499 |
6171
| if (c == null)
|
|
500 |
3
| return 0;
|
|
501 |
| |
|
502 |
6168
| return c.size();
|
|
503 |
| } |
|
504 |
| |
|
505 |
| |
|
506 |
| |
|
507 |
| |
|
508 |
| |
|
509 |
| |
|
510 |
| |
|
511 |
858
| public static int size(Object[] array)
|
|
512 |
| { |
|
513 |
858
| if (array == null)
|
|
514 |
168
| return 0;
|
|
515 |
| |
|
516 |
690
| return array.length;
|
|
517 |
| } |
|
518 |
| |
|
519 |
| |
|
520 |
| |
|
521 |
| |
|
522 |
| |
|
523 |
| |
|
524 |
| |
|
525 |
0
| public static boolean isEmpty(Map map)
|
|
526 |
| { |
|
527 |
0
| return map == null || map.isEmpty();
|
|
528 |
| } |
|
529 |
| |
|
530 |
| |
|
531 |
| |
|
532 |
| |
|
533 |
| |
|
534 |
| |
|
535 |
| |
|
536 |
213
| public static boolean isEmpty(Collection c)
|
|
537 |
| { |
|
538 |
213
| return c == null || c.isEmpty();
|
|
539 |
| } |
|
540 |
| |
|
541 |
| |
|
542 |
| |
|
543 |
| |
|
544 |
| |
|
545 |
| |
|
546 |
| |
|
547 |
| |
|
548 |
| |
|
549 |
| |
|
550 |
| |
|
551 |
| |
|
552 |
| |
|
553 |
0
| public static Object[] convertMapToArray(Map map)
|
|
554 |
| { |
|
555 |
0
| if (isEmpty(map))
|
|
556 |
0
| return null;
|
|
557 |
| |
|
558 |
0
| Set entries = map.entrySet();
|
|
559 |
| |
|
560 |
0
| Object[] result = new Object[2 * entries.size()];
|
|
561 |
0
| int x = 0;
|
|
562 |
| |
|
563 |
0
| Iterator i = entries.iterator();
|
|
564 |
0
| while (i.hasNext())
|
|
565 |
| { |
|
566 |
0
| Map.Entry entry = (Map.Entry) i.next();
|
|
567 |
| |
|
568 |
0
| result[x++] = entry.getKey();
|
|
569 |
0
| result[x++] = entry.getValue();
|
|
570 |
| } |
|
571 |
| |
|
572 |
0
| return result;
|
|
573 |
| } |
|
574 |
| |
|
575 |
| |
|
576 |
| |
|
577 |
| |
|
578 |
| |
|
579 |
| |
|
580 |
| |
|
581 |
| |
|
582 |
| |
|
583 |
438
| public static Map convertArrayToMap(Object[] array)
|
|
584 |
| { |
|
585 |
438
| if (array == null || array.length == 0)
|
|
586 |
93
| return null;
|
|
587 |
| |
|
588 |
345
| if (array.length % 2 != 0)
|
|
589 |
0
| throw new IllegalArgumentException(getMessage("Tapestry.even-sized-array"));
|
|
590 |
| |
|
591 |
345
| Map result = new HashMap();
|
|
592 |
| |
|
593 |
345
| int x = 0;
|
|
594 |
345
| while (x < array.length)
|
|
595 |
| { |
|
596 |
888
| Object key = array[x++];
|
|
597 |
888
| Object value = array[x++];
|
|
598 |
| |
|
599 |
888
| result.put(key, value);
|
|
600 |
| } |
|
601 |
| |
|
602 |
345
| return result;
|
|
603 |
| } |
|
604 |
| |
|
605 |
| |
|
606 |
| |
|
607 |
| |
|
608 |
| |
|
609 |
| |
|
610 |
| |
|
611 |
| |
|
612 |
| |
|
613 |
18
| public static String getClassName(Class subject)
|
|
614 |
| { |
|
615 |
18
| return ClassFabUtils.getJavaClassName(subject);
|
|
616 |
| } |
|
617 |
| |
|
618 |
| |
|
619 |
| |
|
620 |
| |
|
621 |
| |
|
622 |
| |
|
623 |
| |
|
624 |
0
| public static BindingException createNullBindingException(IBinding binding)
|
|
625 |
| { |
|
626 |
0
| return new BindingException(getMessage("null-value-for-binding"), binding);
|
|
627 |
| } |
|
628 |
| |
|
629 |
| |
|
630 |
| |
|
631 |
0
| public static ApplicationRuntimeException createNoSuchComponentException(IComponent component,
|
|
632 |
| String id, Location location) |
|
633 |
| { |
|
634 |
0
| return new ApplicationRuntimeException(format("no-such-component", component
|
|
635 |
| .getExtendedId(), id), component, location, null); |
|
636 |
| } |
|
637 |
| |
|
638 |
| |
|
639 |
| |
|
640 |
9
| public static BindingException createRequiredParameterException(IComponent component,
|
|
641 |
| String parameterName) |
|
642 |
| { |
|
643 |
9
| return new BindingException(format("required-parameter", parameterName, component
|
|
644 |
| .getExtendedId()), component, null, component.getBinding(parameterName), null); |
|
645 |
| } |
|
646 |
| |
|
647 |
| |
|
648 |
| |
|
649 |
0
| public static ApplicationRuntimeException createRenderOnlyPropertyException(
|
|
650 |
| IComponent component, String propertyName) |
|
651 |
| { |
|
652 |
0
| return new ApplicationRuntimeException(format(
|
|
653 |
| "render-only-property", |
|
654 |
| propertyName, |
|
655 |
| component.getExtendedId()), component, null, null); |
|
656 |
| } |
|
657 |
| |
|
658 |
| |
|
659 |
| |
|
660 |
| |
|
661 |
| |
|
662 |
| |
|
663 |
| |
|
664 |
| |
|
665 |
1050
| public static void clearMethodInvocations()
|
|
666 |
| { |
|
667 |
1050
| _invokedMethodIds.set(null);
|
|
668 |
| } |
|
669 |
| |
|
670 |
| |
|
671 |
| |
|
672 |
| |
|
673 |
| |
|
674 |
| |
|
675 |
| |
|
676 |
| |
|
677 |
| |
|
678 |
1068
| public static void addMethodInvocation(Object methodId)
|
|
679 |
| { |
|
680 |
1068
| List methodIds = (List) _invokedMethodIds.get();
|
|
681 |
| |
|
682 |
1068
| if (methodIds == null)
|
|
683 |
| { |
|
684 |
1050
| methodIds = new ArrayList();
|
|
685 |
1050
| _invokedMethodIds.set(methodIds);
|
|
686 |
| } |
|
687 |
| |
|
688 |
1068
| methodIds.add(methodId);
|
|
689 |
| } |
|
690 |
| |
|
691 |
| |
|
692 |
| |
|
693 |
| |
|
694 |
| |
|
695 |
| |
|
696 |
| |
|
697 |
| |
|
698 |
| |
|
699 |
| |
|
700 |
| |
|
701 |
| |
|
702 |
| |
|
703 |
| |
|
704 |
| |
|
705 |
1038
| public static void checkMethodInvocation(Object methodId, String methodName, Object object)
|
|
706 |
| { |
|
707 |
1038
| List methodIds = (List) _invokedMethodIds.get();
|
|
708 |
| |
|
709 |
1038
| if (methodIds != null && methodIds.contains(methodId))
|
|
710 |
1035
| return;
|
|
711 |
| |
|
712 |
3
| throw new ApplicationRuntimeException(Tapestry.format(
|
|
713 |
| "Tapestry.missing-method-invocation", |
|
714 |
| object.getClass().getName(), |
|
715 |
| methodName)); |
|
716 |
| } |
|
717 |
| |
|
718 |
| |
|
719 |
| |
|
720 |
| |
|
721 |
| |
|
722 |
| |
|
723 |
| |
|
724 |
| |
|
725 |
| |
|
726 |
| |
|
727 |
| |
|
728 |
| |
|
729 |
93
| public static void fireObservedChange(IComponent component, String propertyName, Object newValue)
|
|
730 |
| { |
|
731 |
93
| ChangeObserver observer = component.getPage().getChangeObserver();
|
|
732 |
| |
|
733 |
93
| if (observer == null)
|
|
734 |
33
| return;
|
|
735 |
| |
|
736 |
60
| ObservedChangeEvent event = new ObservedChangeEvent(component, propertyName, newValue);
|
|
737 |
| |
|
738 |
60
| observer.observeChange(event);
|
|
739 |
| } |
|
740 |
| |
|
741 |
| |
|
742 |
| |
|
743 |
| |
|
744 |
| |
|
745 |
| |
|
746 |
| |
|
747 |
| |
|
748 |
| |
|
749 |
| |
|
750 |
| |
|
751 |
| |
|
752 |
0
| public static boolean isBlank(String input)
|
|
753 |
| { |
|
754 |
0
| return HiveMind.isBlank(input);
|
|
755 |
| } |
|
756 |
| |
|
757 |
| |
|
758 |
| |
|
759 |
| |
|
760 |
| |
|
761 |
| |
|
762 |
| |
|
763 |
| |
|
764 |
| |
|
765 |
0
| public static boolean isNonBlank(String input)
|
|
766 |
| { |
|
767 |
0
| return HiveMind.isNonBlank(input);
|
|
768 |
| } |
|
769 |
| } |