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.BridgeFurnitureType 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.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.ImplicitRepresentationPropertyType;
import net.opengis.citygml.v_2_0.RelativeToTerrainType;
import net.opengis.citygml.v_2_0.RelativeToWaterType;
import net.opengis.gml.v_3_1_1.CodeType;
import net.opengis.gml.v_3_1_1.GeometryPropertyType;
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 for bridge furnitures. As subclass of _CityObject, a BridgeFurniture inherits all attributes and
* relations, in particular an id, names, external references, generic attributes and generalization relations.
*
*
* Java class for BridgeFurnitureType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="BridgeFurnitureType">
* <complexContent>
* <extension base="{http://www.opengis.net/citygml/2.0}AbstractCityObjectType">
* <sequence>
* <element name="class" type="{http://www.opengis.net/gml}CodeType" minOccurs="0"/>
* <element name="function" type="{http://www.opengis.net/gml}CodeType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="usage" type="{http://www.opengis.net/gml}CodeType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="lod4Geometry" type="{http://www.opengis.net/gml}GeometryPropertyType" minOccurs="0"/>
* <element name="lod4ImplicitRepresentation" type="{http://www.opengis.net/citygml/2.0}ImplicitRepresentationPropertyType" minOccurs="0"/>
* <element ref="{http://www.opengis.net/citygml/bridge/2.0}_GenericApplicationPropertyOfBridgeFurniture" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BridgeFurnitureType", propOrder = {
"clazz",
"function",
"usage",
"lod4Geometry",
"lod4ImplicitRepresentation",
"genericApplicationPropertyOfBridgeFurniture"
})
public class BridgeFurnitureType
extends AbstractCityObjectType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(name = "class")
protected CodeType clazz;
protected List function;
protected List usage;
protected GeometryPropertyType lod4Geometry;
protected ImplicitRepresentationPropertyType lod4ImplicitRepresentation;
@XmlElement(name = "_GenericApplicationPropertyOfBridgeFurniture")
protected List genericApplicationPropertyOfBridgeFurniture;
/**
* Gets the value of the clazz property.
*
* @return
* possible object is
* {@link CodeType }
*
*/
public CodeType getClazz() {
return clazz;
}
/**
* Sets the value of the clazz property.
*
* @param value
* allowed object is
* {@link CodeType }
*
*/
public void setClazz(CodeType value) {
this.clazz = value;
}
public boolean isSetClazz() {
return (this.clazz!= null);
}
/**
* Gets the value of the function 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 function property.
*
*
* For example, to add a new item, do as follows:
*
* getFunction().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CodeType }
*
*
*/
public List getFunction() {
if (function == null) {
function = new ArrayList();
}
return this.function;
}
public boolean isSetFunction() {
return ((this.function!= null)&&(!this.function.isEmpty()));
}
public void unsetFunction() {
this.function = null;
}
/**
* Gets the value of the usage 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 usage property.
*
*
* For example, to add a new item, do as follows:
*
* getUsage().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CodeType }
*
*
*/
public List getUsage() {
if (usage == null) {
usage = new ArrayList();
}
return this.usage;
}
public boolean isSetUsage() {
return ((this.usage!= null)&&(!this.usage.isEmpty()));
}
public void unsetUsage() {
this.usage = null;
}
/**
* Gets the value of the lod4Geometry property.
*
* @return
* possible object is
* {@link GeometryPropertyType }
*
*/
public GeometryPropertyType getLod4Geometry() {
return lod4Geometry;
}
/**
* Sets the value of the lod4Geometry property.
*
* @param value
* allowed object is
* {@link GeometryPropertyType }
*
*/
public void setLod4Geometry(GeometryPropertyType value) {
this.lod4Geometry = value;
}
public boolean isSetLod4Geometry() {
return (this.lod4Geometry!= null);
}
/**
* Gets the value of the lod4ImplicitRepresentation property.
*
* @return
* possible object is
* {@link ImplicitRepresentationPropertyType }
*
*/
public ImplicitRepresentationPropertyType getLod4ImplicitRepresentation() {
return lod4ImplicitRepresentation;
}
/**
* Sets the value of the lod4ImplicitRepresentation property.
*
* @param value
* allowed object is
* {@link ImplicitRepresentationPropertyType }
*
*/
public void setLod4ImplicitRepresentation(ImplicitRepresentationPropertyType value) {
this.lod4ImplicitRepresentation = value;
}
public boolean isSetLod4ImplicitRepresentation() {
return (this.lod4ImplicitRepresentation!= null);
}
/**
* Gets the value of the genericApplicationPropertyOfBridgeFurniture 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 genericApplicationPropertyOfBridgeFurniture property.
*
*
* For example, to add a new item, do as follows:
*
* getGenericApplicationPropertyOfBridgeFurniture().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List getGenericApplicationPropertyOfBridgeFurniture() {
if (genericApplicationPropertyOfBridgeFurniture == null) {
genericApplicationPropertyOfBridgeFurniture = new ArrayList();
}
return this.genericApplicationPropertyOfBridgeFurniture;
}
public boolean isSetGenericApplicationPropertyOfBridgeFurniture() {
return ((this.genericApplicationPropertyOfBridgeFurniture!= null)&&(!this.genericApplicationPropertyOfBridgeFurniture.isEmpty()));
}
public void unsetGenericApplicationPropertyOfBridgeFurniture() {
this.genericApplicationPropertyOfBridgeFurniture = 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);
{
CodeType theClazz;
theClazz = this.getClazz();
strategy.appendField(locator, this, "clazz", buffer, theClazz, this.isSetClazz());
}
{
List theFunction;
theFunction = (this.isSetFunction()?this.getFunction():null);
strategy.appendField(locator, this, "function", buffer, theFunction, this.isSetFunction());
}
{
List theUsage;
theUsage = (this.isSetUsage()?this.getUsage():null);
strategy.appendField(locator, this, "usage", buffer, theUsage, this.isSetUsage());
}
{
GeometryPropertyType theLod4Geometry;
theLod4Geometry = this.getLod4Geometry();
strategy.appendField(locator, this, "lod4Geometry", buffer, theLod4Geometry, this.isSetLod4Geometry());
}
{
ImplicitRepresentationPropertyType theLod4ImplicitRepresentation;
theLod4ImplicitRepresentation = this.getLod4ImplicitRepresentation();
strategy.appendField(locator, this, "lod4ImplicitRepresentation", buffer, theLod4ImplicitRepresentation, this.isSetLod4ImplicitRepresentation());
}
{
List theGenericApplicationPropertyOfBridgeFurniture;
theGenericApplicationPropertyOfBridgeFurniture = (this.isSetGenericApplicationPropertyOfBridgeFurniture()?this.getGenericApplicationPropertyOfBridgeFurniture():null);
strategy.appendField(locator, this, "genericApplicationPropertyOfBridgeFurniture", buffer, theGenericApplicationPropertyOfBridgeFurniture, this.isSetGenericApplicationPropertyOfBridgeFurniture());
}
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 BridgeFurnitureType that = ((BridgeFurnitureType) object);
{
CodeType lhsClazz;
lhsClazz = this.getClazz();
CodeType rhsClazz;
rhsClazz = that.getClazz();
if (!strategy.equals(LocatorUtils.property(thisLocator, "clazz", lhsClazz), LocatorUtils.property(thatLocator, "clazz", rhsClazz), lhsClazz, rhsClazz, this.isSetClazz(), that.isSetClazz())) {
return false;
}
}
{
List lhsFunction;
lhsFunction = (this.isSetFunction()?this.getFunction():null);
List rhsFunction;
rhsFunction = (that.isSetFunction()?that.getFunction():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "function", lhsFunction), LocatorUtils.property(thatLocator, "function", rhsFunction), lhsFunction, rhsFunction, this.isSetFunction(), that.isSetFunction())) {
return false;
}
}
{
List lhsUsage;
lhsUsage = (this.isSetUsage()?this.getUsage():null);
List rhsUsage;
rhsUsage = (that.isSetUsage()?that.getUsage():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "usage", lhsUsage), LocatorUtils.property(thatLocator, "usage", rhsUsage), lhsUsage, rhsUsage, this.isSetUsage(), that.isSetUsage())) {
return false;
}
}
{
GeometryPropertyType lhsLod4Geometry;
lhsLod4Geometry = this.getLod4Geometry();
GeometryPropertyType rhsLod4Geometry;
rhsLod4Geometry = that.getLod4Geometry();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod4Geometry", lhsLod4Geometry), LocatorUtils.property(thatLocator, "lod4Geometry", rhsLod4Geometry), lhsLod4Geometry, rhsLod4Geometry, this.isSetLod4Geometry(), that.isSetLod4Geometry())) {
return false;
}
}
{
ImplicitRepresentationPropertyType lhsLod4ImplicitRepresentation;
lhsLod4ImplicitRepresentation = this.getLod4ImplicitRepresentation();
ImplicitRepresentationPropertyType rhsLod4ImplicitRepresentation;
rhsLod4ImplicitRepresentation = that.getLod4ImplicitRepresentation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod4ImplicitRepresentation", lhsLod4ImplicitRepresentation), LocatorUtils.property(thatLocator, "lod4ImplicitRepresentation", rhsLod4ImplicitRepresentation), lhsLod4ImplicitRepresentation, rhsLod4ImplicitRepresentation, this.isSetLod4ImplicitRepresentation(), that.isSetLod4ImplicitRepresentation())) {
return false;
}
}
{
List lhsGenericApplicationPropertyOfBridgeFurniture;
lhsGenericApplicationPropertyOfBridgeFurniture = (this.isSetGenericApplicationPropertyOfBridgeFurniture()?this.getGenericApplicationPropertyOfBridgeFurniture():null);
List rhsGenericApplicationPropertyOfBridgeFurniture;
rhsGenericApplicationPropertyOfBridgeFurniture = (that.isSetGenericApplicationPropertyOfBridgeFurniture()?that.getGenericApplicationPropertyOfBridgeFurniture():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfBridgeFurniture", lhsGenericApplicationPropertyOfBridgeFurniture), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfBridgeFurniture", rhsGenericApplicationPropertyOfBridgeFurniture), lhsGenericApplicationPropertyOfBridgeFurniture, rhsGenericApplicationPropertyOfBridgeFurniture, this.isSetGenericApplicationPropertyOfBridgeFurniture(), that.isSetGenericApplicationPropertyOfBridgeFurniture())) {
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);
{
CodeType theClazz;
theClazz = this.getClazz();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "clazz", theClazz), currentHashCode, theClazz, this.isSetClazz());
}
{
List theFunction;
theFunction = (this.isSetFunction()?this.getFunction():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "function", theFunction), currentHashCode, theFunction, this.isSetFunction());
}
{
List theUsage;
theUsage = (this.isSetUsage()?this.getUsage():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "usage", theUsage), currentHashCode, theUsage, this.isSetUsage());
}
{
GeometryPropertyType theLod4Geometry;
theLod4Geometry = this.getLod4Geometry();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod4Geometry", theLod4Geometry), currentHashCode, theLod4Geometry, this.isSetLod4Geometry());
}
{
ImplicitRepresentationPropertyType theLod4ImplicitRepresentation;
theLod4ImplicitRepresentation = this.getLod4ImplicitRepresentation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod4ImplicitRepresentation", theLod4ImplicitRepresentation), currentHashCode, theLod4ImplicitRepresentation, this.isSetLod4ImplicitRepresentation());
}
{
List theGenericApplicationPropertyOfBridgeFurniture;
theGenericApplicationPropertyOfBridgeFurniture = (this.isSetGenericApplicationPropertyOfBridgeFurniture()?this.getGenericApplicationPropertyOfBridgeFurniture():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfBridgeFurniture", theGenericApplicationPropertyOfBridgeFurniture), currentHashCode, theGenericApplicationPropertyOfBridgeFurniture, this.isSetGenericApplicationPropertyOfBridgeFurniture());
}
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 BridgeFurnitureType) {
final BridgeFurnitureType copy = ((BridgeFurnitureType) draftCopy);
{
Boolean clazzShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetClazz());
if (clazzShouldBeCopiedAndSet == Boolean.TRUE) {
CodeType sourceClazz;
sourceClazz = this.getClazz();
CodeType copyClazz = ((CodeType) strategy.copy(LocatorUtils.property(locator, "clazz", sourceClazz), sourceClazz, this.isSetClazz()));
copy.setClazz(copyClazz);
} else {
if (clazzShouldBeCopiedAndSet == Boolean.FALSE) {
copy.clazz = null;
}
}
}
{
Boolean functionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetFunction());
if (functionShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceFunction;
sourceFunction = (this.isSetFunction()?this.getFunction():null);
@SuppressWarnings("unchecked")
List copyFunction = ((List ) strategy.copy(LocatorUtils.property(locator, "function", sourceFunction), sourceFunction, this.isSetFunction()));
copy.unsetFunction();
if (copyFunction!= null) {
List uniqueFunctionl = copy.getFunction();
uniqueFunctionl.addAll(copyFunction);
}
} else {
if (functionShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetFunction();
}
}
}
{
Boolean usageShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetUsage());
if (usageShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceUsage;
sourceUsage = (this.isSetUsage()?this.getUsage():null);
@SuppressWarnings("unchecked")
List copyUsage = ((List ) strategy.copy(LocatorUtils.property(locator, "usage", sourceUsage), sourceUsage, this.isSetUsage()));
copy.unsetUsage();
if (copyUsage!= null) {
List uniqueUsagel = copy.getUsage();
uniqueUsagel.addAll(copyUsage);
}
} else {
if (usageShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetUsage();
}
}
}
{
Boolean lod4GeometryShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod4Geometry());
if (lod4GeometryShouldBeCopiedAndSet == Boolean.TRUE) {
GeometryPropertyType sourceLod4Geometry;
sourceLod4Geometry = this.getLod4Geometry();
GeometryPropertyType copyLod4Geometry = ((GeometryPropertyType) strategy.copy(LocatorUtils.property(locator, "lod4Geometry", sourceLod4Geometry), sourceLod4Geometry, this.isSetLod4Geometry()));
copy.setLod4Geometry(copyLod4Geometry);
} else {
if (lod4GeometryShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod4Geometry = null;
}
}
}
{
Boolean lod4ImplicitRepresentationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod4ImplicitRepresentation());
if (lod4ImplicitRepresentationShouldBeCopiedAndSet == Boolean.TRUE) {
ImplicitRepresentationPropertyType sourceLod4ImplicitRepresentation;
sourceLod4ImplicitRepresentation = this.getLod4ImplicitRepresentation();
ImplicitRepresentationPropertyType copyLod4ImplicitRepresentation = ((ImplicitRepresentationPropertyType) strategy.copy(LocatorUtils.property(locator, "lod4ImplicitRepresentation", sourceLod4ImplicitRepresentation), sourceLod4ImplicitRepresentation, this.isSetLod4ImplicitRepresentation()));
copy.setLod4ImplicitRepresentation(copyLod4ImplicitRepresentation);
} else {
if (lod4ImplicitRepresentationShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod4ImplicitRepresentation = null;
}
}
}
{
Boolean genericApplicationPropertyOfBridgeFurnitureShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfBridgeFurniture());
if (genericApplicationPropertyOfBridgeFurnitureShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGenericApplicationPropertyOfBridgeFurniture;
sourceGenericApplicationPropertyOfBridgeFurniture = (this.isSetGenericApplicationPropertyOfBridgeFurniture()?this.getGenericApplicationPropertyOfBridgeFurniture():null);
@SuppressWarnings("unchecked")
List copyGenericApplicationPropertyOfBridgeFurniture = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfBridgeFurniture", sourceGenericApplicationPropertyOfBridgeFurniture), sourceGenericApplicationPropertyOfBridgeFurniture, this.isSetGenericApplicationPropertyOfBridgeFurniture()));
copy.unsetGenericApplicationPropertyOfBridgeFurniture();
if (copyGenericApplicationPropertyOfBridgeFurniture!= null) {
List uniqueGenericApplicationPropertyOfBridgeFurniturel = copy.getGenericApplicationPropertyOfBridgeFurniture();
uniqueGenericApplicationPropertyOfBridgeFurniturel.addAll(copyGenericApplicationPropertyOfBridgeFurniture);
}
} else {
if (genericApplicationPropertyOfBridgeFurnitureShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetGenericApplicationPropertyOfBridgeFurniture();
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new BridgeFurnitureType();
}
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 BridgeFurnitureType) {
final BridgeFurnitureType target = this;
final BridgeFurnitureType leftObject = ((BridgeFurnitureType) left);
final BridgeFurnitureType rightObject = ((BridgeFurnitureType) right);
{
Boolean clazzShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetClazz(), rightObject.isSetClazz());
if (clazzShouldBeMergedAndSet == Boolean.TRUE) {
CodeType lhsClazz;
lhsClazz = leftObject.getClazz();
CodeType rhsClazz;
rhsClazz = rightObject.getClazz();
CodeType mergedClazz = ((CodeType) strategy.merge(LocatorUtils.property(leftLocator, "clazz", lhsClazz), LocatorUtils.property(rightLocator, "clazz", rhsClazz), lhsClazz, rhsClazz, leftObject.isSetClazz(), rightObject.isSetClazz()));
target.setClazz(mergedClazz);
} else {
if (clazzShouldBeMergedAndSet == Boolean.FALSE) {
target.clazz = null;
}
}
}
{
Boolean functionShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetFunction(), rightObject.isSetFunction());
if (functionShouldBeMergedAndSet == Boolean.TRUE) {
List lhsFunction;
lhsFunction = (leftObject.isSetFunction()?leftObject.getFunction():null);
List rhsFunction;
rhsFunction = (rightObject.isSetFunction()?rightObject.getFunction():null);
List mergedFunction = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "function", lhsFunction), LocatorUtils.property(rightLocator, "function", rhsFunction), lhsFunction, rhsFunction, leftObject.isSetFunction(), rightObject.isSetFunction()));
target.unsetFunction();
if (mergedFunction!= null) {
List uniqueFunctionl = target.getFunction();
uniqueFunctionl.addAll(mergedFunction);
}
} else {
if (functionShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetFunction();
}
}
}
{
Boolean usageShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetUsage(), rightObject.isSetUsage());
if (usageShouldBeMergedAndSet == Boolean.TRUE) {
List lhsUsage;
lhsUsage = (leftObject.isSetUsage()?leftObject.getUsage():null);
List rhsUsage;
rhsUsage = (rightObject.isSetUsage()?rightObject.getUsage():null);
List mergedUsage = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "usage", lhsUsage), LocatorUtils.property(rightLocator, "usage", rhsUsage), lhsUsage, rhsUsage, leftObject.isSetUsage(), rightObject.isSetUsage()));
target.unsetUsage();
if (mergedUsage!= null) {
List uniqueUsagel = target.getUsage();
uniqueUsagel.addAll(mergedUsage);
}
} else {
if (usageShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetUsage();
}
}
}
{
Boolean lod4GeometryShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod4Geometry(), rightObject.isSetLod4Geometry());
if (lod4GeometryShouldBeMergedAndSet == Boolean.TRUE) {
GeometryPropertyType lhsLod4Geometry;
lhsLod4Geometry = leftObject.getLod4Geometry();
GeometryPropertyType rhsLod4Geometry;
rhsLod4Geometry = rightObject.getLod4Geometry();
GeometryPropertyType mergedLod4Geometry = ((GeometryPropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod4Geometry", lhsLod4Geometry), LocatorUtils.property(rightLocator, "lod4Geometry", rhsLod4Geometry), lhsLod4Geometry, rhsLod4Geometry, leftObject.isSetLod4Geometry(), rightObject.isSetLod4Geometry()));
target.setLod4Geometry(mergedLod4Geometry);
} else {
if (lod4GeometryShouldBeMergedAndSet == Boolean.FALSE) {
target.lod4Geometry = null;
}
}
}
{
Boolean lod4ImplicitRepresentationShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod4ImplicitRepresentation(), rightObject.isSetLod4ImplicitRepresentation());
if (lod4ImplicitRepresentationShouldBeMergedAndSet == Boolean.TRUE) {
ImplicitRepresentationPropertyType lhsLod4ImplicitRepresentation;
lhsLod4ImplicitRepresentation = leftObject.getLod4ImplicitRepresentation();
ImplicitRepresentationPropertyType rhsLod4ImplicitRepresentation;
rhsLod4ImplicitRepresentation = rightObject.getLod4ImplicitRepresentation();
ImplicitRepresentationPropertyType mergedLod4ImplicitRepresentation = ((ImplicitRepresentationPropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod4ImplicitRepresentation", lhsLod4ImplicitRepresentation), LocatorUtils.property(rightLocator, "lod4ImplicitRepresentation", rhsLod4ImplicitRepresentation), lhsLod4ImplicitRepresentation, rhsLod4ImplicitRepresentation, leftObject.isSetLod4ImplicitRepresentation(), rightObject.isSetLod4ImplicitRepresentation()));
target.setLod4ImplicitRepresentation(mergedLod4ImplicitRepresentation);
} else {
if (lod4ImplicitRepresentationShouldBeMergedAndSet == Boolean.FALSE) {
target.lod4ImplicitRepresentation = null;
}
}
}
{
Boolean genericApplicationPropertyOfBridgeFurnitureShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfBridgeFurniture(), rightObject.isSetGenericApplicationPropertyOfBridgeFurniture());
if (genericApplicationPropertyOfBridgeFurnitureShouldBeMergedAndSet == Boolean.TRUE) {
List lhsGenericApplicationPropertyOfBridgeFurniture;
lhsGenericApplicationPropertyOfBridgeFurniture = (leftObject.isSetGenericApplicationPropertyOfBridgeFurniture()?leftObject.getGenericApplicationPropertyOfBridgeFurniture():null);
List rhsGenericApplicationPropertyOfBridgeFurniture;
rhsGenericApplicationPropertyOfBridgeFurniture = (rightObject.isSetGenericApplicationPropertyOfBridgeFurniture()?rightObject.getGenericApplicationPropertyOfBridgeFurniture():null);
List mergedGenericApplicationPropertyOfBridgeFurniture = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfBridgeFurniture", lhsGenericApplicationPropertyOfBridgeFurniture), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfBridgeFurniture", rhsGenericApplicationPropertyOfBridgeFurniture), lhsGenericApplicationPropertyOfBridgeFurniture, rhsGenericApplicationPropertyOfBridgeFurniture, leftObject.isSetGenericApplicationPropertyOfBridgeFurniture(), rightObject.isSetGenericApplicationPropertyOfBridgeFurniture()));
target.unsetGenericApplicationPropertyOfBridgeFurniture();
if (mergedGenericApplicationPropertyOfBridgeFurniture!= null) {
List uniqueGenericApplicationPropertyOfBridgeFurniturel = target.getGenericApplicationPropertyOfBridgeFurniture();
uniqueGenericApplicationPropertyOfBridgeFurniturel.addAll(mergedGenericApplicationPropertyOfBridgeFurniture);
}
} else {
if (genericApplicationPropertyOfBridgeFurnitureShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetGenericApplicationPropertyOfBridgeFurniture();
}
}
}
}
}
public void setFunction(List value) {
this.function = null;
if (value!= null) {
List draftl = this.getFunction();
draftl.addAll(value);
}
}
public void setUsage(List value) {
this.usage = null;
if (value!= null) {
List draftl = this.getUsage();
draftl.addAll(value);
}
}
public void setGenericApplicationPropertyOfBridgeFurniture(List value) {
this.genericApplicationPropertyOfBridgeFurniture = null;
if (value!= null) {
List draftl = this.getGenericApplicationPropertyOfBridgeFurniture();
draftl.addAll(value);
}
}
public BridgeFurnitureType withClazz(CodeType value) {
setClazz(value);
return this;
}
public BridgeFurnitureType withFunction(CodeType... values) {
if (values!= null) {
for (CodeType value: values) {
getFunction().add(value);
}
}
return this;
}
public BridgeFurnitureType withFunction(Collection values) {
if (values!= null) {
getFunction().addAll(values);
}
return this;
}
public BridgeFurnitureType withUsage(CodeType... values) {
if (values!= null) {
for (CodeType value: values) {
getUsage().add(value);
}
}
return this;
}
public BridgeFurnitureType withUsage(Collection values) {
if (values!= null) {
getUsage().addAll(values);
}
return this;
}
public BridgeFurnitureType withLod4Geometry(GeometryPropertyType value) {
setLod4Geometry(value);
return this;
}
public BridgeFurnitureType withLod4ImplicitRepresentation(ImplicitRepresentationPropertyType value) {
setLod4ImplicitRepresentation(value);
return this;
}
public BridgeFurnitureType withGenericApplicationPropertyOfBridgeFurniture(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfBridgeFurniture().add(value);
}
}
return this;
}
public BridgeFurnitureType withGenericApplicationPropertyOfBridgeFurniture(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfBridgeFurniture().addAll(values);
}
return this;
}
public BridgeFurnitureType withFunction(List value) {
setFunction(value);
return this;
}
public BridgeFurnitureType withUsage(List value) {
setUsage(value);
return this;
}
public BridgeFurnitureType withGenericApplicationPropertyOfBridgeFurniture(List value) {
setGenericApplicationPropertyOfBridgeFurniture(value);
return this;
}
@Override
public BridgeFurnitureType withCreationDate(XMLGregorianCalendar value) {
setCreationDate(value);
return this;
}
@Override
public BridgeFurnitureType withTerminationDate(XMLGregorianCalendar value) {
setTerminationDate(value);
return this;
}
@Override
public BridgeFurnitureType withExternalReference(ExternalReferenceType... values) {
if (values!= null) {
for (ExternalReferenceType value: values) {
getExternalReference().add(value);
}
}
return this;
}
@Override
public BridgeFurnitureType withExternalReference(Collection values) {
if (values!= null) {
getExternalReference().addAll(values);
}
return this;
}
@Override
public BridgeFurnitureType withGeneralizesTo(GeneralizationRelationType... values) {
if (values!= null) {
for (GeneralizationRelationType value: values) {
getGeneralizesTo().add(value);
}
}
return this;
}
@Override
public BridgeFurnitureType withGeneralizesTo(Collection values) {
if (values!= null) {
getGeneralizesTo().addAll(values);
}
return this;
}
@Override
public BridgeFurnitureType withRelativeToTerrain(RelativeToTerrainType value) {
setRelativeToTerrain(value);
return this;
}
@Override
public BridgeFurnitureType withRelativeToWater(RelativeToWaterType value) {
setRelativeToWater(value);
return this;
}
@Override
public BridgeFurnitureType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) {
if (values!= null) {
for (JAXBElement value: values) {
getGenericApplicationPropertyOfCityObject().add(value);
}
}
return this;
}
@Override
public BridgeFurnitureType withGenericApplicationPropertyOfCityObject(Collection> values) {
if (values!= null) {
getGenericApplicationPropertyOfCityObject().addAll(values);
}
return this;
}
@Override
public BridgeFurnitureType withExternalReference(List value) {
setExternalReference(value);
return this;
}
@Override
public BridgeFurnitureType withGeneralizesTo(List value) {
setGeneralizesTo(value);
return this;
}
@Override
public BridgeFurnitureType withGenericApplicationPropertyOfCityObject(List> value) {
setGenericApplicationPropertyOfCityObject(value);
return this;
}
}