Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.opengis.citygml.relief.v_2_0.TINReliefType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.26 at 04:41:00 PM AST
//
package net.opengis.citygml.relief.v_2_0;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
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.datatype.XMLGregorianCalendar;
import net.opengis.citygml.v_2_0.ExternalReferenceType;
import net.opengis.citygml.v_2_0.GeneralizationRelationType;
import net.opengis.citygml.v_2_0.RelativeToTerrainType;
import net.opengis.citygml.v_2_0.RelativeToWaterType;
import net.opengis.gml.v_3_1_1.PolygonPropertyType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBMergeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.MergeFrom2;
import org.jvnet.jaxb2_commons.lang.MergeStrategy2;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Type describing the TIN component of a relief feature. As subclass of _CityObject, a TINRelief inherits
* all attributes and relations, in particular an id, names, external references, and generalization relations.
*
*
* Java class for TINReliefType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TINReliefType">
* <complexContent>
* <extension base="{http://www.opengis.net/citygml/relief/2.0}AbstractReliefComponentType">
* <sequence>
* <element name="tin" type="{http://www.opengis.net/citygml/relief/2.0}tinPropertyType"/>
* <element ref="{http://www.opengis.net/citygml/relief/2.0}_GenericApplicationPropertyOfTinRelief" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TINReliefType", propOrder = {
"tin",
"genericApplicationPropertyOfTinRelief"
})
public class TINReliefType
extends AbstractReliefComponentType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(required = true)
protected TinPropertyType tin;
@XmlElement(name = "_GenericApplicationPropertyOfTinRelief")
protected List genericApplicationPropertyOfTinRelief;
/**
* Gets the value of the tin property.
*
* @return
* possible object is
* {@link TinPropertyType }
*
*/
public TinPropertyType getTin() {
return tin;
}
/**
* Sets the value of the tin property.
*
* @param value
* allowed object is
* {@link TinPropertyType }
*
*/
public void setTin(TinPropertyType value) {
this.tin = value;
}
public boolean isSetTin() {
return (this.tin!= null);
}
/**
* Gets the value of the genericApplicationPropertyOfTinRelief property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the genericApplicationPropertyOfTinRelief property.
*
*
* For example, to add a new item, do as follows:
*
* getGenericApplicationPropertyOfTinRelief().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List getGenericApplicationPropertyOfTinRelief() {
if (genericApplicationPropertyOfTinRelief == null) {
genericApplicationPropertyOfTinRelief = new ArrayList();
}
return this.genericApplicationPropertyOfTinRelief;
}
public boolean isSetGenericApplicationPropertyOfTinRelief() {
return ((this.genericApplicationPropertyOfTinRelief!= null)&&(!this.genericApplicationPropertyOfTinRelief.isEmpty()));
}
public void unsetGenericApplicationPropertyOfTinRelief() {
this.genericApplicationPropertyOfTinRelief = null;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
super.appendFields(locator, buffer, strategy);
{
TinPropertyType theTin;
theTin = this.getTin();
strategy.appendField(locator, this, "tin", buffer, theTin, this.isSetTin());
}
{
List theGenericApplicationPropertyOfTinRelief;
theGenericApplicationPropertyOfTinRelief = (this.isSetGenericApplicationPropertyOfTinRelief()?this.getGenericApplicationPropertyOfTinRelief():null);
strategy.appendField(locator, this, "genericApplicationPropertyOfTinRelief", buffer, theGenericApplicationPropertyOfTinRelief, this.isSetGenericApplicationPropertyOfTinRelief());
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final TINReliefType that = ((TINReliefType) object);
{
TinPropertyType lhsTin;
lhsTin = this.getTin();
TinPropertyType rhsTin;
rhsTin = that.getTin();
if (!strategy.equals(LocatorUtils.property(thisLocator, "tin", lhsTin), LocatorUtils.property(thatLocator, "tin", rhsTin), lhsTin, rhsTin, this.isSetTin(), that.isSetTin())) {
return false;
}
}
{
List lhsGenericApplicationPropertyOfTinRelief;
lhsGenericApplicationPropertyOfTinRelief = (this.isSetGenericApplicationPropertyOfTinRelief()?this.getGenericApplicationPropertyOfTinRelief():null);
List rhsGenericApplicationPropertyOfTinRelief;
rhsGenericApplicationPropertyOfTinRelief = (that.isSetGenericApplicationPropertyOfTinRelief()?that.getGenericApplicationPropertyOfTinRelief():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfTinRelief", lhsGenericApplicationPropertyOfTinRelief), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfTinRelief", rhsGenericApplicationPropertyOfTinRelief), lhsGenericApplicationPropertyOfTinRelief, rhsGenericApplicationPropertyOfTinRelief, this.isSetGenericApplicationPropertyOfTinRelief(), that.isSetGenericApplicationPropertyOfTinRelief())) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
TinPropertyType theTin;
theTin = this.getTin();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tin", theTin), currentHashCode, theTin, this.isSetTin());
}
{
List theGenericApplicationPropertyOfTinRelief;
theGenericApplicationPropertyOfTinRelief = (this.isSetGenericApplicationPropertyOfTinRelief()?this.getGenericApplicationPropertyOfTinRelief():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfTinRelief", theGenericApplicationPropertyOfTinRelief), currentHashCode, theGenericApplicationPropertyOfTinRelief, this.isSetGenericApplicationPropertyOfTinRelief());
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
super.copyTo(locator, draftCopy, strategy);
if (draftCopy instanceof TINReliefType) {
final TINReliefType copy = ((TINReliefType) draftCopy);
{
Boolean tinShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetTin());
if (tinShouldBeCopiedAndSet == Boolean.TRUE) {
TinPropertyType sourceTin;
sourceTin = this.getTin();
TinPropertyType copyTin = ((TinPropertyType) strategy.copy(LocatorUtils.property(locator, "tin", sourceTin), sourceTin, this.isSetTin()));
copy.setTin(copyTin);
} else {
if (tinShouldBeCopiedAndSet == Boolean.FALSE) {
copy.tin = null;
}
}
}
{
Boolean genericApplicationPropertyOfTinReliefShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfTinRelief());
if (genericApplicationPropertyOfTinReliefShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGenericApplicationPropertyOfTinRelief;
sourceGenericApplicationPropertyOfTinRelief = (this.isSetGenericApplicationPropertyOfTinRelief()?this.getGenericApplicationPropertyOfTinRelief():null);
@SuppressWarnings("unchecked")
List copyGenericApplicationPropertyOfTinRelief = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfTinRelief", sourceGenericApplicationPropertyOfTinRelief), sourceGenericApplicationPropertyOfTinRelief, this.isSetGenericApplicationPropertyOfTinRelief()));
copy.unsetGenericApplicationPropertyOfTinRelief();
if (copyGenericApplicationPropertyOfTinRelief!= null) {
List uniqueGenericApplicationPropertyOfTinReliefl = copy.getGenericApplicationPropertyOfTinRelief();
uniqueGenericApplicationPropertyOfTinReliefl.addAll(copyGenericApplicationPropertyOfTinRelief);
}
} else {
if (genericApplicationPropertyOfTinReliefShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetGenericApplicationPropertyOfTinRelief();
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new TINReliefType();
}
public void mergeFrom(Object left, Object right) {
final MergeStrategy2 strategy = JAXBMergeStrategy.INSTANCE;
mergeFrom(null, null, left, right, strategy);
}
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy2 strategy) {
super.mergeFrom(leftLocator, rightLocator, left, right, strategy);
if (right instanceof TINReliefType) {
final TINReliefType target = this;
final TINReliefType leftObject = ((TINReliefType) left);
final TINReliefType rightObject = ((TINReliefType) right);
{
Boolean tinShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetTin(), rightObject.isSetTin());
if (tinShouldBeMergedAndSet == Boolean.TRUE) {
TinPropertyType lhsTin;
lhsTin = leftObject.getTin();
TinPropertyType rhsTin;
rhsTin = rightObject.getTin();
TinPropertyType mergedTin = ((TinPropertyType) strategy.merge(LocatorUtils.property(leftLocator, "tin", lhsTin), LocatorUtils.property(rightLocator, "tin", rhsTin), lhsTin, rhsTin, leftObject.isSetTin(), rightObject.isSetTin()));
target.setTin(mergedTin);
} else {
if (tinShouldBeMergedAndSet == Boolean.FALSE) {
target.tin = null;
}
}
}
{
Boolean genericApplicationPropertyOfTinReliefShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfTinRelief(), rightObject.isSetGenericApplicationPropertyOfTinRelief());
if (genericApplicationPropertyOfTinReliefShouldBeMergedAndSet == Boolean.TRUE) {
List lhsGenericApplicationPropertyOfTinRelief;
lhsGenericApplicationPropertyOfTinRelief = (leftObject.isSetGenericApplicationPropertyOfTinRelief()?leftObject.getGenericApplicationPropertyOfTinRelief():null);
List rhsGenericApplicationPropertyOfTinRelief;
rhsGenericApplicationPropertyOfTinRelief = (rightObject.isSetGenericApplicationPropertyOfTinRelief()?rightObject.getGenericApplicationPropertyOfTinRelief():null);
List mergedGenericApplicationPropertyOfTinRelief = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfTinRelief", lhsGenericApplicationPropertyOfTinRelief), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfTinRelief", rhsGenericApplicationPropertyOfTinRelief), lhsGenericApplicationPropertyOfTinRelief, rhsGenericApplicationPropertyOfTinRelief, leftObject.isSetGenericApplicationPropertyOfTinRelief(), rightObject.isSetGenericApplicationPropertyOfTinRelief()));
target.unsetGenericApplicationPropertyOfTinRelief();
if (mergedGenericApplicationPropertyOfTinRelief!= null) {
List uniqueGenericApplicationPropertyOfTinReliefl = target.getGenericApplicationPropertyOfTinRelief();
uniqueGenericApplicationPropertyOfTinReliefl.addAll(mergedGenericApplicationPropertyOfTinRelief);
}
} else {
if (genericApplicationPropertyOfTinReliefShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetGenericApplicationPropertyOfTinRelief();
}
}
}
}
}
public void setGenericApplicationPropertyOfTinRelief(List value) {
this.genericApplicationPropertyOfTinRelief = null;
if (value!= null) {
List draftl = this.getGenericApplicationPropertyOfTinRelief();
draftl.addAll(value);
}
}
public TINReliefType withTin(TinPropertyType value) {
setTin(value);
return this;
}
public TINReliefType withGenericApplicationPropertyOfTinRelief(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfTinRelief().add(value);
}
}
return this;
}
public TINReliefType withGenericApplicationPropertyOfTinRelief(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfTinRelief().addAll(values);
}
return this;
}
public TINReliefType withGenericApplicationPropertyOfTinRelief(List value) {
setGenericApplicationPropertyOfTinRelief(value);
return this;
}
@Override
public TINReliefType withLod(int value) {
setLod(value);
return this;
}
@Override
public TINReliefType withExtent(PolygonPropertyType value) {
setExtent(value);
return this;
}
@Override
public TINReliefType withGenericApplicationPropertyOfReliefComponent(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfReliefComponent().add(value);
}
}
return this;
}
@Override
public TINReliefType withGenericApplicationPropertyOfReliefComponent(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfReliefComponent().addAll(values);
}
return this;
}
@Override
public TINReliefType withGenericApplicationPropertyOfReliefComponent(List value) {
setGenericApplicationPropertyOfReliefComponent(value);
return this;
}
@Override
public TINReliefType withCreationDate(XMLGregorianCalendar value) {
setCreationDate(value);
return this;
}
@Override
public TINReliefType withTerminationDate(XMLGregorianCalendar value) {
setTerminationDate(value);
return this;
}
@Override
public TINReliefType withExternalReference(ExternalReferenceType... values) {
if (values!= null) {
for (ExternalReferenceType value: values) {
getExternalReference().add(value);
}
}
return this;
}
@Override
public TINReliefType withExternalReference(Collection values) {
if (values!= null) {
getExternalReference().addAll(values);
}
return this;
}
@Override
public TINReliefType withGeneralizesTo(GeneralizationRelationType... values) {
if (values!= null) {
for (GeneralizationRelationType value: values) {
getGeneralizesTo().add(value);
}
}
return this;
}
@Override
public TINReliefType withGeneralizesTo(Collection values) {
if (values!= null) {
getGeneralizesTo().addAll(values);
}
return this;
}
@Override
public TINReliefType withRelativeToTerrain(RelativeToTerrainType value) {
setRelativeToTerrain(value);
return this;
}
@Override
public TINReliefType withRelativeToWater(RelativeToWaterType value) {
setRelativeToWater(value);
return this;
}
@Override
public TINReliefType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) {
if (values!= null) {
for (JAXBElement value: values) {
getGenericApplicationPropertyOfCityObject().add(value);
}
}
return this;
}
@Override
public TINReliefType withGenericApplicationPropertyOfCityObject(Collection> values) {
if (values!= null) {
getGenericApplicationPropertyOfCityObject().addAll(values);
}
return this;
}
@Override
public TINReliefType withExternalReference(List value) {
setExternalReference(value);
return this;
}
@Override
public TINReliefType withGeneralizesTo(List value) {
setGeneralizesTo(value);
return this;
}
@Override
public TINReliefType withGenericApplicationPropertyOfCityObject(List> value) {
setGenericApplicationPropertyOfCityObject(value);
return this;
}
}