-
Notifications
You must be signed in to change notification settings - Fork 188
/
PolyStringNormalizerConfigurationType.java
186 lines (158 loc) · 5.66 KB
/
PolyStringNormalizerConfigurationType.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/*
* Copyright (c) 2018 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.types_3;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import com.evolveum.midpoint.util.DebugUtil;
import com.evolveum.midpoint.util.ShortDumpable;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PolyStringNormalizerConfigurationType", propOrder = {
"className",
"trim",
"nfkd",
"trimWhitespace",
"lowercase"
})
public class PolyStringNormalizerConfigurationType implements Serializable, Cloneable, ShortDumpable {
public static final QName COMPLEX_TYPE = new QName("http://prism.evolveum.com/xml/ns/public/types-3", "PolyStringNormalizerConfigurationType");
public static final QName F_CLASS_NAME = new QName("http://prism.evolveum.com/xml/ns/public/types-3", "className");
public static final QName F_TRIM = new QName("http://prism.evolveum.com/xml/ns/public/types-3", "trim");
public static final QName F_NFKD = new QName("http://prism.evolveum.com/xml/ns/public/types-3", "nfkd");
public static final QName F_TRIM_WHITESPACE = new QName("http://prism.evolveum.com/xml/ns/public/types-3", "trimWhitespace");
public static final QName F_LOWERCASE = new QName("http://prism.evolveum.com/xml/ns/public/types-3", "lowercase");
@XmlElement(required = false)
protected String className;
@XmlElement(required = false)
protected Boolean trim;
@XmlElement(required = false)
protected Boolean nfkd;
@XmlElement(required = false)
protected Boolean trimWhitespace;
@XmlElement(required = false)
protected Boolean lowercase;
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public Boolean isTrim() {
return trim;
}
public void setTrim(Boolean trim) {
this.trim = trim;
}
public Boolean isNfkd() {
return nfkd;
}
public void setNfkd(Boolean nfkd) {
this.nfkd = nfkd;
}
public Boolean isTrimWhitespace() {
return trimWhitespace;
}
public void setTrimWhitespace(Boolean trimWhitespace) {
this.trimWhitespace = trimWhitespace;
}
public Boolean isLowercase() {
return lowercase;
}
public void setLowercase(Boolean lowercase) {
this.lowercase = lowercase;
}
@Override
public PolyStringNormalizerConfigurationType clone() {
PolyStringNormalizerConfigurationType clone = new PolyStringNormalizerConfigurationType();
clone.setClassName(getClassName());
clone.setTrim(isTrim());
clone.setNfkd(isNfkd());
clone.setTrimWhitespace(isTrimWhitespace());
clone.setLowercase(isLowercase());
return clone;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((className == null) ? 0 : className.hashCode());
result = prime * result + ((lowercase == null) ? 0 : lowercase.hashCode());
result = prime * result + ((nfkd == null) ? 0 : nfkd.hashCode());
result = prime * result + ((trim == null) ? 0 : trim.hashCode());
result = prime * result + ((trimWhitespace == null) ? 0 : trimWhitespace.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
PolyStringNormalizerConfigurationType other = (PolyStringNormalizerConfigurationType) obj;
if (className == null) {
if (other.className != null) {
return false;
}
} else if (!className.equals(other.className)) {
return false;
}
if (lowercase == null) {
if (other.lowercase != null) {
return false;
}
} else if (!lowercase.equals(other.lowercase)) {
return false;
}
if (nfkd == null) {
if (other.nfkd != null) {
return false;
}
} else if (!nfkd.equals(other.nfkd)) {
return false;
}
if (trim == null) {
if (other.trim != null) {
return false;
}
} else if (!trim.equals(other.trim)) {
return false;
}
if (trimWhitespace == null) {
if (other.trimWhitespace != null) {
return false;
}
} else if (!trimWhitespace.equals(other.trimWhitespace)) {
return false;
}
return true;
}
@Override
public void shortDump(StringBuilder sb) {
DebugUtil.shortDumpAppendProperty(sb, "className", className);
DebugUtil.shortDumpAppendProperty(sb, "trim", trim);
DebugUtil.shortDumpAppendProperty(sb, "nfkd", nfkd);
DebugUtil.shortDumpAppendProperty(sb, "trimWhitespace", trimWhitespace);
DebugUtil.shortDumpAppendProperty(sb, "lowercase", lowercase);
DebugUtil.shortDumpRemoveLastComma(sb);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("PolyStringNormalizerConfigurationType(");
shortDump(sb);
sb.append(")");
return sb.toString();
}
}