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.waterbody.v_2_0.AbstractWaterObjectType 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.waterbody.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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import net.opengis.citygml.v_2_0.AbstractCityObjectType;
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 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 abstract superclass for water objects. As subclass of _CityObject, a _WaterObject
* inherits all attributes and relations, in particular an id, names, external references, and generalization relations.
*
*
* Java class for AbstractWaterObjectType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="AbstractWaterObjectType">
* <complexContent>
* <extension base="{http://www.opengis.net/citygml/2.0}AbstractCityObjectType">
* <sequence>
* <element ref="{http://www.opengis.net/citygml/waterbody/2.0}_GenericApplicationPropertyOfWaterObject" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractWaterObjectType", propOrder = {
"genericApplicationPropertyOfWaterObject"
})
@XmlSeeAlso({
WaterBodyType.class
})
public abstract class AbstractWaterObjectType
extends AbstractCityObjectType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(name = "_GenericApplicationPropertyOfWaterObject")
protected List genericApplicationPropertyOfWaterObject;
/**
* Gets the value of the genericApplicationPropertyOfWaterObject 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 genericApplicationPropertyOfWaterObject property.
*
*
* For example, to add a new item, do as follows:
*
* getGenericApplicationPropertyOfWaterObject().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List getGenericApplicationPropertyOfWaterObject() {
if (genericApplicationPropertyOfWaterObject == null) {
genericApplicationPropertyOfWaterObject = new ArrayList();
}
return this.genericApplicationPropertyOfWaterObject;
}
public boolean isSetGenericApplicationPropertyOfWaterObject() {
return ((this.genericApplicationPropertyOfWaterObject!= null)&&(!this.genericApplicationPropertyOfWaterObject.isEmpty()));
}
public void unsetGenericApplicationPropertyOfWaterObject() {
this.genericApplicationPropertyOfWaterObject = 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);
{
List theGenericApplicationPropertyOfWaterObject;
theGenericApplicationPropertyOfWaterObject = (this.isSetGenericApplicationPropertyOfWaterObject()?this.getGenericApplicationPropertyOfWaterObject():null);
strategy.appendField(locator, this, "genericApplicationPropertyOfWaterObject", buffer, theGenericApplicationPropertyOfWaterObject, this.isSetGenericApplicationPropertyOfWaterObject());
}
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 AbstractWaterObjectType that = ((AbstractWaterObjectType) object);
{
List lhsGenericApplicationPropertyOfWaterObject;
lhsGenericApplicationPropertyOfWaterObject = (this.isSetGenericApplicationPropertyOfWaterObject()?this.getGenericApplicationPropertyOfWaterObject():null);
List rhsGenericApplicationPropertyOfWaterObject;
rhsGenericApplicationPropertyOfWaterObject = (that.isSetGenericApplicationPropertyOfWaterObject()?that.getGenericApplicationPropertyOfWaterObject():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfWaterObject", lhsGenericApplicationPropertyOfWaterObject), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfWaterObject", rhsGenericApplicationPropertyOfWaterObject), lhsGenericApplicationPropertyOfWaterObject, rhsGenericApplicationPropertyOfWaterObject, this.isSetGenericApplicationPropertyOfWaterObject(), that.isSetGenericApplicationPropertyOfWaterObject())) {
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);
{
List theGenericApplicationPropertyOfWaterObject;
theGenericApplicationPropertyOfWaterObject = (this.isSetGenericApplicationPropertyOfWaterObject()?this.getGenericApplicationPropertyOfWaterObject():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfWaterObject", theGenericApplicationPropertyOfWaterObject), currentHashCode, theGenericApplicationPropertyOfWaterObject, this.isSetGenericApplicationPropertyOfWaterObject());
}
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) {
if (null == target) {
throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
}
super.copyTo(locator, target, strategy);
if (target instanceof AbstractWaterObjectType) {
final AbstractWaterObjectType copy = ((AbstractWaterObjectType) target);
{
Boolean genericApplicationPropertyOfWaterObjectShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfWaterObject());
if (genericApplicationPropertyOfWaterObjectShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGenericApplicationPropertyOfWaterObject;
sourceGenericApplicationPropertyOfWaterObject = (this.isSetGenericApplicationPropertyOfWaterObject()?this.getGenericApplicationPropertyOfWaterObject():null);
@SuppressWarnings("unchecked")
List copyGenericApplicationPropertyOfWaterObject = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfWaterObject", sourceGenericApplicationPropertyOfWaterObject), sourceGenericApplicationPropertyOfWaterObject, this.isSetGenericApplicationPropertyOfWaterObject()));
copy.unsetGenericApplicationPropertyOfWaterObject();
if (copyGenericApplicationPropertyOfWaterObject!= null) {
List uniqueGenericApplicationPropertyOfWaterObjectl = copy.getGenericApplicationPropertyOfWaterObject();
uniqueGenericApplicationPropertyOfWaterObjectl.addAll(copyGenericApplicationPropertyOfWaterObject);
}
} else {
if (genericApplicationPropertyOfWaterObjectShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetGenericApplicationPropertyOfWaterObject();
}
}
}
}
return target;
}
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 AbstractWaterObjectType) {
final AbstractWaterObjectType target = this;
final AbstractWaterObjectType leftObject = ((AbstractWaterObjectType) left);
final AbstractWaterObjectType rightObject = ((AbstractWaterObjectType) right);
{
Boolean genericApplicationPropertyOfWaterObjectShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfWaterObject(), rightObject.isSetGenericApplicationPropertyOfWaterObject());
if (genericApplicationPropertyOfWaterObjectShouldBeMergedAndSet == Boolean.TRUE) {
List lhsGenericApplicationPropertyOfWaterObject;
lhsGenericApplicationPropertyOfWaterObject = (leftObject.isSetGenericApplicationPropertyOfWaterObject()?leftObject.getGenericApplicationPropertyOfWaterObject():null);
List rhsGenericApplicationPropertyOfWaterObject;
rhsGenericApplicationPropertyOfWaterObject = (rightObject.isSetGenericApplicationPropertyOfWaterObject()?rightObject.getGenericApplicationPropertyOfWaterObject():null);
List mergedGenericApplicationPropertyOfWaterObject = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfWaterObject", lhsGenericApplicationPropertyOfWaterObject), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfWaterObject", rhsGenericApplicationPropertyOfWaterObject), lhsGenericApplicationPropertyOfWaterObject, rhsGenericApplicationPropertyOfWaterObject, leftObject.isSetGenericApplicationPropertyOfWaterObject(), rightObject.isSetGenericApplicationPropertyOfWaterObject()));
target.unsetGenericApplicationPropertyOfWaterObject();
if (mergedGenericApplicationPropertyOfWaterObject!= null) {
List uniqueGenericApplicationPropertyOfWaterObjectl = target.getGenericApplicationPropertyOfWaterObject();
uniqueGenericApplicationPropertyOfWaterObjectl.addAll(mergedGenericApplicationPropertyOfWaterObject);
}
} else {
if (genericApplicationPropertyOfWaterObjectShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetGenericApplicationPropertyOfWaterObject();
}
}
}
}
}
public void setGenericApplicationPropertyOfWaterObject(List value) {
this.genericApplicationPropertyOfWaterObject = null;
if (value!= null) {
List draftl = this.getGenericApplicationPropertyOfWaterObject();
draftl.addAll(value);
}
}
public AbstractWaterObjectType withGenericApplicationPropertyOfWaterObject(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfWaterObject().add(value);
}
}
return this;
}
public AbstractWaterObjectType withGenericApplicationPropertyOfWaterObject(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfWaterObject().addAll(values);
}
return this;
}
public AbstractWaterObjectType withGenericApplicationPropertyOfWaterObject(List value) {
setGenericApplicationPropertyOfWaterObject(value);
return this;
}
@Override
public AbstractWaterObjectType withCreationDate(XMLGregorianCalendar value) {
setCreationDate(value);
return this;
}
@Override
public AbstractWaterObjectType withTerminationDate(XMLGregorianCalendar value) {
setTerminationDate(value);
return this;
}
@Override
public AbstractWaterObjectType withExternalReference(ExternalReferenceType... values) {
if (values!= null) {
for (ExternalReferenceType value: values) {
getExternalReference().add(value);
}
}
return this;
}
@Override
public AbstractWaterObjectType withExternalReference(Collection values) {
if (values!= null) {
getExternalReference().addAll(values);
}
return this;
}
@Override
public AbstractWaterObjectType withGeneralizesTo(GeneralizationRelationType... values) {
if (values!= null) {
for (GeneralizationRelationType value: values) {
getGeneralizesTo().add(value);
}
}
return this;
}
@Override
public AbstractWaterObjectType withGeneralizesTo(Collection values) {
if (values!= null) {
getGeneralizesTo().addAll(values);
}
return this;
}
@Override
public AbstractWaterObjectType withRelativeToTerrain(RelativeToTerrainType value) {
setRelativeToTerrain(value);
return this;
}
@Override
public AbstractWaterObjectType withRelativeToWater(RelativeToWaterType value) {
setRelativeToWater(value);
return this;
}
@Override
public AbstractWaterObjectType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) {
if (values!= null) {
for (JAXBElement value: values) {
getGenericApplicationPropertyOfCityObject().add(value);
}
}
return this;
}
@Override
public AbstractWaterObjectType withGenericApplicationPropertyOfCityObject(Collection> values) {
if (values!= null) {
getGenericApplicationPropertyOfCityObject().addAll(values);
}
return this;
}
@Override
public AbstractWaterObjectType withExternalReference(List value) {
setExternalReference(value);
return this;
}
@Override
public AbstractWaterObjectType withGeneralizesTo(List value) {
setGeneralizesTo(value);
return this;
}
@Override
public AbstractWaterObjectType withGenericApplicationPropertyOfCityObject(List> value) {
setGenericApplicationPropertyOfCityObject(value);
return this;
}
}