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.transportation.v_2_0.RoadType 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 roads. As subclass of _CityObject, a Road inherits all attributes and
* relations, in particular an id, names, external references, and generalization relations.
*
* Java class for RoadType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="RoadType">
* <complexContent>
* <extension base="{http://www.opengis.net/citygml/transportation/2.0}TransportationComplexType">
* <sequence>
* <element ref="{http://www.opengis.net/citygml/transportation/2.0}_GenericApplicationPropertyOfRoad" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RoadType", propOrder = {
"genericApplicationPropertyOfRoad"
})
public class RoadType
extends TransportationComplexType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(name = "_GenericApplicationPropertyOfRoad")
protected List genericApplicationPropertyOfRoad;
/**
* Gets the value of the genericApplicationPropertyOfRoad 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 genericApplicationPropertyOfRoad property.
*
*
* For example, to add a new item, do as follows:
*
* getGenericApplicationPropertyOfRoad().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List getGenericApplicationPropertyOfRoad() {
if (genericApplicationPropertyOfRoad == null) {
genericApplicationPropertyOfRoad = new ArrayList();
}
return this.genericApplicationPropertyOfRoad;
}
public boolean isSetGenericApplicationPropertyOfRoad() {
return ((this.genericApplicationPropertyOfRoad!= null)&&(!this.genericApplicationPropertyOfRoad.isEmpty()));
}
public void unsetGenericApplicationPropertyOfRoad() {
this.genericApplicationPropertyOfRoad = 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 theGenericApplicationPropertyOfRoad;
theGenericApplicationPropertyOfRoad = (this.isSetGenericApplicationPropertyOfRoad()?this.getGenericApplicationPropertyOfRoad():null);
strategy.appendField(locator, this, "genericApplicationPropertyOfRoad", buffer, theGenericApplicationPropertyOfRoad, this.isSetGenericApplicationPropertyOfRoad());
}
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 RoadType that = ((RoadType) object);
{
List lhsGenericApplicationPropertyOfRoad;
lhsGenericApplicationPropertyOfRoad = (this.isSetGenericApplicationPropertyOfRoad()?this.getGenericApplicationPropertyOfRoad():null);
List rhsGenericApplicationPropertyOfRoad;
rhsGenericApplicationPropertyOfRoad = (that.isSetGenericApplicationPropertyOfRoad()?that.getGenericApplicationPropertyOfRoad():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfRoad", lhsGenericApplicationPropertyOfRoad), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfRoad", rhsGenericApplicationPropertyOfRoad), lhsGenericApplicationPropertyOfRoad, rhsGenericApplicationPropertyOfRoad, this.isSetGenericApplicationPropertyOfRoad(), that.isSetGenericApplicationPropertyOfRoad())) {
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 theGenericApplicationPropertyOfRoad;
theGenericApplicationPropertyOfRoad = (this.isSetGenericApplicationPropertyOfRoad()?this.getGenericApplicationPropertyOfRoad():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfRoad", theGenericApplicationPropertyOfRoad), currentHashCode, theGenericApplicationPropertyOfRoad, this.isSetGenericApplicationPropertyOfRoad());
}
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 RoadType) {
final RoadType copy = ((RoadType) draftCopy);
{
Boolean genericApplicationPropertyOfRoadShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfRoad());
if (genericApplicationPropertyOfRoadShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGenericApplicationPropertyOfRoad;
sourceGenericApplicationPropertyOfRoad = (this.isSetGenericApplicationPropertyOfRoad()?this.getGenericApplicationPropertyOfRoad():null);
@SuppressWarnings("unchecked")
List copyGenericApplicationPropertyOfRoad = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfRoad", sourceGenericApplicationPropertyOfRoad), sourceGenericApplicationPropertyOfRoad, this.isSetGenericApplicationPropertyOfRoad()));
copy.unsetGenericApplicationPropertyOfRoad();
if (copyGenericApplicationPropertyOfRoad!= null) {
List uniqueGenericApplicationPropertyOfRoadl = copy.getGenericApplicationPropertyOfRoad();
uniqueGenericApplicationPropertyOfRoadl.addAll(copyGenericApplicationPropertyOfRoad);
}
} else {
if (genericApplicationPropertyOfRoadShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetGenericApplicationPropertyOfRoad();
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new RoadType();
}
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 RoadType) {
final RoadType target = this;
final RoadType leftObject = ((RoadType) left);
final RoadType rightObject = ((RoadType) right);
{
Boolean genericApplicationPropertyOfRoadShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfRoad(), rightObject.isSetGenericApplicationPropertyOfRoad());
if (genericApplicationPropertyOfRoadShouldBeMergedAndSet == Boolean.TRUE) {
List lhsGenericApplicationPropertyOfRoad;
lhsGenericApplicationPropertyOfRoad = (leftObject.isSetGenericApplicationPropertyOfRoad()?leftObject.getGenericApplicationPropertyOfRoad():null);
List rhsGenericApplicationPropertyOfRoad;
rhsGenericApplicationPropertyOfRoad = (rightObject.isSetGenericApplicationPropertyOfRoad()?rightObject.getGenericApplicationPropertyOfRoad():null);
List mergedGenericApplicationPropertyOfRoad = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfRoad", lhsGenericApplicationPropertyOfRoad), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfRoad", rhsGenericApplicationPropertyOfRoad), lhsGenericApplicationPropertyOfRoad, rhsGenericApplicationPropertyOfRoad, leftObject.isSetGenericApplicationPropertyOfRoad(), rightObject.isSetGenericApplicationPropertyOfRoad()));
target.unsetGenericApplicationPropertyOfRoad();
if (mergedGenericApplicationPropertyOfRoad!= null) {
List uniqueGenericApplicationPropertyOfRoadl = target.getGenericApplicationPropertyOfRoad();
uniqueGenericApplicationPropertyOfRoadl.addAll(mergedGenericApplicationPropertyOfRoad);
}
} else {
if (genericApplicationPropertyOfRoadShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetGenericApplicationPropertyOfRoad();
}
}
}
}
}
public void setGenericApplicationPropertyOfRoad(List value) {
this.genericApplicationPropertyOfRoad = null;
if (value!= null) {
List draftl = this.getGenericApplicationPropertyOfRoad();
draftl.addAll(value);
}
}
public RoadType withGenericApplicationPropertyOfRoad(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfRoad().add(value);
}
}
return this;
}
public RoadType withGenericApplicationPropertyOfRoad(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfRoad().addAll(values);
}
return this;
}
public RoadType withGenericApplicationPropertyOfRoad(List value) {
setGenericApplicationPropertyOfRoad(value);
return this;
}
@Override
public RoadType withClazz(CodeType value) {
setClazz(value);
return this;
}
@Override
public RoadType withFunction(CodeType... values) {
if (values!= null) {
for (CodeType value: values) {
getFunction().add(value);
}
}
return this;
}
@Override
public RoadType withFunction(Collection values) {
if (values!= null) {
getFunction().addAll(values);
}
return this;
}
@Override
public RoadType withUsage(CodeType... values) {
if (values!= null) {
for (CodeType value: values) {
getUsage().add(value);
}
}
return this;
}
@Override
public RoadType withUsage(Collection values) {
if (values!= null) {
getUsage().addAll(values);
}
return this;
}
@Override
public RoadType withTrafficArea(TrafficAreaPropertyType... values) {
if (values!= null) {
for (TrafficAreaPropertyType value: values) {
getTrafficArea().add(value);
}
}
return this;
}
@Override
public RoadType withTrafficArea(Collection values) {
if (values!= null) {
getTrafficArea().addAll(values);
}
return this;
}
@Override
public RoadType withAuxiliaryTrafficArea(AuxiliaryTrafficAreaPropertyType... values) {
if (values!= null) {
for (AuxiliaryTrafficAreaPropertyType value: values) {
getAuxiliaryTrafficArea().add(value);
}
}
return this;
}
@Override
public RoadType withAuxiliaryTrafficArea(Collection values) {
if (values!= null) {
getAuxiliaryTrafficArea().addAll(values);
}
return this;
}
@Override
public RoadType withLod0Network(GeometricComplexPropertyType... values) {
if (values!= null) {
for (GeometricComplexPropertyType value: values) {
getLod0Network().add(value);
}
}
return this;
}
@Override
public RoadType withLod0Network(Collection values) {
if (values!= null) {
getLod0Network().addAll(values);
}
return this;
}
@Override
public RoadType withLod1MultiSurface(MultiSurfacePropertyType value) {
setLod1MultiSurface(value);
return this;
}
@Override
public RoadType withLod2MultiSurface(MultiSurfacePropertyType value) {
setLod2MultiSurface(value);
return this;
}
@Override
public RoadType withLod3MultiSurface(MultiSurfacePropertyType value) {
setLod3MultiSurface(value);
return this;
}
@Override
public RoadType withLod4MultiSurface(MultiSurfacePropertyType value) {
setLod4MultiSurface(value);
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfTransportationComplex(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfTransportationComplex().add(value);
}
}
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfTransportationComplex(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfTransportationComplex().addAll(values);
}
return this;
}
@Override
public RoadType withFunction(List value) {
setFunction(value);
return this;
}
@Override
public RoadType withUsage(List value) {
setUsage(value);
return this;
}
@Override
public RoadType withTrafficArea(List value) {
setTrafficArea(value);
return this;
}
@Override
public RoadType withAuxiliaryTrafficArea(List value) {
setAuxiliaryTrafficArea(value);
return this;
}
@Override
public RoadType withLod0Network(List value) {
setLod0Network(value);
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfTransportationComplex(List value) {
setGenericApplicationPropertyOfTransportationComplex(value);
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfTransportationObject(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfTransportationObject().add(value);
}
}
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfTransportationObject(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfTransportationObject().addAll(values);
}
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfTransportationObject(List value) {
setGenericApplicationPropertyOfTransportationObject(value);
return this;
}
@Override
public RoadType withCreationDate(XMLGregorianCalendar value) {
setCreationDate(value);
return this;
}
@Override
public RoadType withTerminationDate(XMLGregorianCalendar value) {
setTerminationDate(value);
return this;
}
@Override
public RoadType withExternalReference(ExternalReferenceType... values) {
if (values!= null) {
for (ExternalReferenceType value: values) {
getExternalReference().add(value);
}
}
return this;
}
@Override
public RoadType withExternalReference(Collection values) {
if (values!= null) {
getExternalReference().addAll(values);
}
return this;
}
@Override
public RoadType withGeneralizesTo(GeneralizationRelationType... values) {
if (values!= null) {
for (GeneralizationRelationType value: values) {
getGeneralizesTo().add(value);
}
}
return this;
}
@Override
public RoadType withGeneralizesTo(Collection values) {
if (values!= null) {
getGeneralizesTo().addAll(values);
}
return this;
}
@Override
public RoadType withRelativeToTerrain(RelativeToTerrainType value) {
setRelativeToTerrain(value);
return this;
}
@Override
public RoadType withRelativeToWater(RelativeToWaterType value) {
setRelativeToWater(value);
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) {
if (values!= null) {
for (JAXBElement value: values) {
getGenericApplicationPropertyOfCityObject().add(value);
}
}
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfCityObject(Collection> values) {
if (values!= null) {
getGenericApplicationPropertyOfCityObject().addAll(values);
}
return this;
}
@Override
public RoadType withExternalReference(List value) {
setExternalReference(value);
return this;
}
@Override
public RoadType withGeneralizesTo(List value) {
setGeneralizesTo(value);
return this;
}
@Override
public RoadType withGenericApplicationPropertyOfCityObject(List> value) {
setGenericApplicationPropertyOfCityObject(value);
return this;
}
}