|
1 | 1 | /*
|
2 |
| - * Copyright 2008-2014 the original author or authors. |
| 2 | + * Copyright 2008-2017 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
34 | 34 | *
|
35 | 35 | * @author Oliver Gierke
|
36 | 36 | * @author Martin Baumgartner
|
37 |
| - * @author Michael Cramer |
38 | 37 | */
|
39 | 38 | public class Part {
|
40 | 39 |
|
@@ -178,19 +177,20 @@ public String toString() {
|
178 | 177 | *
|
179 | 178 | * @author Oliver Gierke
|
180 | 179 | * @author Thomas Darimont
|
| 180 | + * @author Michael Cramer |
181 | 181 | */
|
182 | 182 | public static enum Type {
|
183 | 183 |
|
184 | 184 | BETWEEN(2, "IsBetween", "Between"), IS_NOT_NULL(0, "IsNotNull", "NotNull"), IS_NULL(0, "IsNull", "Null"), LESS_THAN(
|
185 | 185 | "IsLessThan", "LessThan"), LESS_THAN_EQUAL("IsLessThanEqual", "LessThanEqual"), GREATER_THAN("IsGreaterThan",
|
186 | 186 | "GreaterThan"), GREATER_THAN_EQUAL("IsGreaterThanEqual", "GreaterThanEqual"), BEFORE("IsBefore", "Before"), AFTER(
|
187 | 187 | "IsAfter", "After"), NOT_LIKE("IsNotLike", "NotLike"), LIKE("IsLike", "Like"), STARTING_WITH("IsStartingWith",
|
188 |
| - "StartingWith", "StartsWith"), ENDING_WITH("IsEndingWith", "EndingWith", "EndsWith"), NOT_CONTAINING( |
189 |
| - "IsNotContaining", "NotContaining", "NotContains"), CONTAINING("IsContaining", "Containing", "Contains"), NOT_IN( |
190 |
| - "IsNotIn", "NotIn"), IN("IsIn", "In"), NEAR("IsNear", "Near"), WITHIN("IsWithin", "Within"), REGEX( |
191 |
| - "MatchesRegex", "Matches", "Regex"), EXISTS(0, "Exists"), TRUE(0, "IsTrue", "True"), FALSE(0, "IsFalse", |
192 |
| - "False"), NEGATING_SIMPLE_PROPERTY("IsNot", "Not"), SIMPLE_PROPERTY("Is", "Equals"), IS_NOT_EMPTY(0, "IsNotEmpty", |
193 |
| - "NotEmpty"), IS_EMPTY(0, "IsEmpty", "Empty"); |
| 188 | + "StartingWith", "StartsWith"), ENDING_WITH("IsEndingWith", "EndingWith", "EndsWith"), IS_NOT_EMPTY(0, "IsNotEmpty", |
| 189 | + "NotEmpty"), IS_EMPTY(0, "IsEmpty", "Empty"), NOT_CONTAINING("IsNotContaining", "NotContaining", "NotContains"), |
| 190 | + CONTAINING("IsContaining", "Containing", "Contains"), NOT_IN("IsNotIn", "NotIn"), IN("IsIn", "In"), NEAR("IsNear", |
| 191 | + "Near"), WITHIN("IsWithin", "Within"), REGEX("MatchesRegex", "Matches", "Regex"), EXISTS(0, "Exists"), TRUE(0, |
| 192 | + "IsTrue", "True"), FALSE(0, "IsFalse", "False"), NEGATING_SIMPLE_PROPERTY("IsNot", "Not"), SIMPLE_PROPERTY("Is", |
| 193 | + "Equals"); |
194 | 194 |
|
195 | 195 | // Need to list them again explicitly as the order is important
|
196 | 196 | // (esp. for IS_NULL, IS_NOT_NULL)
|
|
0 commit comments