org.geomajas.sld.OverlapBehaviorInfo Maven / Gradle / Ivy
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2013 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:...
*
*
* <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>
*
*
* @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;
}
}
/** {@inheritDoc} */
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "OverlapBehaviorInfo(overlapBehavior=" + this.getOverlapBehavior() + ")";
}
/** {@inheritDoc} */
@java.lang.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;
}
/** {@inheritDoc} */
@java.lang.SuppressWarnings("all")
public boolean canEqual(final java.lang.Object other) {
return other instanceof OverlapBehaviorInfo;
}
/** {@inheritDoc} */
@java.lang.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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy