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.vegetation.v_2_0.PlantCoverType 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.vegetation.v_2_0;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import net.opengis.citygml.v_2_0.ExternalReferenceType;
import net.opengis.citygml.v_2_0.GeneralizationRelationType;
import net.opengis.citygml.v_2_0.RelativeToTerrainType;
import net.opengis.citygml.v_2_0.RelativeToWaterType;
import net.opengis.gml.v_3_1_1.CodeType;
import net.opengis.gml.v_3_1_1.LengthType;
import net.opengis.gml.v_3_1_1.MultiSolidPropertyType;
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;
/**
* Type describing Plant Covers resp. Biotopes. As subclass of _CityObject, a VegetationObject inherits all
* attributes and relations, in particular an id, names, external references, and generalization relations.
*
*
* Java class for PlantCoverType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PlantCoverType">
* <complexContent>
* <extension base="{http://www.opengis.net/citygml/vegetation/2.0}AbstractVegetationObjectType">
* <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="averageHeight" type="{http://www.opengis.net/gml}LengthType" minOccurs="0"/>
* <element name="lod1MultiSurface" type="{http://www.opengis.net/gml}MultiSurfacePropertyType" minOccurs="0"/>
* <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="lod1MultiSolid" type="{http://www.opengis.net/gml}MultiSolidPropertyType" minOccurs="0"/>
* <element name="lod2MultiSolid" type="{http://www.opengis.net/gml}MultiSolidPropertyType" minOccurs="0"/>
* <element name="lod3MultiSolid" type="{http://www.opengis.net/gml}MultiSolidPropertyType" minOccurs="0"/>
* <element name="lod4MultiSolid" type="{http://www.opengis.net/gml}MultiSolidPropertyType" minOccurs="0"/>
* <element ref="{http://www.opengis.net/citygml/vegetation/2.0}_GenericApplicationPropertyOfPlantCover" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PlantCoverType", propOrder = {
"clazz",
"function",
"usage",
"averageHeight",
"lod1MultiSurface",
"lod2MultiSurface",
"lod3MultiSurface",
"lod4MultiSurface",
"lod1MultiSolid",
"lod2MultiSolid",
"lod3MultiSolid",
"lod4MultiSolid",
"genericApplicationPropertyOfPlantCover"
})
public class PlantCoverType
extends AbstractVegetationObjectType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(name = "class")
protected CodeType clazz;
protected List function;
protected List usage;
protected LengthType averageHeight;
protected MultiSurfacePropertyType lod1MultiSurface;
protected MultiSurfacePropertyType lod2MultiSurface;
protected MultiSurfacePropertyType lod3MultiSurface;
protected MultiSurfacePropertyType lod4MultiSurface;
protected MultiSolidPropertyType lod1MultiSolid;
protected MultiSolidPropertyType lod2MultiSolid;
protected MultiSolidPropertyType lod3MultiSolid;
protected MultiSolidPropertyType lod4MultiSolid;
@XmlElement(name = "_GenericApplicationPropertyOfPlantCover")
protected List genericApplicationPropertyOfPlantCover;
/**
* 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 averageHeight property.
*
* @return
* possible object is
* {@link LengthType }
*
*/
public LengthType getAverageHeight() {
return averageHeight;
}
/**
* Sets the value of the averageHeight property.
*
* @param value
* allowed object is
* {@link LengthType }
*
*/
public void setAverageHeight(LengthType value) {
this.averageHeight = value;
}
public boolean isSetAverageHeight() {
return (this.averageHeight!= null);
}
/**
* Gets the value of the lod1MultiSurface property.
*
* @return
* possible object is
* {@link MultiSurfacePropertyType }
*
*/
public MultiSurfacePropertyType getLod1MultiSurface() {
return lod1MultiSurface;
}
/**
* Sets the value of the lod1MultiSurface property.
*
* @param value
* allowed object is
* {@link MultiSurfacePropertyType }
*
*/
public void setLod1MultiSurface(MultiSurfacePropertyType value) {
this.lod1MultiSurface = value;
}
public boolean isSetLod1MultiSurface() {
return (this.lod1MultiSurface!= null);
}
/**
* 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 lod1MultiSolid property.
*
* @return
* possible object is
* {@link MultiSolidPropertyType }
*
*/
public MultiSolidPropertyType getLod1MultiSolid() {
return lod1MultiSolid;
}
/**
* Sets the value of the lod1MultiSolid property.
*
* @param value
* allowed object is
* {@link MultiSolidPropertyType }
*
*/
public void setLod1MultiSolid(MultiSolidPropertyType value) {
this.lod1MultiSolid = value;
}
public boolean isSetLod1MultiSolid() {
return (this.lod1MultiSolid!= null);
}
/**
* Gets the value of the lod2MultiSolid property.
*
* @return
* possible object is
* {@link MultiSolidPropertyType }
*
*/
public MultiSolidPropertyType getLod2MultiSolid() {
return lod2MultiSolid;
}
/**
* Sets the value of the lod2MultiSolid property.
*
* @param value
* allowed object is
* {@link MultiSolidPropertyType }
*
*/
public void setLod2MultiSolid(MultiSolidPropertyType value) {
this.lod2MultiSolid = value;
}
public boolean isSetLod2MultiSolid() {
return (this.lod2MultiSolid!= null);
}
/**
* Gets the value of the lod3MultiSolid property.
*
* @return
* possible object is
* {@link MultiSolidPropertyType }
*
*/
public MultiSolidPropertyType getLod3MultiSolid() {
return lod3MultiSolid;
}
/**
* Sets the value of the lod3MultiSolid property.
*
* @param value
* allowed object is
* {@link MultiSolidPropertyType }
*
*/
public void setLod3MultiSolid(MultiSolidPropertyType value) {
this.lod3MultiSolid = value;
}
public boolean isSetLod3MultiSolid() {
return (this.lod3MultiSolid!= null);
}
/**
* Gets the value of the lod4MultiSolid property.
*
* @return
* possible object is
* {@link MultiSolidPropertyType }
*
*/
public MultiSolidPropertyType getLod4MultiSolid() {
return lod4MultiSolid;
}
/**
* Sets the value of the lod4MultiSolid property.
*
* @param value
* allowed object is
* {@link MultiSolidPropertyType }
*
*/
public void setLod4MultiSolid(MultiSolidPropertyType value) {
this.lod4MultiSolid = value;
}
public boolean isSetLod4MultiSolid() {
return (this.lod4MultiSolid!= null);
}
/**
* Gets the value of the genericApplicationPropertyOfPlantCover 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 genericApplicationPropertyOfPlantCover property.
*
*
* For example, to add a new item, do as follows:
*
* getGenericApplicationPropertyOfPlantCover().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List getGenericApplicationPropertyOfPlantCover() {
if (genericApplicationPropertyOfPlantCover == null) {
genericApplicationPropertyOfPlantCover = new ArrayList();
}
return this.genericApplicationPropertyOfPlantCover;
}
public boolean isSetGenericApplicationPropertyOfPlantCover() {
return ((this.genericApplicationPropertyOfPlantCover!= null)&&(!this.genericApplicationPropertyOfPlantCover.isEmpty()));
}
public void unsetGenericApplicationPropertyOfPlantCover() {
this.genericApplicationPropertyOfPlantCover = 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());
}
{
LengthType theAverageHeight;
theAverageHeight = this.getAverageHeight();
strategy.appendField(locator, this, "averageHeight", buffer, theAverageHeight, this.isSetAverageHeight());
}
{
MultiSurfacePropertyType theLod1MultiSurface;
theLod1MultiSurface = this.getLod1MultiSurface();
strategy.appendField(locator, this, "lod1MultiSurface", buffer, theLod1MultiSurface, this.isSetLod1MultiSurface());
}
{
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());
}
{
MultiSolidPropertyType theLod1MultiSolid;
theLod1MultiSolid = this.getLod1MultiSolid();
strategy.appendField(locator, this, "lod1MultiSolid", buffer, theLod1MultiSolid, this.isSetLod1MultiSolid());
}
{
MultiSolidPropertyType theLod2MultiSolid;
theLod2MultiSolid = this.getLod2MultiSolid();
strategy.appendField(locator, this, "lod2MultiSolid", buffer, theLod2MultiSolid, this.isSetLod2MultiSolid());
}
{
MultiSolidPropertyType theLod3MultiSolid;
theLod3MultiSolid = this.getLod3MultiSolid();
strategy.appendField(locator, this, "lod3MultiSolid", buffer, theLod3MultiSolid, this.isSetLod3MultiSolid());
}
{
MultiSolidPropertyType theLod4MultiSolid;
theLod4MultiSolid = this.getLod4MultiSolid();
strategy.appendField(locator, this, "lod4MultiSolid", buffer, theLod4MultiSolid, this.isSetLod4MultiSolid());
}
{
List theGenericApplicationPropertyOfPlantCover;
theGenericApplicationPropertyOfPlantCover = (this.isSetGenericApplicationPropertyOfPlantCover()?this.getGenericApplicationPropertyOfPlantCover():null);
strategy.appendField(locator, this, "genericApplicationPropertyOfPlantCover", buffer, theGenericApplicationPropertyOfPlantCover, this.isSetGenericApplicationPropertyOfPlantCover());
}
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 PlantCoverType that = ((PlantCoverType) 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;
}
}
{
LengthType lhsAverageHeight;
lhsAverageHeight = this.getAverageHeight();
LengthType rhsAverageHeight;
rhsAverageHeight = that.getAverageHeight();
if (!strategy.equals(LocatorUtils.property(thisLocator, "averageHeight", lhsAverageHeight), LocatorUtils.property(thatLocator, "averageHeight", rhsAverageHeight), lhsAverageHeight, rhsAverageHeight, this.isSetAverageHeight(), that.isSetAverageHeight())) {
return false;
}
}
{
MultiSurfacePropertyType lhsLod1MultiSurface;
lhsLod1MultiSurface = this.getLod1MultiSurface();
MultiSurfacePropertyType rhsLod1MultiSurface;
rhsLod1MultiSurface = that.getLod1MultiSurface();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod1MultiSurface", lhsLod1MultiSurface), LocatorUtils.property(thatLocator, "lod1MultiSurface", rhsLod1MultiSurface), lhsLod1MultiSurface, rhsLod1MultiSurface, this.isSetLod1MultiSurface(), that.isSetLod1MultiSurface())) {
return false;
}
}
{
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;
}
}
{
MultiSolidPropertyType lhsLod1MultiSolid;
lhsLod1MultiSolid = this.getLod1MultiSolid();
MultiSolidPropertyType rhsLod1MultiSolid;
rhsLod1MultiSolid = that.getLod1MultiSolid();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod1MultiSolid", lhsLod1MultiSolid), LocatorUtils.property(thatLocator, "lod1MultiSolid", rhsLod1MultiSolid), lhsLod1MultiSolid, rhsLod1MultiSolid, this.isSetLod1MultiSolid(), that.isSetLod1MultiSolid())) {
return false;
}
}
{
MultiSolidPropertyType lhsLod2MultiSolid;
lhsLod2MultiSolid = this.getLod2MultiSolid();
MultiSolidPropertyType rhsLod2MultiSolid;
rhsLod2MultiSolid = that.getLod2MultiSolid();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod2MultiSolid", lhsLod2MultiSolid), LocatorUtils.property(thatLocator, "lod2MultiSolid", rhsLod2MultiSolid), lhsLod2MultiSolid, rhsLod2MultiSolid, this.isSetLod2MultiSolid(), that.isSetLod2MultiSolid())) {
return false;
}
}
{
MultiSolidPropertyType lhsLod3MultiSolid;
lhsLod3MultiSolid = this.getLod3MultiSolid();
MultiSolidPropertyType rhsLod3MultiSolid;
rhsLod3MultiSolid = that.getLod3MultiSolid();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod3MultiSolid", lhsLod3MultiSolid), LocatorUtils.property(thatLocator, "lod3MultiSolid", rhsLod3MultiSolid), lhsLod3MultiSolid, rhsLod3MultiSolid, this.isSetLod3MultiSolid(), that.isSetLod3MultiSolid())) {
return false;
}
}
{
MultiSolidPropertyType lhsLod4MultiSolid;
lhsLod4MultiSolid = this.getLod4MultiSolid();
MultiSolidPropertyType rhsLod4MultiSolid;
rhsLod4MultiSolid = that.getLod4MultiSolid();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lod4MultiSolid", lhsLod4MultiSolid), LocatorUtils.property(thatLocator, "lod4MultiSolid", rhsLod4MultiSolid), lhsLod4MultiSolid, rhsLod4MultiSolid, this.isSetLod4MultiSolid(), that.isSetLod4MultiSolid())) {
return false;
}
}
{
List lhsGenericApplicationPropertyOfPlantCover;
lhsGenericApplicationPropertyOfPlantCover = (this.isSetGenericApplicationPropertyOfPlantCover()?this.getGenericApplicationPropertyOfPlantCover():null);
List rhsGenericApplicationPropertyOfPlantCover;
rhsGenericApplicationPropertyOfPlantCover = (that.isSetGenericApplicationPropertyOfPlantCover()?that.getGenericApplicationPropertyOfPlantCover():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfPlantCover", lhsGenericApplicationPropertyOfPlantCover), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfPlantCover", rhsGenericApplicationPropertyOfPlantCover), lhsGenericApplicationPropertyOfPlantCover, rhsGenericApplicationPropertyOfPlantCover, this.isSetGenericApplicationPropertyOfPlantCover(), that.isSetGenericApplicationPropertyOfPlantCover())) {
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());
}
{
LengthType theAverageHeight;
theAverageHeight = this.getAverageHeight();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "averageHeight", theAverageHeight), currentHashCode, theAverageHeight, this.isSetAverageHeight());
}
{
MultiSurfacePropertyType theLod1MultiSurface;
theLod1MultiSurface = this.getLod1MultiSurface();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod1MultiSurface", theLod1MultiSurface), currentHashCode, theLod1MultiSurface, this.isSetLod1MultiSurface());
}
{
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());
}
{
MultiSolidPropertyType theLod1MultiSolid;
theLod1MultiSolid = this.getLod1MultiSolid();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod1MultiSolid", theLod1MultiSolid), currentHashCode, theLod1MultiSolid, this.isSetLod1MultiSolid());
}
{
MultiSolidPropertyType theLod2MultiSolid;
theLod2MultiSolid = this.getLod2MultiSolid();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod2MultiSolid", theLod2MultiSolid), currentHashCode, theLod2MultiSolid, this.isSetLod2MultiSolid());
}
{
MultiSolidPropertyType theLod3MultiSolid;
theLod3MultiSolid = this.getLod3MultiSolid();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod3MultiSolid", theLod3MultiSolid), currentHashCode, theLod3MultiSolid, this.isSetLod3MultiSolid());
}
{
MultiSolidPropertyType theLod4MultiSolid;
theLod4MultiSolid = this.getLod4MultiSolid();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lod4MultiSolid", theLod4MultiSolid), currentHashCode, theLod4MultiSolid, this.isSetLod4MultiSolid());
}
{
List theGenericApplicationPropertyOfPlantCover;
theGenericApplicationPropertyOfPlantCover = (this.isSetGenericApplicationPropertyOfPlantCover()?this.getGenericApplicationPropertyOfPlantCover():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfPlantCover", theGenericApplicationPropertyOfPlantCover), currentHashCode, theGenericApplicationPropertyOfPlantCover, this.isSetGenericApplicationPropertyOfPlantCover());
}
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 PlantCoverType) {
final PlantCoverType copy = ((PlantCoverType) 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 averageHeightShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAverageHeight());
if (averageHeightShouldBeCopiedAndSet == Boolean.TRUE) {
LengthType sourceAverageHeight;
sourceAverageHeight = this.getAverageHeight();
LengthType copyAverageHeight = ((LengthType) strategy.copy(LocatorUtils.property(locator, "averageHeight", sourceAverageHeight), sourceAverageHeight, this.isSetAverageHeight()));
copy.setAverageHeight(copyAverageHeight);
} else {
if (averageHeightShouldBeCopiedAndSet == Boolean.FALSE) {
copy.averageHeight = null;
}
}
}
{
Boolean lod1MultiSurfaceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod1MultiSurface());
if (lod1MultiSurfaceShouldBeCopiedAndSet == Boolean.TRUE) {
MultiSurfacePropertyType sourceLod1MultiSurface;
sourceLod1MultiSurface = this.getLod1MultiSurface();
MultiSurfacePropertyType copyLod1MultiSurface = ((MultiSurfacePropertyType) strategy.copy(LocatorUtils.property(locator, "lod1MultiSurface", sourceLod1MultiSurface), sourceLod1MultiSurface, this.isSetLod1MultiSurface()));
copy.setLod1MultiSurface(copyLod1MultiSurface);
} else {
if (lod1MultiSurfaceShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod1MultiSurface = null;
}
}
}
{
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 lod1MultiSolidShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod1MultiSolid());
if (lod1MultiSolidShouldBeCopiedAndSet == Boolean.TRUE) {
MultiSolidPropertyType sourceLod1MultiSolid;
sourceLod1MultiSolid = this.getLod1MultiSolid();
MultiSolidPropertyType copyLod1MultiSolid = ((MultiSolidPropertyType) strategy.copy(LocatorUtils.property(locator, "lod1MultiSolid", sourceLod1MultiSolid), sourceLod1MultiSolid, this.isSetLod1MultiSolid()));
copy.setLod1MultiSolid(copyLod1MultiSolid);
} else {
if (lod1MultiSolidShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod1MultiSolid = null;
}
}
}
{
Boolean lod2MultiSolidShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod2MultiSolid());
if (lod2MultiSolidShouldBeCopiedAndSet == Boolean.TRUE) {
MultiSolidPropertyType sourceLod2MultiSolid;
sourceLod2MultiSolid = this.getLod2MultiSolid();
MultiSolidPropertyType copyLod2MultiSolid = ((MultiSolidPropertyType) strategy.copy(LocatorUtils.property(locator, "lod2MultiSolid", sourceLod2MultiSolid), sourceLod2MultiSolid, this.isSetLod2MultiSolid()));
copy.setLod2MultiSolid(copyLod2MultiSolid);
} else {
if (lod2MultiSolidShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod2MultiSolid = null;
}
}
}
{
Boolean lod3MultiSolidShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod3MultiSolid());
if (lod3MultiSolidShouldBeCopiedAndSet == Boolean.TRUE) {
MultiSolidPropertyType sourceLod3MultiSolid;
sourceLod3MultiSolid = this.getLod3MultiSolid();
MultiSolidPropertyType copyLod3MultiSolid = ((MultiSolidPropertyType) strategy.copy(LocatorUtils.property(locator, "lod3MultiSolid", sourceLod3MultiSolid), sourceLod3MultiSolid, this.isSetLod3MultiSolid()));
copy.setLod3MultiSolid(copyLod3MultiSolid);
} else {
if (lod3MultiSolidShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod3MultiSolid = null;
}
}
}
{
Boolean lod4MultiSolidShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLod4MultiSolid());
if (lod4MultiSolidShouldBeCopiedAndSet == Boolean.TRUE) {
MultiSolidPropertyType sourceLod4MultiSolid;
sourceLod4MultiSolid = this.getLod4MultiSolid();
MultiSolidPropertyType copyLod4MultiSolid = ((MultiSolidPropertyType) strategy.copy(LocatorUtils.property(locator, "lod4MultiSolid", sourceLod4MultiSolid), sourceLod4MultiSolid, this.isSetLod4MultiSolid()));
copy.setLod4MultiSolid(copyLod4MultiSolid);
} else {
if (lod4MultiSolidShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lod4MultiSolid = null;
}
}
}
{
Boolean genericApplicationPropertyOfPlantCoverShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfPlantCover());
if (genericApplicationPropertyOfPlantCoverShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGenericApplicationPropertyOfPlantCover;
sourceGenericApplicationPropertyOfPlantCover = (this.isSetGenericApplicationPropertyOfPlantCover()?this.getGenericApplicationPropertyOfPlantCover():null);
@SuppressWarnings("unchecked")
List copyGenericApplicationPropertyOfPlantCover = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfPlantCover", sourceGenericApplicationPropertyOfPlantCover), sourceGenericApplicationPropertyOfPlantCover, this.isSetGenericApplicationPropertyOfPlantCover()));
copy.unsetGenericApplicationPropertyOfPlantCover();
if (copyGenericApplicationPropertyOfPlantCover!= null) {
List uniqueGenericApplicationPropertyOfPlantCoverl = copy.getGenericApplicationPropertyOfPlantCover();
uniqueGenericApplicationPropertyOfPlantCoverl.addAll(copyGenericApplicationPropertyOfPlantCover);
}
} else {
if (genericApplicationPropertyOfPlantCoverShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetGenericApplicationPropertyOfPlantCover();
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new PlantCoverType();
}
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 PlantCoverType) {
final PlantCoverType target = this;
final PlantCoverType leftObject = ((PlantCoverType) left);
final PlantCoverType rightObject = ((PlantCoverType) 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 averageHeightShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAverageHeight(), rightObject.isSetAverageHeight());
if (averageHeightShouldBeMergedAndSet == Boolean.TRUE) {
LengthType lhsAverageHeight;
lhsAverageHeight = leftObject.getAverageHeight();
LengthType rhsAverageHeight;
rhsAverageHeight = rightObject.getAverageHeight();
LengthType mergedAverageHeight = ((LengthType) strategy.merge(LocatorUtils.property(leftLocator, "averageHeight", lhsAverageHeight), LocatorUtils.property(rightLocator, "averageHeight", rhsAverageHeight), lhsAverageHeight, rhsAverageHeight, leftObject.isSetAverageHeight(), rightObject.isSetAverageHeight()));
target.setAverageHeight(mergedAverageHeight);
} else {
if (averageHeightShouldBeMergedAndSet == Boolean.FALSE) {
target.averageHeight = null;
}
}
}
{
Boolean lod1MultiSurfaceShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod1MultiSurface(), rightObject.isSetLod1MultiSurface());
if (lod1MultiSurfaceShouldBeMergedAndSet == Boolean.TRUE) {
MultiSurfacePropertyType lhsLod1MultiSurface;
lhsLod1MultiSurface = leftObject.getLod1MultiSurface();
MultiSurfacePropertyType rhsLod1MultiSurface;
rhsLod1MultiSurface = rightObject.getLod1MultiSurface();
MultiSurfacePropertyType mergedLod1MultiSurface = ((MultiSurfacePropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod1MultiSurface", lhsLod1MultiSurface), LocatorUtils.property(rightLocator, "lod1MultiSurface", rhsLod1MultiSurface), lhsLod1MultiSurface, rhsLod1MultiSurface, leftObject.isSetLod1MultiSurface(), rightObject.isSetLod1MultiSurface()));
target.setLod1MultiSurface(mergedLod1MultiSurface);
} else {
if (lod1MultiSurfaceShouldBeMergedAndSet == Boolean.FALSE) {
target.lod1MultiSurface = null;
}
}
}
{
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 lod1MultiSolidShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod1MultiSolid(), rightObject.isSetLod1MultiSolid());
if (lod1MultiSolidShouldBeMergedAndSet == Boolean.TRUE) {
MultiSolidPropertyType lhsLod1MultiSolid;
lhsLod1MultiSolid = leftObject.getLod1MultiSolid();
MultiSolidPropertyType rhsLod1MultiSolid;
rhsLod1MultiSolid = rightObject.getLod1MultiSolid();
MultiSolidPropertyType mergedLod1MultiSolid = ((MultiSolidPropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod1MultiSolid", lhsLod1MultiSolid), LocatorUtils.property(rightLocator, "lod1MultiSolid", rhsLod1MultiSolid), lhsLod1MultiSolid, rhsLod1MultiSolid, leftObject.isSetLod1MultiSolid(), rightObject.isSetLod1MultiSolid()));
target.setLod1MultiSolid(mergedLod1MultiSolid);
} else {
if (lod1MultiSolidShouldBeMergedAndSet == Boolean.FALSE) {
target.lod1MultiSolid = null;
}
}
}
{
Boolean lod2MultiSolidShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod2MultiSolid(), rightObject.isSetLod2MultiSolid());
if (lod2MultiSolidShouldBeMergedAndSet == Boolean.TRUE) {
MultiSolidPropertyType lhsLod2MultiSolid;
lhsLod2MultiSolid = leftObject.getLod2MultiSolid();
MultiSolidPropertyType rhsLod2MultiSolid;
rhsLod2MultiSolid = rightObject.getLod2MultiSolid();
MultiSolidPropertyType mergedLod2MultiSolid = ((MultiSolidPropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod2MultiSolid", lhsLod2MultiSolid), LocatorUtils.property(rightLocator, "lod2MultiSolid", rhsLod2MultiSolid), lhsLod2MultiSolid, rhsLod2MultiSolid, leftObject.isSetLod2MultiSolid(), rightObject.isSetLod2MultiSolid()));
target.setLod2MultiSolid(mergedLod2MultiSolid);
} else {
if (lod2MultiSolidShouldBeMergedAndSet == Boolean.FALSE) {
target.lod2MultiSolid = null;
}
}
}
{
Boolean lod3MultiSolidShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod3MultiSolid(), rightObject.isSetLod3MultiSolid());
if (lod3MultiSolidShouldBeMergedAndSet == Boolean.TRUE) {
MultiSolidPropertyType lhsLod3MultiSolid;
lhsLod3MultiSolid = leftObject.getLod3MultiSolid();
MultiSolidPropertyType rhsLod3MultiSolid;
rhsLod3MultiSolid = rightObject.getLod3MultiSolid();
MultiSolidPropertyType mergedLod3MultiSolid = ((MultiSolidPropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod3MultiSolid", lhsLod3MultiSolid), LocatorUtils.property(rightLocator, "lod3MultiSolid", rhsLod3MultiSolid), lhsLod3MultiSolid, rhsLod3MultiSolid, leftObject.isSetLod3MultiSolid(), rightObject.isSetLod3MultiSolid()));
target.setLod3MultiSolid(mergedLod3MultiSolid);
} else {
if (lod3MultiSolidShouldBeMergedAndSet == Boolean.FALSE) {
target.lod3MultiSolid = null;
}
}
}
{
Boolean lod4MultiSolidShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLod4MultiSolid(), rightObject.isSetLod4MultiSolid());
if (lod4MultiSolidShouldBeMergedAndSet == Boolean.TRUE) {
MultiSolidPropertyType lhsLod4MultiSolid;
lhsLod4MultiSolid = leftObject.getLod4MultiSolid();
MultiSolidPropertyType rhsLod4MultiSolid;
rhsLod4MultiSolid = rightObject.getLod4MultiSolid();
MultiSolidPropertyType mergedLod4MultiSolid = ((MultiSolidPropertyType) strategy.merge(LocatorUtils.property(leftLocator, "lod4MultiSolid", lhsLod4MultiSolid), LocatorUtils.property(rightLocator, "lod4MultiSolid", rhsLod4MultiSolid), lhsLod4MultiSolid, rhsLod4MultiSolid, leftObject.isSetLod4MultiSolid(), rightObject.isSetLod4MultiSolid()));
target.setLod4MultiSolid(mergedLod4MultiSolid);
} else {
if (lod4MultiSolidShouldBeMergedAndSet == Boolean.FALSE) {
target.lod4MultiSolid = null;
}
}
}
{
Boolean genericApplicationPropertyOfPlantCoverShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfPlantCover(), rightObject.isSetGenericApplicationPropertyOfPlantCover());
if (genericApplicationPropertyOfPlantCoverShouldBeMergedAndSet == Boolean.TRUE) {
List lhsGenericApplicationPropertyOfPlantCover;
lhsGenericApplicationPropertyOfPlantCover = (leftObject.isSetGenericApplicationPropertyOfPlantCover()?leftObject.getGenericApplicationPropertyOfPlantCover():null);
List rhsGenericApplicationPropertyOfPlantCover;
rhsGenericApplicationPropertyOfPlantCover = (rightObject.isSetGenericApplicationPropertyOfPlantCover()?rightObject.getGenericApplicationPropertyOfPlantCover():null);
List mergedGenericApplicationPropertyOfPlantCover = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfPlantCover", lhsGenericApplicationPropertyOfPlantCover), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfPlantCover", rhsGenericApplicationPropertyOfPlantCover), lhsGenericApplicationPropertyOfPlantCover, rhsGenericApplicationPropertyOfPlantCover, leftObject.isSetGenericApplicationPropertyOfPlantCover(), rightObject.isSetGenericApplicationPropertyOfPlantCover()));
target.unsetGenericApplicationPropertyOfPlantCover();
if (mergedGenericApplicationPropertyOfPlantCover!= null) {
List uniqueGenericApplicationPropertyOfPlantCoverl = target.getGenericApplicationPropertyOfPlantCover();
uniqueGenericApplicationPropertyOfPlantCoverl.addAll(mergedGenericApplicationPropertyOfPlantCover);
}
} else {
if (genericApplicationPropertyOfPlantCoverShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetGenericApplicationPropertyOfPlantCover();
}
}
}
}
}
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 setGenericApplicationPropertyOfPlantCover(List value) {
this.genericApplicationPropertyOfPlantCover = null;
if (value!= null) {
List draftl = this.getGenericApplicationPropertyOfPlantCover();
draftl.addAll(value);
}
}
public PlantCoverType withClazz(CodeType value) {
setClazz(value);
return this;
}
public PlantCoverType withFunction(CodeType... values) {
if (values!= null) {
for (CodeType value: values) {
getFunction().add(value);
}
}
return this;
}
public PlantCoverType withFunction(Collection values) {
if (values!= null) {
getFunction().addAll(values);
}
return this;
}
public PlantCoverType withUsage(CodeType... values) {
if (values!= null) {
for (CodeType value: values) {
getUsage().add(value);
}
}
return this;
}
public PlantCoverType withUsage(Collection values) {
if (values!= null) {
getUsage().addAll(values);
}
return this;
}
public PlantCoverType withAverageHeight(LengthType value) {
setAverageHeight(value);
return this;
}
public PlantCoverType withLod1MultiSurface(MultiSurfacePropertyType value) {
setLod1MultiSurface(value);
return this;
}
public PlantCoverType withLod2MultiSurface(MultiSurfacePropertyType value) {
setLod2MultiSurface(value);
return this;
}
public PlantCoverType withLod3MultiSurface(MultiSurfacePropertyType value) {
setLod3MultiSurface(value);
return this;
}
public PlantCoverType withLod4MultiSurface(MultiSurfacePropertyType value) {
setLod4MultiSurface(value);
return this;
}
public PlantCoverType withLod1MultiSolid(MultiSolidPropertyType value) {
setLod1MultiSolid(value);
return this;
}
public PlantCoverType withLod2MultiSolid(MultiSolidPropertyType value) {
setLod2MultiSolid(value);
return this;
}
public PlantCoverType withLod3MultiSolid(MultiSolidPropertyType value) {
setLod3MultiSolid(value);
return this;
}
public PlantCoverType withLod4MultiSolid(MultiSolidPropertyType value) {
setLod4MultiSolid(value);
return this;
}
public PlantCoverType withGenericApplicationPropertyOfPlantCover(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfPlantCover().add(value);
}
}
return this;
}
public PlantCoverType withGenericApplicationPropertyOfPlantCover(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfPlantCover().addAll(values);
}
return this;
}
public PlantCoverType withFunction(List value) {
setFunction(value);
return this;
}
public PlantCoverType withUsage(List value) {
setUsage(value);
return this;
}
public PlantCoverType withGenericApplicationPropertyOfPlantCover(List value) {
setGenericApplicationPropertyOfPlantCover(value);
return this;
}
@Override
public PlantCoverType withGenericApplicationPropertyOfVegetationObject(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfVegetationObject().add(value);
}
}
return this;
}
@Override
public PlantCoverType withGenericApplicationPropertyOfVegetationObject(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfVegetationObject().addAll(values);
}
return this;
}
@Override
public PlantCoverType withGenericApplicationPropertyOfVegetationObject(List value) {
setGenericApplicationPropertyOfVegetationObject(value);
return this;
}
@Override
public PlantCoverType withCreationDate(XMLGregorianCalendar value) {
setCreationDate(value);
return this;
}
@Override
public PlantCoverType withTerminationDate(XMLGregorianCalendar value) {
setTerminationDate(value);
return this;
}
@Override
public PlantCoverType withExternalReference(ExternalReferenceType... values) {
if (values!= null) {
for (ExternalReferenceType value: values) {
getExternalReference().add(value);
}
}
return this;
}
@Override
public PlantCoverType withExternalReference(Collection values) {
if (values!= null) {
getExternalReference().addAll(values);
}
return this;
}
@Override
public PlantCoverType withGeneralizesTo(GeneralizationRelationType... values) {
if (values!= null) {
for (GeneralizationRelationType value: values) {
getGeneralizesTo().add(value);
}
}
return this;
}
@Override
public PlantCoverType withGeneralizesTo(Collection values) {
if (values!= null) {
getGeneralizesTo().addAll(values);
}
return this;
}
@Override
public PlantCoverType withRelativeToTerrain(RelativeToTerrainType value) {
setRelativeToTerrain(value);
return this;
}
@Override
public PlantCoverType withRelativeToWater(RelativeToWaterType value) {
setRelativeToWater(value);
return this;
}
@Override
public PlantCoverType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) {
if (values!= null) {
for (JAXBElement value: values) {
getGenericApplicationPropertyOfCityObject().add(value);
}
}
return this;
}
@Override
public PlantCoverType withGenericApplicationPropertyOfCityObject(Collection> values) {
if (values!= null) {
getGenericApplicationPropertyOfCityObject().addAll(values);
}
return this;
}
@Override
public PlantCoverType withExternalReference(List value) {
setExternalReference(value);
return this;
}
@Override
public PlantCoverType withGeneralizesTo(List value) {
setGeneralizesTo(value);
return this;
}
@Override
public PlantCoverType withGenericApplicationPropertyOfCityObject(List> value) {
setGenericApplicationPropertyOfCityObject(value);
return this;
}
}