1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.api.criteria; |
17 | |
|
18 | |
import org.kuali.rice.core.api.CoreConstants; |
19 | |
import org.w3c.dom.Element; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlAttribute; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlElements; |
27 | |
import javax.xml.bind.annotation.XmlRootElement; |
28 | |
import javax.xml.bind.annotation.XmlType; |
29 | |
import java.util.Collection; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | 0 | @XmlRootElement(name = EqualIgnoreCasePredicate.Constants.ROOT_ELEMENT_NAME) |
39 | |
@XmlAccessorType(XmlAccessType.NONE) |
40 | |
@XmlType(name = EqualIgnoreCasePredicate.Constants.TYPE_NAME, |
41 | |
propOrder = {CriteriaSupportUtils.PropertyConstants.VALUE, CoreConstants.CommonElements.FUTURE_ELEMENTS}) |
42 | |
public final class EqualIgnoreCasePredicate extends AbstractPredicate implements SingleValuedPredicate { |
43 | |
|
44 | |
private static final long serialVersionUID = 7159459561133496549L; |
45 | |
|
46 | |
@XmlAttribute(name = CriteriaSupportUtils.PropertyConstants.PROPERTY_PATH) |
47 | |
private final String propertyPath; |
48 | |
|
49 | |
@XmlElements(value = { |
50 | |
@XmlElement(name = CriteriaStringValue.Constants.ROOT_ELEMENT_NAME, type = CriteriaStringValue.class, |
51 | |
required = true)}) |
52 | |
private final CriteriaStringValue value; |
53 | |
|
54 | 2 | @SuppressWarnings("unused") |
55 | |
@XmlAnyElement |
56 | |
private final Collection<Element> _futureElements = null; |
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
@SuppressWarnings("unused") |
62 | 0 | private EqualIgnoreCasePredicate() { |
63 | 0 | this.propertyPath = null; |
64 | 0 | this.value = null; |
65 | 0 | } |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | 2 | EqualIgnoreCasePredicate(String propertyPath, CriteriaStringValue value) { |
76 | 2 | this.propertyPath = propertyPath; |
77 | 2 | this.value = value; |
78 | 2 | } |
79 | |
|
80 | |
@Override |
81 | |
public String getPropertyPath() { |
82 | 0 | return propertyPath; |
83 | |
} |
84 | |
|
85 | |
@Override |
86 | |
public CriteriaStringValue getValue() { |
87 | 0 | return value; |
88 | |
} |
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | 0 | static class Constants { |
94 | |
final static String ROOT_ELEMENT_NAME = "equalIgnoreCase"; |
95 | |
final static String TYPE_NAME = "EqualIgnoreCaseType"; |
96 | |
} |
97 | |
|
98 | |
@Override |
99 | |
public String toString() { |
100 | 0 | return CriteriaSupportUtils.toString(this); |
101 | |
} |
102 | |
} |