/
OverlapBehaviorInfo.java
143 lines (126 loc) · 3.64 KB
/
OverlapBehaviorInfo.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
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2015 Geosparc nv, http://www.geosparc.com/, Belgium.
*
* The program is available in open source according to the Apache
* License, Version 2.0. All contributions in this program are covered
* by the Geomajas Contributors License Agreement. For full licensing
* details, see LICENSE.txt in the project root.
*/
package org.geomajas.sld;
import java.io.Serializable;
import org.geomajas.annotation.Api;
/**
*
"OverlapBehavior" tells a system how to behave when multiple raster images in a layer overlap each other, for example
* with satellite-image scenes.
*
*
* Schema fragment(s) for this class:...
*
* <pre>
* <xs:element
* xmlns:ns="http://www.opengis.net/sld"
* xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OverlapBehavior">
* <xs:complexType>
* <xs:choice>
* <xs:element ref="ns:LATEST_ON_TOP"/>
* <xs:element ref="ns:EARLIEST_ON_TOP"/>
* <xs:element ref="ns:AVERAGE"/>
* <xs:element ref="ns:RANDOM"/>
* </xs:choice>
* </xs:complexType>
* </xs:element>
* </pre>
*
* @author Jan De Moerloose
* @since 1.0.0
*/
@Api(allMethods = true)
public class OverlapBehaviorInfo implements Serializable {
private static final long serialVersionUID = 100;
private OverlapBehaviorInfoInner overlapBehavior;
/**
* Get the 'actuate' attribute value.
*
* @return value
*/
public OverlapBehaviorInfoInner getOverlapBehavior() {
return overlapBehavior;
}
/**
* Set the 'actuate' attribute value.
*
* @param actuate
*/
public void setOverlapBehavior(OverlapBehaviorInfoInner overlapBehavior) {
this.overlapBehavior = overlapBehavior;
}
/**
* Inner class for overlap enumeration.
*
* @author Jan De Moerloose
*
*/
public static enum OverlapBehaviorInfoInner implements Serializable {
LATEST_ON_TOP("LATEST_ON_TOP"), EARLIEST_ON_TOP("EARLIEST_ON_TOP"), AVERAGE("AVERAGE"), RANDOM("RANDOM");
private static final long serialVersionUID = 100;
private final String value;
private OverlapBehaviorInfoInner(String value) {
this.value = value;
}
public String xmlValue() {
return value;
}
public static OverlapBehaviorInfoInner convert(String value) {
for (OverlapBehaviorInfoInner inst : values()) {
if (inst.xmlValue().equals(value)) {
return inst;
}
}
return null;
}
}
@Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "OverlapBehaviorInfo(overlapBehavior=" + this.getOverlapBehavior() + ")";
}
@Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) {
return true;
}
if (!(o instanceof OverlapBehaviorInfo)) {
return false;
}
final OverlapBehaviorInfo other = (OverlapBehaviorInfo) o;
if (!other.canEqual((java.lang.Object) this)) {
return false;
}
if (this.getOverlapBehavior() == null ? other.getOverlapBehavior() != null : !this.getOverlapBehavior().equals(
(java.lang.Object) other.getOverlapBehavior())) {
return false;
}
return true;
}
/**
* Is there a chance that the object are equal? Verifies that the other object has a comparable type.
*
* @param other other object
* @return true when other is an instance of this type
*/
public boolean canEqual(final java.lang.Object other) {
return other instanceof OverlapBehaviorInfo;
}
@Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int prime = 31;
int result = 1;
result = result * prime + (this.getOverlapBehavior() == null ? 0 : this.getOverlapBehavior().hashCode());
return result;
}
}