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.bridge.v_2_0.AbstractBoundarySurfaceType 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.bridge.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 net.opengis.gml.v_3_1_1.MultiSurfacePropertyType;
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;
/**
* A BoundarySurface is a thematic object which classifies surfaces bounding an _AbstractBridge,
* BridgeInstallation, IntBuildingInstallation, BridgeConstructionElement, and BridgeRoom. The geometry of a BoundarySurface
* is given by MultiSurfaces. As it is a subclass of _CityObject, it inherits all atributes and relations, in particular the
* external references, the generic attributes, and the generalization relations.
*
* Java class for AbstractBoundarySurfaceType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="AbstractBoundarySurfaceType">
* <complexContent>
* <extension base="{http://www.opengis.net/citygml/2.0}AbstractCityObjectType">
* <sequence>
* <element name="lod2MultiSurface" type="{http://www.opengis.net/gml}MultiSurfacePropertyType" minOccurs="0"/>
* <element name="lod3MultiSurface" type="{http://www.opengis.net/gml}MultiSurfacePropertyType" minOccurs="0"/>
* <element name="lod4MultiSurface" type="{http://www.opengis.net/gml}MultiSurfacePropertyType" minOccurs="0"/>
* <element name="opening" type="{http://www.opengis.net/citygml/bridge/2.0}OpeningPropertyType" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.opengis.net/citygml/bridge/2.0}_GenericApplicationPropertyOfBoundarySurface" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractBoundarySurfaceType", propOrder = {
"lod2MultiSurface",
"lod3MultiSurface",
"lod4MultiSurface",
"opening",
"genericApplicationPropertyOfBoundarySurface"
})
@XmlSeeAlso({
RoofSurfaceType.class,
WallSurfaceType.class,
GroundSurfaceType.class,
ClosureSurfaceType.class,
OuterFloorSurfaceType.class,
OuterCeilingSurfaceType.class,
FloorSurfaceType.class,
InteriorWallSurfaceType.class,
CeilingSurfaceType.class
})
public abstract class AbstractBoundarySurfaceType
extends AbstractCityObjectType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
protected MultiSurfacePropertyType lod2MultiSurface;
protected MultiSurfacePropertyType lod3MultiSurface;
protected MultiSurfacePropertyType lod4MultiSurface;
protected List opening;
@XmlElement(name = "_GenericApplicationPropertyOfBoundarySurface")
protected List genericApplicationPropertyOfBoundarySurface;
/**
* Gets the value of the lod2MultiSurface property.
*
* @return
* possible object is
* {@link MultiSurfacePropertyType }
*
*/
public MultiSurfacePropertyType getLod2MultiSurface() {
return lod2MultiSurface;
}
/**
* Sets the value of the lod2MultiSurface property.
*
* @param value
* allowed object is
* {@link MultiSurfacePropertyType }
*
*/
public void setLod2MultiSurface(MultiSurfacePropertyType value) {
this.lod2MultiSurface = value;
}
public boolean isSetLod2MultiSurface() {
return (this.lod2MultiSurface!= null);
}
/**
* Gets the value of the lod3MultiSurface property.
*
* @return
* possible object is
* {@link MultiSurfacePropertyType }
*
*/
public MultiSurfacePropertyType getLod3MultiSurface() {
return lod3MultiSurface;
}
/**
* Sets the value of the lod3MultiSurface property.
*
* @param value
* allowed object is
* {@link MultiSurfacePropertyType }
*
*/
public void setLod3MultiSurface(MultiSurfacePropertyType value) {
this.lod3MultiSurface = value;
}
public boolean isSetLod3MultiSurface() {
return (this.lod3MultiSurface!= null);
}
/**
* Gets the value of the lod4MultiSurface property.
*
* @return
* possible object is
* {@link MultiSurfacePropertyType }
*
*/
public MultiSurfacePropertyType getLod4MultiSurface() {
return lod4MultiSurface;
}
/**
* Sets the value of the lod4MultiSurface property.
*
* @param value
* allowed object is
* {@link MultiSurfacePropertyType }
*
*/
public void setLod4MultiSurface(MultiSurfacePropertyType value) {
this.lod4MultiSurface = value;
}
public boolean isSetLod4MultiSurface() {
return (this.lod4MultiSurface!= null);
}
/**
* Gets the value of the opening 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 opening property.
*
*
* For example, to add a new item, do as follows:
*
* getOpening().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link OpeningPropertyType }
*
*
*/
public List getOpening() {
if (opening == null) {
opening = new ArrayList();
}
return this.opening;
}
public boolean isSetOpening() {
return ((this.opening!= null)&&(!this.opening.isEmpty()));
}
public void unsetOpening() {
this.opening = null;
}
/**
* Gets the value of the genericApplicationPropertyOfBoundarySurface 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 genericApplicationPropertyOfBoundarySurface property.
*
*
* For example, to add a new item, do as follows:
*
* getGenericApplicationPropertyOfBoundarySurface().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List getGenericApplicationPropertyOfBoundarySurface() {
if (genericApplicationPropertyOfBoundarySurface == null) {
genericApplicationPropertyOfBoundarySurface = new ArrayList();
}
return this.genericApplicationPropertyOfBoundarySurface;
}
public boolean isSetGenericApplicationPropertyOfBoundarySurface() {
return ((this.genericApplicationPropertyOfBoundarySurface!= null)&&(!this.genericApplicationPropertyOfBoundarySurface.isEmpty()));
}
public void unsetGenericApplicationPropertyOfBoundarySurface() {
this.genericApplicationPropertyOfBoundarySurface = 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);
{
MultiSurfacePropertyType theLod2MultiSurface;
theLod2MultiSurface = this.getLod2MultiSurface();
strategy.appendField(locator, this, "lod2MultiSurface", buffer, theLod2MultiSurface, this.isSetLod2MultiSurface());
}
{
MultiSurfacePropertyType theLod3MultiSurface;
theLod3MultiSurface = this.getLod3MultiSurface();
strategy.appendField(locator, this, "lod3MultiSurface", buffer, theLod3MultiSurface, this.isSetLod3MultiSurface());
}
{
MultiSurfacePropertyType theLod4MultiSurface;
theLod4MultiSurface = this.getLod4MultiSurface();
strategy.appendField(locator, this, "lod4MultiSurface", buffer, theLod4MultiSurface, this.isSetLod4MultiSurface());
}
{
List theOpening;
theOpening = (this.isSetOpening()?this.getOpening():null);
strategy.appendField(locator, this, "opening", buffer, theOpening, this.isSetOpening());
}
{
List theGenericApplicationPropertyOfBoundarySurface;
theGenericApplicationPropertyOfBoundarySurface = (this.isSetGenericApplicationPropertyOfBoundarySurface()?this.getGenericApplicationPropertyOfBoundarySurface():null);
strategy.appendField(locator, this, "genericApplicationPropertyOfBoundarySurface", buffer, theGenericApplicationPropertyOfBoundarySurface, this.isSetGenericApplicationPropertyOfBoundarySurface());
}
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 AbstractBoundarySurfaceType that = ((AbstractBoundarySurfaceType) object);
{
MultiSurfacePropertyType lhsLod2MultiSurface;
lhsLod2MultiSurface = this.getLod2MultiSurface();
MultiSurfacePropertyType rhsLod2MultiSurface;
rhsLod2MultiSurface = that.getLod2MultiSurface();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod2MultiSurface", lhsLod2MultiSurface), LocatorUtils.property(thatLocator, "lod2MultiSurface", rhsLod2MultiSurface), lhsLod2MultiSurface, rhsLod2MultiSurface, this.isSetLod2MultiSurface(), that.isSetLod2MultiSurface())) {
return false;
}
}
{
MultiSurfacePropertyType lhsLod3MultiSurface;
lhsLod3MultiSurface = this.getLod3MultiSurface();
MultiSurfacePropertyType rhsLod3MultiSurface;
rhsLod3MultiSurface = that.getLod3MultiSurface();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod3MultiSurface", lhsLod3MultiSurface), LocatorUtils.property(thatLocator, "lod3MultiSurface", rhsLod3MultiSurface), lhsLod3MultiSurface, rhsLod3MultiSurface, this.isSetLod3MultiSurface(), that.isSetLod3MultiSurface())) {
return false;
}
}
{
MultiSurfacePropertyType lhsLod4MultiSurface;
lhsLod4MultiSurface = this.getLod4MultiSurface();
MultiSurfacePropertyType rhsLod4MultiSurface;
rhsLod4MultiSurface = that.getLod4MultiSurface();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod4MultiSurface", lhsLod4MultiSurface), LocatorUtils.property(thatLocator, "lod4MultiSurface", rhsLod4MultiSurface), lhsLod4MultiSurface, rhsLod4MultiSurface, this.isSetLod4MultiSurface(), that.isSetLod4MultiSurface())) {
return false;
}
}
{
List lhsOpening;
lhsOpening = (this.isSetOpening()?this.getOpening():null);
List rhsOpening;
rhsOpening = (that.isSetOpening()?that.getOpening():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "opening", lhsOpening), LocatorUtils.property(thatLocator, "opening", rhsOpening), lhsOpening, rhsOpening, this.isSetOpening(), that.isSetOpening())) {
return false;
}
}
{
List lhsGenericApplicationPropertyOfBoundarySurface;
lhsGenericApplicationPropertyOfBoundarySurface = (this.isSetGenericApplicationPropertyOfBoundarySurface()?this.getGenericApplicationPropertyOfBoundarySurface():null);
List rhsGenericApplicationPropertyOfBoundarySurface;
rhsGenericApplicationPropertyOfBoundarySurface = (that.isSetGenericApplicationPropertyOfBoundarySurface()?that.getGenericApplicationPropertyOfBoundarySurface():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfBoundarySurface", lhsGenericApplicationPropertyOfBoundarySurface), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfBoundarySurface", rhsGenericApplicationPropertyOfBoundarySurface), lhsGenericApplicationPropertyOfBoundarySurface, rhsGenericApplicationPropertyOfBoundarySurface, this.isSetGenericApplicationPropertyOfBoundarySurface(), that.isSetGenericApplicationPropertyOfBoundarySurface())) {
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);
{
MultiSurfacePropertyType theLod2MultiSurface;
theLod2MultiSurface = this.getLod2MultiSurface();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod2MultiSurface", theLod2MultiSurface), currentHashCode, theLod2MultiSurface, this.isSetLod2MultiSurface());
}
{
MultiSurfacePropertyType theLod3MultiSurface;
theLod3MultiSurface = this.getLod3MultiSurface();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod3MultiSurface", theLod3MultiSurface), currentHashCode, theLod3MultiSurface, this.isSetLod3MultiSurface());
}
{
MultiSurfacePropertyType theLod4MultiSurface;
theLod4MultiSurface = this.getLod4MultiSurface();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod4MultiSurface", theLod4MultiSurface), currentHashCode, theLod4MultiSurface, this.isSetLod4MultiSurface());
}
{
List theOpening;
theOpening = (this.isSetOpening()?this.getOpening():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "opening", theOpening), currentHashCode, theOpening, this.isSetOpening());
}
{
List theGenericApplicationPropertyOfBoundarySurface;
theGenericApplicationPropertyOfBoundarySurface = (this.isSetGenericApplicationPropertyOfBoundarySurface()?this.getGenericApplicationPropertyOfBoundarySurface():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfBoundarySurface", theGenericApplicationPropertyOfBoundarySurface), currentHashCode, theGenericApplicationPropertyOfBoundarySurface, this.isSetGenericApplicationPropertyOfBoundarySurface());
}
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 AbstractBoundarySurfaceType) {
final AbstractBoundarySurfaceType copy = ((AbstractBoundarySurfaceType) target);
{
Boolean lod2MultiSurfaceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod2MultiSurface());
if (lod2MultiSurfaceShouldBeCopiedAndSet == Boolean.TRUE) {
MultiSurfacePropertyType sourceLod2MultiSurface;
sourceLod2MultiSurface = this.getLod2MultiSurface();
MultiSurfacePropertyType copyLod2MultiSurface = ((MultiSurfacePropertyType) strategy.copy(LocatorUtils.property(locator, "lod2MultiSurface", sourceLod2MultiSurface), sourceLod2MultiSurface, this.isSetLod2MultiSurface()));
copy.setLod2MultiSurface(copyLod2MultiSurface);
} else {
if (lod2MultiSurfaceShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod2MultiSurface = null;
}
}
}
{
Boolean lod3MultiSurfaceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod3MultiSurface());
if (lod3MultiSurfaceShouldBeCopiedAndSet == Boolean.TRUE) {
MultiSurfacePropertyType sourceLod3MultiSurface;
sourceLod3MultiSurface = this.getLod3MultiSurface();
MultiSurfacePropertyType copyLod3MultiSurface = ((MultiSurfacePropertyType) strategy.copy(LocatorUtils.property(locator, "lod3MultiSurface", sourceLod3MultiSurface), sourceLod3MultiSurface, this.isSetLod3MultiSurface()));
copy.setLod3MultiSurface(copyLod3MultiSurface);
} else {
if (lod3MultiSurfaceShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod3MultiSurface = null;
}
}
}
{
Boolean lod4MultiSurfaceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod4MultiSurface());
if (lod4MultiSurfaceShouldBeCopiedAndSet == Boolean.TRUE) {
MultiSurfacePropertyType sourceLod4MultiSurface;
sourceLod4MultiSurface = this.getLod4MultiSurface();
MultiSurfacePropertyType copyLod4MultiSurface = ((MultiSurfacePropertyType) strategy.copy(LocatorUtils.property(locator, "lod4MultiSurface", sourceLod4MultiSurface), sourceLod4MultiSurface, this.isSetLod4MultiSurface()));
copy.setLod4MultiSurface(copyLod4MultiSurface);
} else {
if (lod4MultiSurfaceShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod4MultiSurface = null;
}
}
}
{
Boolean openingShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetOpening());
if (openingShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceOpening;
sourceOpening = (this.isSetOpening()?this.getOpening():null);
@SuppressWarnings("unchecked")
List copyOpening = ((List ) strategy.copy(LocatorUtils.property(locator, "opening", sourceOpening), sourceOpening, this.isSetOpening()));
copy.unsetOpening();
if (copyOpening!= null) {
List uniqueOpeningl = copy.getOpening();
uniqueOpeningl.addAll(copyOpening);
}
} else {
if (openingShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetOpening();
}
}
}
{
Boolean genericApplicationPropertyOfBoundarySurfaceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfBoundarySurface());
if (genericApplicationPropertyOfBoundarySurfaceShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGenericApplicationPropertyOfBoundarySurface;
sourceGenericApplicationPropertyOfBoundarySurface = (this.isSetGenericApplicationPropertyOfBoundarySurface()?this.getGenericApplicationPropertyOfBoundarySurface():null);
@SuppressWarnings("unchecked")
List copyGenericApplicationPropertyOfBoundarySurface = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfBoundarySurface", sourceGenericApplicationPropertyOfBoundarySurface), sourceGenericApplicationPropertyOfBoundarySurface, this.isSetGenericApplicationPropertyOfBoundarySurface()));
copy.unsetGenericApplicationPropertyOfBoundarySurface();
if (copyGenericApplicationPropertyOfBoundarySurface!= null) {
List uniqueGenericApplicationPropertyOfBoundarySurfacel = copy.getGenericApplicationPropertyOfBoundarySurface();
uniqueGenericApplicationPropertyOfBoundarySurfacel.addAll(copyGenericApplicationPropertyOfBoundarySurface);
}
} else {
if (genericApplicationPropertyOfBoundarySurfaceShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetGenericApplicationPropertyOfBoundarySurface();
}
}
}
}
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 AbstractBoundarySurfaceType) {
final AbstractBoundarySurfaceType target = this;
final AbstractBoundarySurfaceType leftObject = ((AbstractBoundarySurfaceType) left);
final AbstractBoundarySurfaceType rightObject = ((AbstractBoundarySurfaceType) right);
{
Boolean lod2MultiSurfaceShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod2MultiSurface(), rightObject.isSetLod2MultiSurface());
if (lod2MultiSurfaceShouldBeMergedAndSet == Boolean.TRUE) {
MultiSurfacePropertyType lhsLod2MultiSurface;
lhsLod2MultiSurface = leftObject.getLod2MultiSurface();
MultiSurfacePropertyType rhsLod2MultiSurface;
rhsLod2MultiSurface = rightObject.getLod2MultiSurface();
MultiSurfacePropertyType mergedLod2MultiSurface = ((MultiSurfacePropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod2MultiSurface", lhsLod2MultiSurface), LocatorUtils.property(rightLocator, "lod2MultiSurface", rhsLod2MultiSurface), lhsLod2MultiSurface, rhsLod2MultiSurface, leftObject.isSetLod2MultiSurface(), rightObject.isSetLod2MultiSurface()));
target.setLod2MultiSurface(mergedLod2MultiSurface);
} else {
if (lod2MultiSurfaceShouldBeMergedAndSet == Boolean.FALSE) {
target.lod2MultiSurface = null;
}
}
}
{
Boolean lod3MultiSurfaceShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod3MultiSurface(), rightObject.isSetLod3MultiSurface());
if (lod3MultiSurfaceShouldBeMergedAndSet == Boolean.TRUE) {
MultiSurfacePropertyType lhsLod3MultiSurface;
lhsLod3MultiSurface = leftObject.getLod3MultiSurface();
MultiSurfacePropertyType rhsLod3MultiSurface;
rhsLod3MultiSurface = rightObject.getLod3MultiSurface();
MultiSurfacePropertyType mergedLod3MultiSurface = ((MultiSurfacePropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod3MultiSurface", lhsLod3MultiSurface), LocatorUtils.property(rightLocator, "lod3MultiSurface", rhsLod3MultiSurface), lhsLod3MultiSurface, rhsLod3MultiSurface, leftObject.isSetLod3MultiSurface(), rightObject.isSetLod3MultiSurface()));
target.setLod3MultiSurface(mergedLod3MultiSurface);
} else {
if (lod3MultiSurfaceShouldBeMergedAndSet == Boolean.FALSE) {
target.lod3MultiSurface = null;
}
}
}
{
Boolean lod4MultiSurfaceShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod4MultiSurface(), rightObject.isSetLod4MultiSurface());
if (lod4MultiSurfaceShouldBeMergedAndSet == Boolean.TRUE) {
MultiSurfacePropertyType lhsLod4MultiSurface;
lhsLod4MultiSurface = leftObject.getLod4MultiSurface();
MultiSurfacePropertyType rhsLod4MultiSurface;
rhsLod4MultiSurface = rightObject.getLod4MultiSurface();
MultiSurfacePropertyType mergedLod4MultiSurface = ((MultiSurfacePropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod4MultiSurface", lhsLod4MultiSurface), LocatorUtils.property(rightLocator, "lod4MultiSurface", rhsLod4MultiSurface), lhsLod4MultiSurface, rhsLod4MultiSurface, leftObject.isSetLod4MultiSurface(), rightObject.isSetLod4MultiSurface()));
target.setLod4MultiSurface(mergedLod4MultiSurface);
} else {
if (lod4MultiSurfaceShouldBeMergedAndSet == Boolean.FALSE) {
target.lod4MultiSurface = null;
}
}
}
{
Boolean openingShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetOpening(), rightObject.isSetOpening());
if (openingShouldBeMergedAndSet == Boolean.TRUE) {
List lhsOpening;
lhsOpening = (leftObject.isSetOpening()?leftObject.getOpening():null);
List rhsOpening;
rhsOpening = (rightObject.isSetOpening()?rightObject.getOpening():null);
List mergedOpening = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "opening", lhsOpening), LocatorUtils.property(rightLocator, "opening", rhsOpening), lhsOpening, rhsOpening, leftObject.isSetOpening(), rightObject.isSetOpening()));
target.unsetOpening();
if (mergedOpening!= null) {
List uniqueOpeningl = target.getOpening();
uniqueOpeningl.addAll(mergedOpening);
}
} else {
if (openingShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetOpening();
}
}
}
{
Boolean genericApplicationPropertyOfBoundarySurfaceShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfBoundarySurface(), rightObject.isSetGenericApplicationPropertyOfBoundarySurface());
if (genericApplicationPropertyOfBoundarySurfaceShouldBeMergedAndSet == Boolean.TRUE) {
List lhsGenericApplicationPropertyOfBoundarySurface;
lhsGenericApplicationPropertyOfBoundarySurface = (leftObject.isSetGenericApplicationPropertyOfBoundarySurface()?leftObject.getGenericApplicationPropertyOfBoundarySurface():null);
List rhsGenericApplicationPropertyOfBoundarySurface;
rhsGenericApplicationPropertyOfBoundarySurface = (rightObject.isSetGenericApplicationPropertyOfBoundarySurface()?rightObject.getGenericApplicationPropertyOfBoundarySurface():null);
List mergedGenericApplicationPropertyOfBoundarySurface = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfBoundarySurface", lhsGenericApplicationPropertyOfBoundarySurface), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfBoundarySurface", rhsGenericApplicationPropertyOfBoundarySurface), lhsGenericApplicationPropertyOfBoundarySurface, rhsGenericApplicationPropertyOfBoundarySurface, leftObject.isSetGenericApplicationPropertyOfBoundarySurface(), rightObject.isSetGenericApplicationPropertyOfBoundarySurface()));
target.unsetGenericApplicationPropertyOfBoundarySurface();
if (mergedGenericApplicationPropertyOfBoundarySurface!= null) {
List uniqueGenericApplicationPropertyOfBoundarySurfacel = target.getGenericApplicationPropertyOfBoundarySurface();
uniqueGenericApplicationPropertyOfBoundarySurfacel.addAll(mergedGenericApplicationPropertyOfBoundarySurface);
}
} else {
if (genericApplicationPropertyOfBoundarySurfaceShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetGenericApplicationPropertyOfBoundarySurface();
}
}
}
}
}
public void setOpening(List value) {
this.opening = null;
if (value!= null) {
List draftl = this.getOpening();
draftl.addAll(value);
}
}
public void setGenericApplicationPropertyOfBoundarySurface(List value) {
this.genericApplicationPropertyOfBoundarySurface = null;
if (value!= null) {
List draftl = this.getGenericApplicationPropertyOfBoundarySurface();
draftl.addAll(value);
}
}
public AbstractBoundarySurfaceType withLod2MultiSurface(MultiSurfacePropertyType value) {
setLod2MultiSurface(value);
return this;
}
public AbstractBoundarySurfaceType withLod3MultiSurface(MultiSurfacePropertyType value) {
setLod3MultiSurface(value);
return this;
}
public AbstractBoundarySurfaceType withLod4MultiSurface(MultiSurfacePropertyType value) {
setLod4MultiSurface(value);
return this;
}
public AbstractBoundarySurfaceType withOpening(OpeningPropertyType... values) {
if (values!= null) {
for (OpeningPropertyType value: values) {
getOpening().add(value);
}
}
return this;
}
public AbstractBoundarySurfaceType withOpening(Collection values) {
if (values!= null) {
getOpening().addAll(values);
}
return this;
}
public AbstractBoundarySurfaceType withGenericApplicationPropertyOfBoundarySurface(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfBoundarySurface().add(value);
}
}
return this;
}
public AbstractBoundarySurfaceType withGenericApplicationPropertyOfBoundarySurface(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfBoundarySurface().addAll(values);
}
return this;
}
public AbstractBoundarySurfaceType withOpening(List value) {
setOpening(value);
return this;
}
public AbstractBoundarySurfaceType withGenericApplicationPropertyOfBoundarySurface(List value) {
setGenericApplicationPropertyOfBoundarySurface(value);
return this;
}
@Override
public AbstractBoundarySurfaceType withCreationDate(XMLGregorianCalendar value) {
setCreationDate(value);
return this;
}
@Override
public AbstractBoundarySurfaceType withTerminationDate(XMLGregorianCalendar value) {
setTerminationDate(value);
return this;
}
@Override
public AbstractBoundarySurfaceType withExternalReference(ExternalReferenceType... values) {
if (values!= null) {
for (ExternalReferenceType value: values) {
getExternalReference().add(value);
}
}
return this;
}
@Override
public AbstractBoundarySurfaceType withExternalReference(Collection values) {
if (values!= null) {
getExternalReference().addAll(values);
}
return this;
}
@Override
public AbstractBoundarySurfaceType withGeneralizesTo(GeneralizationRelationType... values) {
if (values!= null) {
for (GeneralizationRelationType value: values) {
getGeneralizesTo().add(value);
}
}
return this;
}
@Override
public AbstractBoundarySurfaceType withGeneralizesTo(Collection values) {
if (values!= null) {
getGeneralizesTo().addAll(values);
}
return this;
}
@Override
public AbstractBoundarySurfaceType withRelativeToTerrain(RelativeToTerrainType value) {
setRelativeToTerrain(value);
return this;
}
@Override
public AbstractBoundarySurfaceType withRelativeToWater(RelativeToWaterType value) {
setRelativeToWater(value);
return this;
}
@Override
public AbstractBoundarySurfaceType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) {
if (values!= null) {
for (JAXBElement value: values) {
getGenericApplicationPropertyOfCityObject().add(value);
}
}
return this;
}
@Override
public AbstractBoundarySurfaceType withGenericApplicationPropertyOfCityObject(Collection> values) {
if (values!= null) {
getGenericApplicationPropertyOfCityObject().addAll(values);
}
return this;
}
@Override
public AbstractBoundarySurfaceType withExternalReference(List value) {
setExternalReference(value);
return this;
}
@Override
public AbstractBoundarySurfaceType withGeneralizesTo(List value) {
setGeneralizesTo(value);
return this;
}
@Override
public AbstractBoundarySurfaceType withGenericApplicationPropertyOfCityObject(List> value) {
setGenericApplicationPropertyOfCityObject(value);
return this;
}
}