1 package com.loribel.commons.abstraction;
2
3 /***
4 * Abstraction of a String interval.
5 */
6 public interface GB_StringSelector
7 extends
8 GB_Selector
9 {
10 /***
11 * Available types to use with this interval.
12 */
13 public static final class TYPE
14 {
15 public static final int NONE = 0;
16 public static final int CONTAINS = 1;
17 public static final int EQUALS = 2;
18 public static final int STARTS = 3;
19 public static final int ENDS = 4;
20 public static final int REGEX = 5;
21 public static final int WILDCARDS = 6;
22 public static final int NOT_CONTAINS = 7;
23 public static final int EMPTY = 8;
24 public static final int NOT_EMPTY = 9;
25 public static final int SUPERIOR = 10;
26 public static final int INFERIOR = 11;
27 public static final int INTERVAL = 12;
28 public static final int INCLUDE = 13;
29 public static final int EXCLUDE = 14;
30 }
31
32 boolean isIgnoreCase();
33
34 /***
35 * Returns the min value of the interval or the value used as constraint.
36 */
37 String getValue();
38
39 /***
40 * Returns the max value of interval if needed, otherwise returns null.
41 */
42 String getValue2();
43
44 /***
45 * Returns the values for type INCLUDE or EXCLUDE.
46 */
47 String[] getValues();
48
49 }