-
Notifications
You must be signed in to change notification settings - Fork 188
/
FilterClauseType.java
172 lines (156 loc) · 5.78 KB
/
FilterClauseType.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.prism.xml.ns._public.query_3;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import com.evolveum.midpoint.prism.PrismConstants;
import com.evolveum.midpoint.util.xml.DomAwareEqualsStrategy;
import com.evolveum.midpoint.util.xml.DomAwareHashCodeStrategy;
/**
* <p>Java class for FilterType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="FilterType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="matching" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FilterType", propOrder = {
"matching"
})
@XmlSeeAlso({
PropertyNoValueFilterType.class,
PropertyComplexValueFilterType.class,
PropertySimpleValueFilterType.class,
UriFilterType.class,
LogicalOperatorFilterType.class
})
public class FilterClauseType implements Serializable, Cloneable, Equals, HashCode {
private final static long serialVersionUID = 201105211233L;
protected String matching;
public final static QName COMPLEX_TYPE = new QName(PrismConstants.NS_QUERY, "FilterType");
public final static QName F_MATCHING = new QName(PrismConstants.NS_QUERY, "matching");
/**
* Creates a new {@code FilterType} instance.
*/
public FilterClauseType() {
// CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000
super();
}
/**
* Creates a new {@code FilterType} instance by deeply copying a given {@code FilterType} instance.
*
* @param o The instance to copy.
* @throws NullPointerException if {@code o} is {@code null}.
*/
public FilterClauseType(final FilterClauseType o) {
// CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000
super();
if (o == null) {
throw new NullPointerException("Cannot create a copy of 'FilterType' from 'null'.");
}
// CBuiltinLeafInfo: java.lang.String
this.matching = ((o.matching == null) ? null : o.getMatching());
}
/**
* Gets the value of the matching property.
*
* @return possible object is
* {@link String }
*/
public String getMatching() {
return matching;
}
/**
* Sets the value of the matching property.
*
* @param value allowed object is
* {@link String }
*/
public void setMatching(String value) {
this.matching = value;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
String theMatching;
theMatching = this.getMatching();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "matching", theMatching), currentHashCode, theMatching);
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof FilterClauseType)) {
return false;
}
if (this == object) {
return true;
}
final FilterClauseType that = ((FilterClauseType) object);
String lhsMatching;
lhsMatching = this.getMatching();
String rhsMatching;
rhsMatching = that.getMatching();
if (!strategy.equals(LocatorUtils.property(thisLocator, "matching", lhsMatching), LocatorUtils.property(thatLocator, "matching", rhsMatching), lhsMatching, rhsMatching)) {
return false;
}
return true;
}
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass")
public boolean equals(Object object) {
final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
/**
* Creates and returns a deep copy of this object.
*
* @return A deep copy of this object.
*/
@Override
public FilterClauseType clone() {
try {
// CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000
final FilterClauseType clone = ((FilterClauseType) super.clone());
// CBuiltinLeafInfo: java.lang.String
clone.matching = ((this.matching == null) ? null : this.getMatching());
return clone;
} catch (CloneNotSupportedException e) {
// Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
throw new AssertionError(e);
}
}
}