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

net.opengis.citygml.transportation.v_2_0.TrackType 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.transportation.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.GeometricComplexPropertyType;
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 the class for tracks. A track is a small path mainly used by pedestrians. As subclass of
 * 				_CityObject, a Track inherits all attributes and relations, in particular an id, names, external references, and
 * 				generalization relations. 
 * 
 * 

Java class for TrackType complex type. * *

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

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

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

     *    getGenericApplicationPropertyOfTrack().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getGenericApplicationPropertyOfTrack() { if (genericApplicationPropertyOfTrack == null) { genericApplicationPropertyOfTrack = new ArrayList(); } return this.genericApplicationPropertyOfTrack; } public boolean isSetGenericApplicationPropertyOfTrack() { return ((this.genericApplicationPropertyOfTrack!= null)&&(!this.genericApplicationPropertyOfTrack.isEmpty())); } public void unsetGenericApplicationPropertyOfTrack() { this.genericApplicationPropertyOfTrack = 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 theGenericApplicationPropertyOfTrack; theGenericApplicationPropertyOfTrack = (this.isSetGenericApplicationPropertyOfTrack()?this.getGenericApplicationPropertyOfTrack():null); strategy.appendField(locator, this, "genericApplicationPropertyOfTrack", buffer, theGenericApplicationPropertyOfTrack, this.isSetGenericApplicationPropertyOfTrack()); } 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 TrackType that = ((TrackType) object); { List lhsGenericApplicationPropertyOfTrack; lhsGenericApplicationPropertyOfTrack = (this.isSetGenericApplicationPropertyOfTrack()?this.getGenericApplicationPropertyOfTrack():null); List rhsGenericApplicationPropertyOfTrack; rhsGenericApplicationPropertyOfTrack = (that.isSetGenericApplicationPropertyOfTrack()?that.getGenericApplicationPropertyOfTrack():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfTrack", lhsGenericApplicationPropertyOfTrack), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfTrack", rhsGenericApplicationPropertyOfTrack), lhsGenericApplicationPropertyOfTrack, rhsGenericApplicationPropertyOfTrack, this.isSetGenericApplicationPropertyOfTrack(), that.isSetGenericApplicationPropertyOfTrack())) { 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 theGenericApplicationPropertyOfTrack; theGenericApplicationPropertyOfTrack = (this.isSetGenericApplicationPropertyOfTrack()?this.getGenericApplicationPropertyOfTrack():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfTrack", theGenericApplicationPropertyOfTrack), currentHashCode, theGenericApplicationPropertyOfTrack, this.isSetGenericApplicationPropertyOfTrack()); } 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 TrackType) { final TrackType copy = ((TrackType) draftCopy); { Boolean genericApplicationPropertyOfTrackShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfTrack()); if (genericApplicationPropertyOfTrackShouldBeCopiedAndSet == Boolean.TRUE) { List sourceGenericApplicationPropertyOfTrack; sourceGenericApplicationPropertyOfTrack = (this.isSetGenericApplicationPropertyOfTrack()?this.getGenericApplicationPropertyOfTrack():null); @SuppressWarnings("unchecked") List copyGenericApplicationPropertyOfTrack = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfTrack", sourceGenericApplicationPropertyOfTrack), sourceGenericApplicationPropertyOfTrack, this.isSetGenericApplicationPropertyOfTrack())); copy.unsetGenericApplicationPropertyOfTrack(); if (copyGenericApplicationPropertyOfTrack!= null) { List uniqueGenericApplicationPropertyOfTrackl = copy.getGenericApplicationPropertyOfTrack(); uniqueGenericApplicationPropertyOfTrackl.addAll(copyGenericApplicationPropertyOfTrack); } } else { if (genericApplicationPropertyOfTrackShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetGenericApplicationPropertyOfTrack(); } } } } return draftCopy; } public Object createNewInstance() { return new TrackType(); } 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 TrackType) { final TrackType target = this; final TrackType leftObject = ((TrackType) left); final TrackType rightObject = ((TrackType) right); { Boolean genericApplicationPropertyOfTrackShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfTrack(), rightObject.isSetGenericApplicationPropertyOfTrack()); if (genericApplicationPropertyOfTrackShouldBeMergedAndSet == Boolean.TRUE) { List lhsGenericApplicationPropertyOfTrack; lhsGenericApplicationPropertyOfTrack = (leftObject.isSetGenericApplicationPropertyOfTrack()?leftObject.getGenericApplicationPropertyOfTrack():null); List rhsGenericApplicationPropertyOfTrack; rhsGenericApplicationPropertyOfTrack = (rightObject.isSetGenericApplicationPropertyOfTrack()?rightObject.getGenericApplicationPropertyOfTrack():null); List mergedGenericApplicationPropertyOfTrack = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfTrack", lhsGenericApplicationPropertyOfTrack), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfTrack", rhsGenericApplicationPropertyOfTrack), lhsGenericApplicationPropertyOfTrack, rhsGenericApplicationPropertyOfTrack, leftObject.isSetGenericApplicationPropertyOfTrack(), rightObject.isSetGenericApplicationPropertyOfTrack())); target.unsetGenericApplicationPropertyOfTrack(); if (mergedGenericApplicationPropertyOfTrack!= null) { List uniqueGenericApplicationPropertyOfTrackl = target.getGenericApplicationPropertyOfTrack(); uniqueGenericApplicationPropertyOfTrackl.addAll(mergedGenericApplicationPropertyOfTrack); } } else { if (genericApplicationPropertyOfTrackShouldBeMergedAndSet == Boolean.FALSE) { target.unsetGenericApplicationPropertyOfTrack(); } } } } } public void setGenericApplicationPropertyOfTrack(List value) { this.genericApplicationPropertyOfTrack = null; if (value!= null) { List draftl = this.getGenericApplicationPropertyOfTrack(); draftl.addAll(value); } } public TrackType withGenericApplicationPropertyOfTrack(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfTrack().add(value); } } return this; } public TrackType withGenericApplicationPropertyOfTrack(Collection values) { if (values!= null) { getGenericApplicationPropertyOfTrack().addAll(values); } return this; } public TrackType withGenericApplicationPropertyOfTrack(List value) { setGenericApplicationPropertyOfTrack(value); return this; } @Override public TrackType withClazz(CodeType value) { setClazz(value); return this; } @Override public TrackType withFunction(CodeType... values) { if (values!= null) { for (CodeType value: values) { getFunction().add(value); } } return this; } @Override public TrackType withFunction(Collection values) { if (values!= null) { getFunction().addAll(values); } return this; } @Override public TrackType withUsage(CodeType... values) { if (values!= null) { for (CodeType value: values) { getUsage().add(value); } } return this; } @Override public TrackType withUsage(Collection values) { if (values!= null) { getUsage().addAll(values); } return this; } @Override public TrackType withTrafficArea(TrafficAreaPropertyType... values) { if (values!= null) { for (TrafficAreaPropertyType value: values) { getTrafficArea().add(value); } } return this; } @Override public TrackType withTrafficArea(Collection values) { if (values!= null) { getTrafficArea().addAll(values); } return this; } @Override public TrackType withAuxiliaryTrafficArea(AuxiliaryTrafficAreaPropertyType... values) { if (values!= null) { for (AuxiliaryTrafficAreaPropertyType value: values) { getAuxiliaryTrafficArea().add(value); } } return this; } @Override public TrackType withAuxiliaryTrafficArea(Collection values) { if (values!= null) { getAuxiliaryTrafficArea().addAll(values); } return this; } @Override public TrackType withLod0Network(GeometricComplexPropertyType... values) { if (values!= null) { for (GeometricComplexPropertyType value: values) { getLod0Network().add(value); } } return this; } @Override public TrackType withLod0Network(Collection values) { if (values!= null) { getLod0Network().addAll(values); } return this; } @Override public TrackType withLod1MultiSurface(MultiSurfacePropertyType value) { setLod1MultiSurface(value); return this; } @Override public TrackType withLod2MultiSurface(MultiSurfacePropertyType value) { setLod2MultiSurface(value); return this; } @Override public TrackType withLod3MultiSurface(MultiSurfacePropertyType value) { setLod3MultiSurface(value); return this; } @Override public TrackType withLod4MultiSurface(MultiSurfacePropertyType value) { setLod4MultiSurface(value); return this; } @Override public TrackType withGenericApplicationPropertyOfTransportationComplex(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfTransportationComplex().add(value); } } return this; } @Override public TrackType withGenericApplicationPropertyOfTransportationComplex(Collection values) { if (values!= null) { getGenericApplicationPropertyOfTransportationComplex().addAll(values); } return this; } @Override public TrackType withFunction(List value) { setFunction(value); return this; } @Override public TrackType withUsage(List value) { setUsage(value); return this; } @Override public TrackType withTrafficArea(List value) { setTrafficArea(value); return this; } @Override public TrackType withAuxiliaryTrafficArea(List value) { setAuxiliaryTrafficArea(value); return this; } @Override public TrackType withLod0Network(List value) { setLod0Network(value); return this; } @Override public TrackType withGenericApplicationPropertyOfTransportationComplex(List value) { setGenericApplicationPropertyOfTransportationComplex(value); return this; } @Override public TrackType withGenericApplicationPropertyOfTransportationObject(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfTransportationObject().add(value); } } return this; } @Override public TrackType withGenericApplicationPropertyOfTransportationObject(Collection values) { if (values!= null) { getGenericApplicationPropertyOfTransportationObject().addAll(values); } return this; } @Override public TrackType withGenericApplicationPropertyOfTransportationObject(List value) { setGenericApplicationPropertyOfTransportationObject(value); return this; } @Override public TrackType withCreationDate(XMLGregorianCalendar value) { setCreationDate(value); return this; } @Override public TrackType withTerminationDate(XMLGregorianCalendar value) { setTerminationDate(value); return this; } @Override public TrackType withExternalReference(ExternalReferenceType... values) { if (values!= null) { for (ExternalReferenceType value: values) { getExternalReference().add(value); } } return this; } @Override public TrackType withExternalReference(Collection values) { if (values!= null) { getExternalReference().addAll(values); } return this; } @Override public TrackType withGeneralizesTo(GeneralizationRelationType... values) { if (values!= null) { for (GeneralizationRelationType value: values) { getGeneralizesTo().add(value); } } return this; } @Override public TrackType withGeneralizesTo(Collection values) { if (values!= null) { getGeneralizesTo().addAll(values); } return this; } @Override public TrackType withRelativeToTerrain(RelativeToTerrainType value) { setRelativeToTerrain(value); return this; } @Override public TrackType withRelativeToWater(RelativeToWaterType value) { setRelativeToWater(value); return this; } @Override public TrackType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) { if (values!= null) { for (JAXBElement value: values) { getGenericApplicationPropertyOfCityObject().add(value); } } return this; } @Override public TrackType withGenericApplicationPropertyOfCityObject(Collection> values) { if (values!= null) { getGenericApplicationPropertyOfCityObject().addAll(values); } return this; } @Override public TrackType withExternalReference(List value) { setExternalReference(value); return this; } @Override public TrackType withGeneralizesTo(List value) { setGeneralizesTo(value); return this; } @Override public TrackType withGenericApplicationPropertyOfCityObject(List> value) { setGenericApplicationPropertyOfCityObject(value); return this; } }