All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.opengis.citygml.v_2_0.AbstractCityObjectType 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.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.XmlElementRef;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import net.opengis.citygml.appearance.v_2_0.AppearancePropertyType;
import net.opengis.citygml.bridge.v_2_0.BridgeConstructionElementType;
import net.opengis.citygml.bridge.v_2_0.BridgeFurnitureType;
import net.opengis.citygml.bridge.v_2_0.BridgeInstallationType;
import net.opengis.citygml.bridge.v_2_0.BridgeRoomType;
import net.opengis.citygml.bridge.v_2_0.IntBridgeInstallationType;
import net.opengis.citygml.building.v_2_0.BuildingFurnitureType;
import net.opengis.citygml.building.v_2_0.BuildingInstallationType;
import net.opengis.citygml.building.v_2_0.IntBuildingInstallationType;
import net.opengis.citygml.building.v_2_0.RoomType;
import net.opengis.citygml.cityfurniture.v_2_0.CityFurnitureType;
import net.opengis.citygml.cityobjectgroup.v_2_0.CityObjectGroupType;
import net.opengis.citygml.generics.v_2_0.AbstractGenericAttributeType;
import net.opengis.citygml.generics.v_2_0.DateAttributeType;
import net.opengis.citygml.generics.v_2_0.DoubleAttributeType;
import net.opengis.citygml.generics.v_2_0.GenericAttributeSetType;
import net.opengis.citygml.generics.v_2_0.GenericCityObjectType;
import net.opengis.citygml.generics.v_2_0.IntAttributeType;
import net.opengis.citygml.generics.v_2_0.MeasureAttributeType;
import net.opengis.citygml.generics.v_2_0.StringAttributeType;
import net.opengis.citygml.generics.v_2_0.UriAttributeType;
import net.opengis.citygml.landuse.v_2_0.LandUseType;
import net.opengis.citygml.relief.v_2_0.AbstractReliefComponentType;
import net.opengis.citygml.relief.v_2_0.ReliefFeatureType;
import net.opengis.citygml.transportation.v_2_0.AbstractTransportationObjectType;
import net.opengis.citygml.tunnel.v_2_0.HollowSpaceType;
import net.opengis.citygml.tunnel.v_2_0.IntTunnelInstallationType;
import net.opengis.citygml.tunnel.v_2_0.TunnelFurnitureType;
import net.opengis.citygml.tunnel.v_2_0.TunnelInstallationType;
import net.opengis.citygml.vegetation.v_2_0.AbstractVegetationObjectType;
import net.opengis.citygml.waterbody.v_2_0.AbstractWaterBoundarySurfaceType;
import net.opengis.citygml.waterbody.v_2_0.AbstractWaterObjectType;
import net.opengis.gml.v_3_1_1.AbstractFeatureType;
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 of most CityGML features. Its purpose is to provide a creation and
 * 				a termination date as well as a reference to corresponding objects in other information systems. A generalization relation
 * 				may be used to relate features, which represent the same real-world object in different Levels-of-Detail, i.e. a feature
 * 				and its generalized counterpart(s). The direction of this relation is from the feature to the corresponding generalized
 * 				feature.
 * 
 * 

Java class for AbstractCityObjectType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="AbstractCityObjectType">
 *   <complexContent>
 *     <extension base="{http://www.opengis.net/gml}AbstractFeatureType">
 *       <sequence>
 *         <element name="creationDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 *         <element name="terminationDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 *         <element name="externalReference" type="{http://www.opengis.net/citygml/2.0}ExternalReferenceType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="generalizesTo" type="{http://www.opengis.net/citygml/2.0}GeneralizationRelationType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="relativeToTerrain" type="{http://www.opengis.net/citygml/2.0}RelativeToTerrainType" minOccurs="0"/>
 *         <element name="relativeToWater" type="{http://www.opengis.net/citygml/2.0}RelativeToWaterType" minOccurs="0"/>
 *         <element ref="{http://www.opengis.net/citygml/2.0}_GenericApplicationPropertyOfCityObject" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AbstractCityObjectType", propOrder = { "creationDate", "terminationDate", "externalReference", "generalizesTo", "relativeToTerrain", "relativeToWater", "genericApplicationPropertyOfCityObject" }) @XmlSeeAlso({ BridgeInstallationType.class, IntBridgeInstallationType.class, BridgeConstructionElementType.class, net.opengis.citygml.bridge.v_2_0.AbstractBoundarySurfaceType.class, net.opengis.citygml.bridge.v_2_0.AbstractOpeningType.class, BridgeRoomType.class, BridgeFurnitureType.class, BuildingInstallationType.class, IntBuildingInstallationType.class, net.opengis.citygml.building.v_2_0.AbstractBoundarySurfaceType.class, net.opengis.citygml.building.v_2_0.AbstractOpeningType.class, RoomType.class, BuildingFurnitureType.class, CityFurnitureType.class, CityObjectGroupType.class, GenericCityObjectType.class, LandUseType.class, ReliefFeatureType.class, AbstractReliefComponentType.class, AbstractTransportationObjectType.class, AbstractSiteType.class, TunnelInstallationType.class, IntTunnelInstallationType.class, net.opengis.citygml.tunnel.v_2_0.AbstractBoundarySurfaceType.class, HollowSpaceType.class, TunnelFurnitureType.class, net.opengis.citygml.tunnel.v_2_0.AbstractOpeningType.class, AbstractVegetationObjectType.class, AbstractWaterObjectType.class, AbstractWaterBoundarySurfaceType.class }) public abstract class AbstractCityObjectType extends AbstractFeatureType implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlSchemaType(name = "date") protected XMLGregorianCalendar creationDate; @XmlSchemaType(name = "date") protected XMLGregorianCalendar terminationDate; protected List externalReference; protected List generalizesTo; @XmlSchemaType(name = "string") protected RelativeToTerrainType relativeToTerrain; @XmlSchemaType(name = "string") protected RelativeToWaterType relativeToWater; @XmlElementRef(name = "_GenericApplicationPropertyOfCityObject", namespace = "http://www.opengis.net/citygml/2.0", type = JAXBElement.class, required = false) protected List> genericApplicationPropertyOfCityObject; /** * Gets the value of the creationDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getCreationDate() { return creationDate; } /** * Sets the value of the creationDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setCreationDate(XMLGregorianCalendar value) { this.creationDate = value; } public boolean isSetCreationDate() { return (this.creationDate!= null); } /** * Gets the value of the terminationDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getTerminationDate() { return terminationDate; } /** * Sets the value of the terminationDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setTerminationDate(XMLGregorianCalendar value) { this.terminationDate = value; } public boolean isSetTerminationDate() { return (this.terminationDate!= null); } /** * Gets the value of the externalReference 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 externalReference property. * *

* For example, to add a new item, do as follows: *

     *    getExternalReference().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ExternalReferenceType } * * */ public List getExternalReference() { if (externalReference == null) { externalReference = new ArrayList(); } return this.externalReference; } public boolean isSetExternalReference() { return ((this.externalReference!= null)&&(!this.externalReference.isEmpty())); } public void unsetExternalReference() { this.externalReference = null; } /** * Gets the value of the generalizesTo 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 generalizesTo property. * *

* For example, to add a new item, do as follows: *

     *    getGeneralizesTo().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link GeneralizationRelationType } * * */ public List getGeneralizesTo() { if (generalizesTo == null) { generalizesTo = new ArrayList(); } return this.generalizesTo; } public boolean isSetGeneralizesTo() { return ((this.generalizesTo!= null)&&(!this.generalizesTo.isEmpty())); } public void unsetGeneralizesTo() { this.generalizesTo = null; } /** * Gets the value of the relativeToTerrain property. * * @return * possible object is * {@link RelativeToTerrainType } * */ public RelativeToTerrainType getRelativeToTerrain() { return relativeToTerrain; } /** * Sets the value of the relativeToTerrain property. * * @param value * allowed object is * {@link RelativeToTerrainType } * */ public void setRelativeToTerrain(RelativeToTerrainType value) { this.relativeToTerrain = value; } public boolean isSetRelativeToTerrain() { return (this.relativeToTerrain!= null); } /** * Gets the value of the relativeToWater property. * * @return * possible object is * {@link RelativeToWaterType } * */ public RelativeToWaterType getRelativeToWater() { return relativeToWater; } /** * Sets the value of the relativeToWater property. * * @param value * allowed object is * {@link RelativeToWaterType } * */ public void setRelativeToWater(RelativeToWaterType value) { this.relativeToWater = value; } public boolean isSetRelativeToWater() { return (this.relativeToWater!= null); } /** * Gets the value of the genericApplicationPropertyOfCityObject 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 genericApplicationPropertyOfCityObject property. * *

* For example, to add a new item, do as follows: *

     *    getGenericApplicationPropertyOfCityObject().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link Object }{@code >} * {@link JAXBElement }{@code <}{@link AppearancePropertyType }{@code >} * {@link JAXBElement }{@code <}{@link DoubleAttributeType }{@code >} * {@link JAXBElement }{@code <}{@link StringAttributeType }{@code >} * {@link JAXBElement }{@code <}{@link GenericAttributeSetType }{@code >} * {@link JAXBElement }{@code <}{@link DateAttributeType }{@code >} * {@link JAXBElement }{@code <}{@link IntAttributeType }{@code >} * {@link JAXBElement }{@code <}{@link UriAttributeType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractGenericAttributeType }{@code >} * {@link JAXBElement }{@code <}{@link MeasureAttributeType }{@code >} * * */ public List> getGenericApplicationPropertyOfCityObject() { if (genericApplicationPropertyOfCityObject == null) { genericApplicationPropertyOfCityObject = new ArrayList>(); } return this.genericApplicationPropertyOfCityObject; } public boolean isSetGenericApplicationPropertyOfCityObject() { return ((this.genericApplicationPropertyOfCityObject!= null)&&(!this.genericApplicationPropertyOfCityObject.isEmpty())); } public void unsetGenericApplicationPropertyOfCityObject() { this.genericApplicationPropertyOfCityObject = 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); { XMLGregorianCalendar theCreationDate; theCreationDate = this.getCreationDate(); strategy.appendField(locator, this, "creationDate", buffer, theCreationDate, this.isSetCreationDate()); } { XMLGregorianCalendar theTerminationDate; theTerminationDate = this.getTerminationDate(); strategy.appendField(locator, this, "terminationDate", buffer, theTerminationDate, this.isSetTerminationDate()); } { List theExternalReference; theExternalReference = (this.isSetExternalReference()?this.getExternalReference():null); strategy.appendField(locator, this, "externalReference", buffer, theExternalReference, this.isSetExternalReference()); } { List theGeneralizesTo; theGeneralizesTo = (this.isSetGeneralizesTo()?this.getGeneralizesTo():null); strategy.appendField(locator, this, "generalizesTo", buffer, theGeneralizesTo, this.isSetGeneralizesTo()); } { RelativeToTerrainType theRelativeToTerrain; theRelativeToTerrain = this.getRelativeToTerrain(); strategy.appendField(locator, this, "relativeToTerrain", buffer, theRelativeToTerrain, this.isSetRelativeToTerrain()); } { RelativeToWaterType theRelativeToWater; theRelativeToWater = this.getRelativeToWater(); strategy.appendField(locator, this, "relativeToWater", buffer, theRelativeToWater, this.isSetRelativeToWater()); } { List> theGenericApplicationPropertyOfCityObject; theGenericApplicationPropertyOfCityObject = (this.isSetGenericApplicationPropertyOfCityObject()?this.getGenericApplicationPropertyOfCityObject():null); strategy.appendField(locator, this, "genericApplicationPropertyOfCityObject", buffer, theGenericApplicationPropertyOfCityObject, this.isSetGenericApplicationPropertyOfCityObject()); } 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 AbstractCityObjectType that = ((AbstractCityObjectType) object); { XMLGregorianCalendar lhsCreationDate; lhsCreationDate = this.getCreationDate(); XMLGregorianCalendar rhsCreationDate; rhsCreationDate = that.getCreationDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "creationDate", lhsCreationDate), LocatorUtils.property(thatLocator, "creationDate", rhsCreationDate), lhsCreationDate, rhsCreationDate, this.isSetCreationDate(), that.isSetCreationDate())) { return false; } } { XMLGregorianCalendar lhsTerminationDate; lhsTerminationDate = this.getTerminationDate(); XMLGregorianCalendar rhsTerminationDate; rhsTerminationDate = that.getTerminationDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "terminationDate", lhsTerminationDate), LocatorUtils.property(thatLocator, "terminationDate", rhsTerminationDate), lhsTerminationDate, rhsTerminationDate, this.isSetTerminationDate(), that.isSetTerminationDate())) { return false; } } { List lhsExternalReference; lhsExternalReference = (this.isSetExternalReference()?this.getExternalReference():null); List rhsExternalReference; rhsExternalReference = (that.isSetExternalReference()?that.getExternalReference():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "externalReference", lhsExternalReference), LocatorUtils.property(thatLocator, "externalReference", rhsExternalReference), lhsExternalReference, rhsExternalReference, this.isSetExternalReference(), that.isSetExternalReference())) { return false; } } { List lhsGeneralizesTo; lhsGeneralizesTo = (this.isSetGeneralizesTo()?this.getGeneralizesTo():null); List rhsGeneralizesTo; rhsGeneralizesTo = (that.isSetGeneralizesTo()?that.getGeneralizesTo():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "generalizesTo", lhsGeneralizesTo), LocatorUtils.property(thatLocator, "generalizesTo", rhsGeneralizesTo), lhsGeneralizesTo, rhsGeneralizesTo, this.isSetGeneralizesTo(), that.isSetGeneralizesTo())) { return false; } } { RelativeToTerrainType lhsRelativeToTerrain; lhsRelativeToTerrain = this.getRelativeToTerrain(); RelativeToTerrainType rhsRelativeToTerrain; rhsRelativeToTerrain = that.getRelativeToTerrain(); if (!strategy.equals(LocatorUtils.property(thisLocator, "relativeToTerrain", lhsRelativeToTerrain), LocatorUtils.property(thatLocator, "relativeToTerrain", rhsRelativeToTerrain), lhsRelativeToTerrain, rhsRelativeToTerrain, this.isSetRelativeToTerrain(), that.isSetRelativeToTerrain())) { return false; } } { RelativeToWaterType lhsRelativeToWater; lhsRelativeToWater = this.getRelativeToWater(); RelativeToWaterType rhsRelativeToWater; rhsRelativeToWater = that.getRelativeToWater(); if (!strategy.equals(LocatorUtils.property(thisLocator, "relativeToWater", lhsRelativeToWater), LocatorUtils.property(thatLocator, "relativeToWater", rhsRelativeToWater), lhsRelativeToWater, rhsRelativeToWater, this.isSetRelativeToWater(), that.isSetRelativeToWater())) { return false; } } { List> lhsGenericApplicationPropertyOfCityObject; lhsGenericApplicationPropertyOfCityObject = (this.isSetGenericApplicationPropertyOfCityObject()?this.getGenericApplicationPropertyOfCityObject():null); List> rhsGenericApplicationPropertyOfCityObject; rhsGenericApplicationPropertyOfCityObject = (that.isSetGenericApplicationPropertyOfCityObject()?that.getGenericApplicationPropertyOfCityObject():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfCityObject", lhsGenericApplicationPropertyOfCityObject), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfCityObject", rhsGenericApplicationPropertyOfCityObject), lhsGenericApplicationPropertyOfCityObject, rhsGenericApplicationPropertyOfCityObject, this.isSetGenericApplicationPropertyOfCityObject(), that.isSetGenericApplicationPropertyOfCityObject())) { 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); { XMLGregorianCalendar theCreationDate; theCreationDate = this.getCreationDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creationDate", theCreationDate), currentHashCode, theCreationDate, this.isSetCreationDate()); } { XMLGregorianCalendar theTerminationDate; theTerminationDate = this.getTerminationDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "terminationDate", theTerminationDate), currentHashCode, theTerminationDate, this.isSetTerminationDate()); } { List theExternalReference; theExternalReference = (this.isSetExternalReference()?this.getExternalReference():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "externalReference", theExternalReference), currentHashCode, theExternalReference, this.isSetExternalReference()); } { List theGeneralizesTo; theGeneralizesTo = (this.isSetGeneralizesTo()?this.getGeneralizesTo():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "generalizesTo", theGeneralizesTo), currentHashCode, theGeneralizesTo, this.isSetGeneralizesTo()); } { RelativeToTerrainType theRelativeToTerrain; theRelativeToTerrain = this.getRelativeToTerrain(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relativeToTerrain", theRelativeToTerrain), currentHashCode, theRelativeToTerrain, this.isSetRelativeToTerrain()); } { RelativeToWaterType theRelativeToWater; theRelativeToWater = this.getRelativeToWater(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relativeToWater", theRelativeToWater), currentHashCode, theRelativeToWater, this.isSetRelativeToWater()); } { List> theGenericApplicationPropertyOfCityObject; theGenericApplicationPropertyOfCityObject = (this.isSetGenericApplicationPropertyOfCityObject()?this.getGenericApplicationPropertyOfCityObject():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfCityObject", theGenericApplicationPropertyOfCityObject), currentHashCode, theGenericApplicationPropertyOfCityObject, this.isSetGenericApplicationPropertyOfCityObject()); } 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 AbstractCityObjectType) { final AbstractCityObjectType copy = ((AbstractCityObjectType) target); { Boolean creationDateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetCreationDate()); if (creationDateShouldBeCopiedAndSet == Boolean.TRUE) { XMLGregorianCalendar sourceCreationDate; sourceCreationDate = this.getCreationDate(); XMLGregorianCalendar copyCreationDate = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "creationDate", sourceCreationDate), sourceCreationDate, this.isSetCreationDate())); copy.setCreationDate(copyCreationDate); } else { if (creationDateShouldBeCopiedAndSet == Boolean.FALSE) { copy.creationDate = null; } } } { Boolean terminationDateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetTerminationDate()); if (terminationDateShouldBeCopiedAndSet == Boolean.TRUE) { XMLGregorianCalendar sourceTerminationDate; sourceTerminationDate = this.getTerminationDate(); XMLGregorianCalendar copyTerminationDate = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "terminationDate", sourceTerminationDate), sourceTerminationDate, this.isSetTerminationDate())); copy.setTerminationDate(copyTerminationDate); } else { if (terminationDateShouldBeCopiedAndSet == Boolean.FALSE) { copy.terminationDate = null; } } } { Boolean externalReferenceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetExternalReference()); if (externalReferenceShouldBeCopiedAndSet == Boolean.TRUE) { List sourceExternalReference; sourceExternalReference = (this.isSetExternalReference()?this.getExternalReference():null); @SuppressWarnings("unchecked") List copyExternalReference = ((List ) strategy.copy(LocatorUtils.property(locator, "externalReference", sourceExternalReference), sourceExternalReference, this.isSetExternalReference())); copy.unsetExternalReference(); if (copyExternalReference!= null) { List uniqueExternalReferencel = copy.getExternalReference(); uniqueExternalReferencel.addAll(copyExternalReference); } } else { if (externalReferenceShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetExternalReference(); } } } { Boolean generalizesToShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGeneralizesTo()); if (generalizesToShouldBeCopiedAndSet == Boolean.TRUE) { List sourceGeneralizesTo; sourceGeneralizesTo = (this.isSetGeneralizesTo()?this.getGeneralizesTo():null); @SuppressWarnings("unchecked") List copyGeneralizesTo = ((List ) strategy.copy(LocatorUtils.property(locator, "generalizesTo", sourceGeneralizesTo), sourceGeneralizesTo, this.isSetGeneralizesTo())); copy.unsetGeneralizesTo(); if (copyGeneralizesTo!= null) { List uniqueGeneralizesTol = copy.getGeneralizesTo(); uniqueGeneralizesTol.addAll(copyGeneralizesTo); } } else { if (generalizesToShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetGeneralizesTo(); } } } { Boolean relativeToTerrainShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetRelativeToTerrain()); if (relativeToTerrainShouldBeCopiedAndSet == Boolean.TRUE) { RelativeToTerrainType sourceRelativeToTerrain; sourceRelativeToTerrain = this.getRelativeToTerrain(); RelativeToTerrainType copyRelativeToTerrain = ((RelativeToTerrainType) strategy.copy(LocatorUtils.property(locator, "relativeToTerrain", sourceRelativeToTerrain), sourceRelativeToTerrain, this.isSetRelativeToTerrain())); copy.setRelativeToTerrain(copyRelativeToTerrain); } else { if (relativeToTerrainShouldBeCopiedAndSet == Boolean.FALSE) { copy.relativeToTerrain = null; } } } { Boolean relativeToWaterShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetRelativeToWater()); if (relativeToWaterShouldBeCopiedAndSet == Boolean.TRUE) { RelativeToWaterType sourceRelativeToWater; sourceRelativeToWater = this.getRelativeToWater(); RelativeToWaterType copyRelativeToWater = ((RelativeToWaterType) strategy.copy(LocatorUtils.property(locator, "relativeToWater", sourceRelativeToWater), sourceRelativeToWater, this.isSetRelativeToWater())); copy.setRelativeToWater(copyRelativeToWater); } else { if (relativeToWaterShouldBeCopiedAndSet == Boolean.FALSE) { copy.relativeToWater = null; } } } { Boolean genericApplicationPropertyOfCityObjectShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfCityObject()); if (genericApplicationPropertyOfCityObjectShouldBeCopiedAndSet == Boolean.TRUE) { List> sourceGenericApplicationPropertyOfCityObject; sourceGenericApplicationPropertyOfCityObject = (this.isSetGenericApplicationPropertyOfCityObject()?this.getGenericApplicationPropertyOfCityObject():null); @SuppressWarnings("unchecked") List> copyGenericApplicationPropertyOfCityObject = ((List> ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfCityObject", sourceGenericApplicationPropertyOfCityObject), sourceGenericApplicationPropertyOfCityObject, this.isSetGenericApplicationPropertyOfCityObject())); copy.unsetGenericApplicationPropertyOfCityObject(); if (copyGenericApplicationPropertyOfCityObject!= null) { List> uniqueGenericApplicationPropertyOfCityObjectl = copy.getGenericApplicationPropertyOfCityObject(); uniqueGenericApplicationPropertyOfCityObjectl.addAll(copyGenericApplicationPropertyOfCityObject); } } else { if (genericApplicationPropertyOfCityObjectShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetGenericApplicationPropertyOfCityObject(); } } } } 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 AbstractCityObjectType) { final AbstractCityObjectType target = this; final AbstractCityObjectType leftObject = ((AbstractCityObjectType) left); final AbstractCityObjectType rightObject = ((AbstractCityObjectType) right); { Boolean creationDateShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetCreationDate(), rightObject.isSetCreationDate()); if (creationDateShouldBeMergedAndSet == Boolean.TRUE) { XMLGregorianCalendar lhsCreationDate; lhsCreationDate = leftObject.getCreationDate(); XMLGregorianCalendar rhsCreationDate; rhsCreationDate = rightObject.getCreationDate(); XMLGregorianCalendar mergedCreationDate = ((XMLGregorianCalendar) strategy.merge(LocatorUtils.property(leftLocator, "creationDate", lhsCreationDate), LocatorUtils.property(rightLocator, "creationDate", rhsCreationDate), lhsCreationDate, rhsCreationDate, leftObject.isSetCreationDate(), rightObject.isSetCreationDate())); target.setCreationDate(mergedCreationDate); } else { if (creationDateShouldBeMergedAndSet == Boolean.FALSE) { target.creationDate = null; } } } { Boolean terminationDateShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetTerminationDate(), rightObject.isSetTerminationDate()); if (terminationDateShouldBeMergedAndSet == Boolean.TRUE) { XMLGregorianCalendar lhsTerminationDate; lhsTerminationDate = leftObject.getTerminationDate(); XMLGregorianCalendar rhsTerminationDate; rhsTerminationDate = rightObject.getTerminationDate(); XMLGregorianCalendar mergedTerminationDate = ((XMLGregorianCalendar) strategy.merge(LocatorUtils.property(leftLocator, "terminationDate", lhsTerminationDate), LocatorUtils.property(rightLocator, "terminationDate", rhsTerminationDate), lhsTerminationDate, rhsTerminationDate, leftObject.isSetTerminationDate(), rightObject.isSetTerminationDate())); target.setTerminationDate(mergedTerminationDate); } else { if (terminationDateShouldBeMergedAndSet == Boolean.FALSE) { target.terminationDate = null; } } } { Boolean externalReferenceShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetExternalReference(), rightObject.isSetExternalReference()); if (externalReferenceShouldBeMergedAndSet == Boolean.TRUE) { List lhsExternalReference; lhsExternalReference = (leftObject.isSetExternalReference()?leftObject.getExternalReference():null); List rhsExternalReference; rhsExternalReference = (rightObject.isSetExternalReference()?rightObject.getExternalReference():null); List mergedExternalReference = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "externalReference", lhsExternalReference), LocatorUtils.property(rightLocator, "externalReference", rhsExternalReference), lhsExternalReference, rhsExternalReference, leftObject.isSetExternalReference(), rightObject.isSetExternalReference())); target.unsetExternalReference(); if (mergedExternalReference!= null) { List uniqueExternalReferencel = target.getExternalReference(); uniqueExternalReferencel.addAll(mergedExternalReference); } } else { if (externalReferenceShouldBeMergedAndSet == Boolean.FALSE) { target.unsetExternalReference(); } } } { Boolean generalizesToShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGeneralizesTo(), rightObject.isSetGeneralizesTo()); if (generalizesToShouldBeMergedAndSet == Boolean.TRUE) { List lhsGeneralizesTo; lhsGeneralizesTo = (leftObject.isSetGeneralizesTo()?leftObject.getGeneralizesTo():null); List rhsGeneralizesTo; rhsGeneralizesTo = (rightObject.isSetGeneralizesTo()?rightObject.getGeneralizesTo():null); List mergedGeneralizesTo = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "generalizesTo", lhsGeneralizesTo), LocatorUtils.property(rightLocator, "generalizesTo", rhsGeneralizesTo), lhsGeneralizesTo, rhsGeneralizesTo, leftObject.isSetGeneralizesTo(), rightObject.isSetGeneralizesTo())); target.unsetGeneralizesTo(); if (mergedGeneralizesTo!= null) { List uniqueGeneralizesTol = target.getGeneralizesTo(); uniqueGeneralizesTol.addAll(mergedGeneralizesTo); } } else { if (generalizesToShouldBeMergedAndSet == Boolean.FALSE) { target.unsetGeneralizesTo(); } } } { Boolean relativeToTerrainShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetRelativeToTerrain(), rightObject.isSetRelativeToTerrain()); if (relativeToTerrainShouldBeMergedAndSet == Boolean.TRUE) { RelativeToTerrainType lhsRelativeToTerrain; lhsRelativeToTerrain = leftObject.getRelativeToTerrain(); RelativeToTerrainType rhsRelativeToTerrain; rhsRelativeToTerrain = rightObject.getRelativeToTerrain(); RelativeToTerrainType mergedRelativeToTerrain = ((RelativeToTerrainType) strategy.merge(LocatorUtils.property(leftLocator, "relativeToTerrain", lhsRelativeToTerrain), LocatorUtils.property(rightLocator, "relativeToTerrain", rhsRelativeToTerrain), lhsRelativeToTerrain, rhsRelativeToTerrain, leftObject.isSetRelativeToTerrain(), rightObject.isSetRelativeToTerrain())); target.setRelativeToTerrain(mergedRelativeToTerrain); } else { if (relativeToTerrainShouldBeMergedAndSet == Boolean.FALSE) { target.relativeToTerrain = null; } } } { Boolean relativeToWaterShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetRelativeToWater(), rightObject.isSetRelativeToWater()); if (relativeToWaterShouldBeMergedAndSet == Boolean.TRUE) { RelativeToWaterType lhsRelativeToWater; lhsRelativeToWater = leftObject.getRelativeToWater(); RelativeToWaterType rhsRelativeToWater; rhsRelativeToWater = rightObject.getRelativeToWater(); RelativeToWaterType mergedRelativeToWater = ((RelativeToWaterType) strategy.merge(LocatorUtils.property(leftLocator, "relativeToWater", lhsRelativeToWater), LocatorUtils.property(rightLocator, "relativeToWater", rhsRelativeToWater), lhsRelativeToWater, rhsRelativeToWater, leftObject.isSetRelativeToWater(), rightObject.isSetRelativeToWater())); target.setRelativeToWater(mergedRelativeToWater); } else { if (relativeToWaterShouldBeMergedAndSet == Boolean.FALSE) { target.relativeToWater = null; } } } { Boolean genericApplicationPropertyOfCityObjectShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfCityObject(), rightObject.isSetGenericApplicationPropertyOfCityObject()); if (genericApplicationPropertyOfCityObjectShouldBeMergedAndSet == Boolean.TRUE) { List> lhsGenericApplicationPropertyOfCityObject; lhsGenericApplicationPropertyOfCityObject = (leftObject.isSetGenericApplicationPropertyOfCityObject()?leftObject.getGenericApplicationPropertyOfCityObject():null); List> rhsGenericApplicationPropertyOfCityObject; rhsGenericApplicationPropertyOfCityObject = (rightObject.isSetGenericApplicationPropertyOfCityObject()?rightObject.getGenericApplicationPropertyOfCityObject():null); List> mergedGenericApplicationPropertyOfCityObject = ((List> ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfCityObject", lhsGenericApplicationPropertyOfCityObject), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfCityObject", rhsGenericApplicationPropertyOfCityObject), lhsGenericApplicationPropertyOfCityObject, rhsGenericApplicationPropertyOfCityObject, leftObject.isSetGenericApplicationPropertyOfCityObject(), rightObject.isSetGenericApplicationPropertyOfCityObject())); target.unsetGenericApplicationPropertyOfCityObject(); if (mergedGenericApplicationPropertyOfCityObject!= null) { List> uniqueGenericApplicationPropertyOfCityObjectl = target.getGenericApplicationPropertyOfCityObject(); uniqueGenericApplicationPropertyOfCityObjectl.addAll(mergedGenericApplicationPropertyOfCityObject); } } else { if (genericApplicationPropertyOfCityObjectShouldBeMergedAndSet == Boolean.FALSE) { target.unsetGenericApplicationPropertyOfCityObject(); } } } } } public void setExternalReference(List value) { this.externalReference = null; if (value!= null) { List draftl = this.getExternalReference(); draftl.addAll(value); } } public void setGeneralizesTo(List value) { this.generalizesTo = null; if (value!= null) { List draftl = this.getGeneralizesTo(); draftl.addAll(value); } } public void setGenericApplicationPropertyOfCityObject(List> value) { this.genericApplicationPropertyOfCityObject = null; if (value!= null) { List> draftl = this.getGenericApplicationPropertyOfCityObject(); draftl.addAll(value); } } public AbstractCityObjectType withCreationDate(XMLGregorianCalendar value) { setCreationDate(value); return this; } public AbstractCityObjectType withTerminationDate(XMLGregorianCalendar value) { setTerminationDate(value); return this; } public AbstractCityObjectType withExternalReference(ExternalReferenceType... values) { if (values!= null) { for (ExternalReferenceType value: values) { getExternalReference().add(value); } } return this; } public AbstractCityObjectType withExternalReference(Collection values) { if (values!= null) { getExternalReference().addAll(values); } return this; } public AbstractCityObjectType withGeneralizesTo(GeneralizationRelationType... values) { if (values!= null) { for (GeneralizationRelationType value: values) { getGeneralizesTo().add(value); } } return this; } public AbstractCityObjectType withGeneralizesTo(Collection values) { if (values!= null) { getGeneralizesTo().addAll(values); } return this; } public AbstractCityObjectType withRelativeToTerrain(RelativeToTerrainType value) { setRelativeToTerrain(value); return this; } public AbstractCityObjectType withRelativeToWater(RelativeToWaterType value) { setRelativeToWater(value); return this; } public AbstractCityObjectType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) { if (values!= null) { for (JAXBElement value: values) { getGenericApplicationPropertyOfCityObject().add(value); } } return this; } public AbstractCityObjectType withGenericApplicationPropertyOfCityObject(Collection> values) { if (values!= null) { getGenericApplicationPropertyOfCityObject().addAll(values); } return this; } public AbstractCityObjectType withExternalReference(List value) { setExternalReference(value); return this; } public AbstractCityObjectType withGeneralizesTo(List value) { setGeneralizesTo(value); return this; } public AbstractCityObjectType withGenericApplicationPropertyOfCityObject(List> value) { setGenericApplicationPropertyOfCityObject(value); return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy