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

net.opengis.citygml.tunnel.v_2_0.TunnelPartType 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.tunnel.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.MultiCurvePropertyType;
import net.opengis.gml.v_3_1_1.MultiSurfacePropertyType;
import net.opengis.gml.v_3_1_1.SolidPropertyType;
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 Tunnel composed of structural segments differing in important geometrical or semantical properties can
 * 				be separated into one Tunnel and additional TunnelParts. 
 * 
 * 

Java class for TunnelPartType complex type. * *

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

 * <complexType name="TunnelPartType">
 *   <complexContent>
 *     <extension base="{http://www.opengis.net/citygml/tunnel/2.0}AbstractTunnelType">
 *       <sequence>
 *         <element ref="{http://www.opengis.net/citygml/tunnel/2.0}_GenericApplicationPropertyOfTunnelPart" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TunnelPartType", propOrder = { "genericApplicationPropertyOfTunnelPart" }) public class TunnelPartType extends AbstractTunnelType implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(name = "_GenericApplicationPropertyOfTunnelPart") protected List genericApplicationPropertyOfTunnelPart; /** * Gets the value of the genericApplicationPropertyOfTunnelPart 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 genericApplicationPropertyOfTunnelPart property. * *

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

     *    getGenericApplicationPropertyOfTunnelPart().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getGenericApplicationPropertyOfTunnelPart() { if (genericApplicationPropertyOfTunnelPart == null) { genericApplicationPropertyOfTunnelPart = new ArrayList(); } return this.genericApplicationPropertyOfTunnelPart; } public boolean isSetGenericApplicationPropertyOfTunnelPart() { return ((this.genericApplicationPropertyOfTunnelPart!= null)&&(!this.genericApplicationPropertyOfTunnelPart.isEmpty())); } public void unsetGenericApplicationPropertyOfTunnelPart() { this.genericApplicationPropertyOfTunnelPart = null; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { List theGenericApplicationPropertyOfTunnelPart; theGenericApplicationPropertyOfTunnelPart = (this.isSetGenericApplicationPropertyOfTunnelPart()?this.getGenericApplicationPropertyOfTunnelPart():null); strategy.appendField(locator, this, "genericApplicationPropertyOfTunnelPart", buffer, theGenericApplicationPropertyOfTunnelPart, this.isSetGenericApplicationPropertyOfTunnelPart()); } 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 TunnelPartType that = ((TunnelPartType) object); { List lhsGenericApplicationPropertyOfTunnelPart; lhsGenericApplicationPropertyOfTunnelPart = (this.isSetGenericApplicationPropertyOfTunnelPart()?this.getGenericApplicationPropertyOfTunnelPart():null); List rhsGenericApplicationPropertyOfTunnelPart; rhsGenericApplicationPropertyOfTunnelPart = (that.isSetGenericApplicationPropertyOfTunnelPart()?that.getGenericApplicationPropertyOfTunnelPart():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfTunnelPart", lhsGenericApplicationPropertyOfTunnelPart), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfTunnelPart", rhsGenericApplicationPropertyOfTunnelPart), lhsGenericApplicationPropertyOfTunnelPart, rhsGenericApplicationPropertyOfTunnelPart, this.isSetGenericApplicationPropertyOfTunnelPart(), that.isSetGenericApplicationPropertyOfTunnelPart())) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { List theGenericApplicationPropertyOfTunnelPart; theGenericApplicationPropertyOfTunnelPart = (this.isSetGenericApplicationPropertyOfTunnelPart()?this.getGenericApplicationPropertyOfTunnelPart():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfTunnelPart", theGenericApplicationPropertyOfTunnelPart), currentHashCode, theGenericApplicationPropertyOfTunnelPart, this.isSetGenericApplicationPropertyOfTunnelPart()); } 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 TunnelPartType) { final TunnelPartType copy = ((TunnelPartType) draftCopy); { Boolean genericApplicationPropertyOfTunnelPartShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfTunnelPart()); if (genericApplicationPropertyOfTunnelPartShouldBeCopiedAndSet == Boolean.TRUE) { List sourceGenericApplicationPropertyOfTunnelPart; sourceGenericApplicationPropertyOfTunnelPart = (this.isSetGenericApplicationPropertyOfTunnelPart()?this.getGenericApplicationPropertyOfTunnelPart():null); @SuppressWarnings("unchecked") List copyGenericApplicationPropertyOfTunnelPart = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfTunnelPart", sourceGenericApplicationPropertyOfTunnelPart), sourceGenericApplicationPropertyOfTunnelPart, this.isSetGenericApplicationPropertyOfTunnelPart())); copy.unsetGenericApplicationPropertyOfTunnelPart(); if (copyGenericApplicationPropertyOfTunnelPart!= null) { List uniqueGenericApplicationPropertyOfTunnelPartl = copy.getGenericApplicationPropertyOfTunnelPart(); uniqueGenericApplicationPropertyOfTunnelPartl.addAll(copyGenericApplicationPropertyOfTunnelPart); } } else { if (genericApplicationPropertyOfTunnelPartShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetGenericApplicationPropertyOfTunnelPart(); } } } } return draftCopy; } public Object createNewInstance() { return new TunnelPartType(); } 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 TunnelPartType) { final TunnelPartType target = this; final TunnelPartType leftObject = ((TunnelPartType) left); final TunnelPartType rightObject = ((TunnelPartType) right); { Boolean genericApplicationPropertyOfTunnelPartShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfTunnelPart(), rightObject.isSetGenericApplicationPropertyOfTunnelPart()); if (genericApplicationPropertyOfTunnelPartShouldBeMergedAndSet == Boolean.TRUE) { List lhsGenericApplicationPropertyOfTunnelPart; lhsGenericApplicationPropertyOfTunnelPart = (leftObject.isSetGenericApplicationPropertyOfTunnelPart()?leftObject.getGenericApplicationPropertyOfTunnelPart():null); List rhsGenericApplicationPropertyOfTunnelPart; rhsGenericApplicationPropertyOfTunnelPart = (rightObject.isSetGenericApplicationPropertyOfTunnelPart()?rightObject.getGenericApplicationPropertyOfTunnelPart():null); List mergedGenericApplicationPropertyOfTunnelPart = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfTunnelPart", lhsGenericApplicationPropertyOfTunnelPart), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfTunnelPart", rhsGenericApplicationPropertyOfTunnelPart), lhsGenericApplicationPropertyOfTunnelPart, rhsGenericApplicationPropertyOfTunnelPart, leftObject.isSetGenericApplicationPropertyOfTunnelPart(), rightObject.isSetGenericApplicationPropertyOfTunnelPart())); target.unsetGenericApplicationPropertyOfTunnelPart(); if (mergedGenericApplicationPropertyOfTunnelPart!= null) { List uniqueGenericApplicationPropertyOfTunnelPartl = target.getGenericApplicationPropertyOfTunnelPart(); uniqueGenericApplicationPropertyOfTunnelPartl.addAll(mergedGenericApplicationPropertyOfTunnelPart); } } else { if (genericApplicationPropertyOfTunnelPartShouldBeMergedAndSet == Boolean.FALSE) { target.unsetGenericApplicationPropertyOfTunnelPart(); } } } } } public void setGenericApplicationPropertyOfTunnelPart(List value) { this.genericApplicationPropertyOfTunnelPart = null; if (value!= null) { List draftl = this.getGenericApplicationPropertyOfTunnelPart(); draftl.addAll(value); } } public TunnelPartType withGenericApplicationPropertyOfTunnelPart(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfTunnelPart().add(value); } } return this; } public TunnelPartType withGenericApplicationPropertyOfTunnelPart(Collection values) { if (values!= null) { getGenericApplicationPropertyOfTunnelPart().addAll(values); } return this; } public TunnelPartType withGenericApplicationPropertyOfTunnelPart(List value) { setGenericApplicationPropertyOfTunnelPart(value); return this; } @Override public TunnelPartType withClazz(CodeType value) { setClazz(value); return this; } @Override public TunnelPartType withFunction(CodeType... values) { if (values!= null) { for (CodeType value: values) { getFunction().add(value); } } return this; } @Override public TunnelPartType withFunction(Collection values) { if (values!= null) { getFunction().addAll(values); } return this; } @Override public TunnelPartType withUsage(CodeType... values) { if (values!= null) { for (CodeType value: values) { getUsage().add(value); } } return this; } @Override public TunnelPartType withUsage(Collection values) { if (values!= null) { getUsage().addAll(values); } return this; } @Override public TunnelPartType withYearOfConstruction(XMLGregorianCalendar value) { setYearOfConstruction(value); return this; } @Override public TunnelPartType withYearOfDemolition(XMLGregorianCalendar value) { setYearOfDemolition(value); return this; } @Override public TunnelPartType withLod1Solid(SolidPropertyType value) { setLod1Solid(value); return this; } @Override public TunnelPartType withLod1MultiSurface(MultiSurfacePropertyType value) { setLod1MultiSurface(value); return this; } @Override public TunnelPartType withLod1TerrainIntersection(MultiCurvePropertyType value) { setLod1TerrainIntersection(value); return this; } @Override public TunnelPartType withLod2Solid(SolidPropertyType value) { setLod2Solid(value); return this; } @Override public TunnelPartType withLod2MultiSurface(MultiSurfacePropertyType value) { setLod2MultiSurface(value); return this; } @Override public TunnelPartType withLod2MultiCurve(MultiCurvePropertyType value) { setLod2MultiCurve(value); return this; } @Override public TunnelPartType withLod2TerrainIntersection(MultiCurvePropertyType value) { setLod2TerrainIntersection(value); return this; } @Override public TunnelPartType withOuterTunnelInstallation(TunnelInstallationPropertyType... values) { if (values!= null) { for (TunnelInstallationPropertyType value: values) { getOuterTunnelInstallation().add(value); } } return this; } @Override public TunnelPartType withOuterTunnelInstallation(Collection values) { if (values!= null) { getOuterTunnelInstallation().addAll(values); } return this; } @Override public TunnelPartType withInteriorTunnelInstallation(IntTunnelInstallationPropertyType... values) { if (values!= null) { for (IntTunnelInstallationPropertyType value: values) { getInteriorTunnelInstallation().add(value); } } return this; } @Override public TunnelPartType withInteriorTunnelInstallation(Collection values) { if (values!= null) { getInteriorTunnelInstallation().addAll(values); } return this; } @Override public TunnelPartType withCityObjectBoundedBy(BoundarySurfacePropertyType... values) { if (values!= null) { for (BoundarySurfacePropertyType value: values) { getCityObjectBoundedBy().add(value); } } return this; } @Override public TunnelPartType withCityObjectBoundedBy(Collection values) { if (values!= null) { getCityObjectBoundedBy().addAll(values); } return this; } @Override public TunnelPartType withLod3Solid(SolidPropertyType value) { setLod3Solid(value); return this; } @Override public TunnelPartType withLod3MultiSurface(MultiSurfacePropertyType value) { setLod3MultiSurface(value); return this; } @Override public TunnelPartType withLod3MultiCurve(MultiCurvePropertyType value) { setLod3MultiCurve(value); return this; } @Override public TunnelPartType withLod3TerrainIntersection(MultiCurvePropertyType value) { setLod3TerrainIntersection(value); return this; } @Override public TunnelPartType withLod4Solid(SolidPropertyType value) { setLod4Solid(value); return this; } @Override public TunnelPartType withLod4MultiSurface(MultiSurfacePropertyType value) { setLod4MultiSurface(value); return this; } @Override public TunnelPartType withLod4MultiCurve(MultiCurvePropertyType value) { setLod4MultiCurve(value); return this; } @Override public TunnelPartType withLod4TerrainIntersection(MultiCurvePropertyType value) { setLod4TerrainIntersection(value); return this; } @Override public TunnelPartType withInteriorHollowSpace(InteriorHollowSpacePropertyType... values) { if (values!= null) { for (InteriorHollowSpacePropertyType value: values) { getInteriorHollowSpace().add(value); } } return this; } @Override public TunnelPartType withInteriorHollowSpace(Collection values) { if (values!= null) { getInteriorHollowSpace().addAll(values); } return this; } @Override public TunnelPartType withConsistsOfTunnelPart(TunnelPartPropertyType... values) { if (values!= null) { for (TunnelPartPropertyType value: values) { getConsistsOfTunnelPart().add(value); } } return this; } @Override public TunnelPartType withConsistsOfTunnelPart(Collection values) { if (values!= null) { getConsistsOfTunnelPart().addAll(values); } return this; } @Override public TunnelPartType withGenericApplicationPropertyOfAbstractTunnel(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfAbstractTunnel().add(value); } } return this; } @Override public TunnelPartType withGenericApplicationPropertyOfAbstractTunnel(Collection values) { if (values!= null) { getGenericApplicationPropertyOfAbstractTunnel().addAll(values); } return this; } @Override public TunnelPartType withFunction(List value) { setFunction(value); return this; } @Override public TunnelPartType withUsage(List value) { setUsage(value); return this; } @Override public TunnelPartType withOuterTunnelInstallation(List value) { setOuterTunnelInstallation(value); return this; } @Override public TunnelPartType withInteriorTunnelInstallation(List value) { setInteriorTunnelInstallation(value); return this; } @Override public TunnelPartType withCityObjectBoundedBy(List value) { setCityObjectBoundedBy(value); return this; } @Override public TunnelPartType withInteriorHollowSpace(List value) { setInteriorHollowSpace(value); return this; } @Override public TunnelPartType withConsistsOfTunnelPart(List value) { setConsistsOfTunnelPart(value); return this; } @Override public TunnelPartType withGenericApplicationPropertyOfAbstractTunnel(List value) { setGenericApplicationPropertyOfAbstractTunnel(value); return this; } @Override public TunnelPartType withGenericApplicationPropertyOfSite(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfSite().add(value); } } return this; } @Override public TunnelPartType withGenericApplicationPropertyOfSite(Collection values) { if (values!= null) { getGenericApplicationPropertyOfSite().addAll(values); } return this; } @Override public TunnelPartType withGenericApplicationPropertyOfSite(List value) { setGenericApplicationPropertyOfSite(value); return this; } @Override public TunnelPartType withCreationDate(XMLGregorianCalendar value) { setCreationDate(value); return this; } @Override public TunnelPartType withTerminationDate(XMLGregorianCalendar value) { setTerminationDate(value); return this; } @Override public TunnelPartType withExternalReference(ExternalReferenceType... values) { if (values!= null) { for (ExternalReferenceType value: values) { getExternalReference().add(value); } } return this; } @Override public TunnelPartType withExternalReference(Collection values) { if (values!= null) { getExternalReference().addAll(values); } return this; } @Override public TunnelPartType withGeneralizesTo(GeneralizationRelationType... values) { if (values!= null) { for (GeneralizationRelationType value: values) { getGeneralizesTo().add(value); } } return this; } @Override public TunnelPartType withGeneralizesTo(Collection values) { if (values!= null) { getGeneralizesTo().addAll(values); } return this; } @Override public TunnelPartType withRelativeToTerrain(RelativeToTerrainType value) { setRelativeToTerrain(value); return this; } @Override public TunnelPartType withRelativeToWater(RelativeToWaterType value) { setRelativeToWater(value); return this; } @Override public TunnelPartType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) { if (values!= null) { for (JAXBElement value: values) { getGenericApplicationPropertyOfCityObject().add(value); } } return this; } @Override public TunnelPartType withGenericApplicationPropertyOfCityObject(Collection> values) { if (values!= null) { getGenericApplicationPropertyOfCityObject().addAll(values); } return this; } @Override public TunnelPartType withExternalReference(List value) { setExternalReference(value); return this; } @Override public TunnelPartType withGeneralizesTo(List value) { setGeneralizesTo(value); return this; } @Override public TunnelPartType withGenericApplicationPropertyOfCityObject(List> value) { setGenericApplicationPropertyOfCityObject(value); return this; } }