Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.opengis.citygml.bridge.v_2_0.DoorType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.26 at 04:41:00 PM AST
//
package net.opengis.citygml.bridge.v_2_0;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import net.opengis.citygml.v_2_0.AddressPropertyType;
import net.opengis.citygml.v_2_0.ExternalReferenceType;
import net.opengis.citygml.v_2_0.GeneralizationRelationType;
import net.opengis.citygml.v_2_0.ImplicitRepresentationPropertyType;
import net.opengis.citygml.v_2_0.RelativeToTerrainType;
import net.opengis.citygml.v_2_0.RelativeToWaterType;
import net.opengis.gml.v_3_1_1.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 for doors in boundary surfaces. Used in LoD3 and LoD4 only . As subclass of _CityObject, a Door
* inherits all attributes and relations, in particular an id, names, external references, generic attributes and
* generalization relations.
*
* Java class for DoorType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="DoorType">
* <complexContent>
* <extension base="{http://www.opengis.net/citygml/bridge/2.0}AbstractOpeningType">
* <sequence>
* <element name="address" type="{http://www.opengis.net/citygml/2.0}AddressPropertyType" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.opengis.net/citygml/bridge/2.0}_GenericApplicationPropertyOfDoor" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DoorType", propOrder = {
"address",
"genericApplicationPropertyOfDoor"
})
public class DoorType
extends AbstractOpeningType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
protected List address;
@XmlElement(name = "_GenericApplicationPropertyOfDoor")
protected List genericApplicationPropertyOfDoor;
/**
* Gets the value of the address 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 address property.
*
*
* For example, to add a new item, do as follows:
*
* getAddress().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AddressPropertyType }
*
*
*/
public List getAddress() {
if (address == null) {
address = new ArrayList();
}
return this.address;
}
public boolean isSetAddress() {
return ((this.address!= null)&&(!this.address.isEmpty()));
}
public void unsetAddress() {
this.address = null;
}
/**
* Gets the value of the genericApplicationPropertyOfDoor 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 genericApplicationPropertyOfDoor property.
*
*
* For example, to add a new item, do as follows:
*
* getGenericApplicationPropertyOfDoor().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List getGenericApplicationPropertyOfDoor() {
if (genericApplicationPropertyOfDoor == null) {
genericApplicationPropertyOfDoor = new ArrayList();
}
return this.genericApplicationPropertyOfDoor;
}
public boolean isSetGenericApplicationPropertyOfDoor() {
return ((this.genericApplicationPropertyOfDoor!= null)&&(!this.genericApplicationPropertyOfDoor.isEmpty()));
}
public void unsetGenericApplicationPropertyOfDoor() {
this.genericApplicationPropertyOfDoor = 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 theAddress;
theAddress = (this.isSetAddress()?this.getAddress():null);
strategy.appendField(locator, this, "address", buffer, theAddress, this.isSetAddress());
}
{
List theGenericApplicationPropertyOfDoor;
theGenericApplicationPropertyOfDoor = (this.isSetGenericApplicationPropertyOfDoor()?this.getGenericApplicationPropertyOfDoor():null);
strategy.appendField(locator, this, "genericApplicationPropertyOfDoor", buffer, theGenericApplicationPropertyOfDoor, this.isSetGenericApplicationPropertyOfDoor());
}
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 DoorType that = ((DoorType) object);
{
List lhsAddress;
lhsAddress = (this.isSetAddress()?this.getAddress():null);
List rhsAddress;
rhsAddress = (that.isSetAddress()?that.getAddress():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "address", lhsAddress), LocatorUtils.property(thatLocator, "address", rhsAddress), lhsAddress, rhsAddress, this.isSetAddress(), that.isSetAddress())) {
return false;
}
}
{
List lhsGenericApplicationPropertyOfDoor;
lhsGenericApplicationPropertyOfDoor = (this.isSetGenericApplicationPropertyOfDoor()?this.getGenericApplicationPropertyOfDoor():null);
List rhsGenericApplicationPropertyOfDoor;
rhsGenericApplicationPropertyOfDoor = (that.isSetGenericApplicationPropertyOfDoor()?that.getGenericApplicationPropertyOfDoor():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfDoor", lhsGenericApplicationPropertyOfDoor), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfDoor", rhsGenericApplicationPropertyOfDoor), lhsGenericApplicationPropertyOfDoor, rhsGenericApplicationPropertyOfDoor, this.isSetGenericApplicationPropertyOfDoor(), that.isSetGenericApplicationPropertyOfDoor())) {
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 theAddress;
theAddress = (this.isSetAddress()?this.getAddress():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "address", theAddress), currentHashCode, theAddress, this.isSetAddress());
}
{
List theGenericApplicationPropertyOfDoor;
theGenericApplicationPropertyOfDoor = (this.isSetGenericApplicationPropertyOfDoor()?this.getGenericApplicationPropertyOfDoor():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfDoor", theGenericApplicationPropertyOfDoor), currentHashCode, theGenericApplicationPropertyOfDoor, this.isSetGenericApplicationPropertyOfDoor());
}
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 DoorType) {
final DoorType copy = ((DoorType) draftCopy);
{
Boolean addressShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAddress());
if (addressShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceAddress;
sourceAddress = (this.isSetAddress()?this.getAddress():null);
@SuppressWarnings("unchecked")
List copyAddress = ((List ) strategy.copy(LocatorUtils.property(locator, "address", sourceAddress), sourceAddress, this.isSetAddress()));
copy.unsetAddress();
if (copyAddress!= null) {
List uniqueAddressl = copy.getAddress();
uniqueAddressl.addAll(copyAddress);
}
} else {
if (addressShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetAddress();
}
}
}
{
Boolean genericApplicationPropertyOfDoorShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfDoor());
if (genericApplicationPropertyOfDoorShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGenericApplicationPropertyOfDoor;
sourceGenericApplicationPropertyOfDoor = (this.isSetGenericApplicationPropertyOfDoor()?this.getGenericApplicationPropertyOfDoor():null);
@SuppressWarnings("unchecked")
List copyGenericApplicationPropertyOfDoor = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfDoor", sourceGenericApplicationPropertyOfDoor), sourceGenericApplicationPropertyOfDoor, this.isSetGenericApplicationPropertyOfDoor()));
copy.unsetGenericApplicationPropertyOfDoor();
if (copyGenericApplicationPropertyOfDoor!= null) {
List uniqueGenericApplicationPropertyOfDoorl = copy.getGenericApplicationPropertyOfDoor();
uniqueGenericApplicationPropertyOfDoorl.addAll(copyGenericApplicationPropertyOfDoor);
}
} else {
if (genericApplicationPropertyOfDoorShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetGenericApplicationPropertyOfDoor();
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new DoorType();
}
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 DoorType) {
final DoorType target = this;
final DoorType leftObject = ((DoorType) left);
final DoorType rightObject = ((DoorType) right);
{
Boolean addressShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAddress(), rightObject.isSetAddress());
if (addressShouldBeMergedAndSet == Boolean.TRUE) {
List lhsAddress;
lhsAddress = (leftObject.isSetAddress()?leftObject.getAddress():null);
List rhsAddress;
rhsAddress = (rightObject.isSetAddress()?rightObject.getAddress():null);
List mergedAddress = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "address", lhsAddress), LocatorUtils.property(rightLocator, "address", rhsAddress), lhsAddress, rhsAddress, leftObject.isSetAddress(), rightObject.isSetAddress()));
target.unsetAddress();
if (mergedAddress!= null) {
List uniqueAddressl = target.getAddress();
uniqueAddressl.addAll(mergedAddress);
}
} else {
if (addressShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetAddress();
}
}
}
{
Boolean genericApplicationPropertyOfDoorShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfDoor(), rightObject.isSetGenericApplicationPropertyOfDoor());
if (genericApplicationPropertyOfDoorShouldBeMergedAndSet == Boolean.TRUE) {
List lhsGenericApplicationPropertyOfDoor;
lhsGenericApplicationPropertyOfDoor = (leftObject.isSetGenericApplicationPropertyOfDoor()?leftObject.getGenericApplicationPropertyOfDoor():null);
List rhsGenericApplicationPropertyOfDoor;
rhsGenericApplicationPropertyOfDoor = (rightObject.isSetGenericApplicationPropertyOfDoor()?rightObject.getGenericApplicationPropertyOfDoor():null);
List mergedGenericApplicationPropertyOfDoor = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfDoor", lhsGenericApplicationPropertyOfDoor), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfDoor", rhsGenericApplicationPropertyOfDoor), lhsGenericApplicationPropertyOfDoor, rhsGenericApplicationPropertyOfDoor, leftObject.isSetGenericApplicationPropertyOfDoor(), rightObject.isSetGenericApplicationPropertyOfDoor()));
target.unsetGenericApplicationPropertyOfDoor();
if (mergedGenericApplicationPropertyOfDoor!= null) {
List uniqueGenericApplicationPropertyOfDoorl = target.getGenericApplicationPropertyOfDoor();
uniqueGenericApplicationPropertyOfDoorl.addAll(mergedGenericApplicationPropertyOfDoor);
}
} else {
if (genericApplicationPropertyOfDoorShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetGenericApplicationPropertyOfDoor();
}
}
}
}
}
public void setAddress(List value) {
this.address = null;
if (value!= null) {
List draftl = this.getAddress();
draftl.addAll(value);
}
}
public void setGenericApplicationPropertyOfDoor(List value) {
this.genericApplicationPropertyOfDoor = null;
if (value!= null) {
List draftl = this.getGenericApplicationPropertyOfDoor();
draftl.addAll(value);
}
}
public DoorType withAddress(AddressPropertyType... values) {
if (values!= null) {
for (AddressPropertyType value: values) {
getAddress().add(value);
}
}
return this;
}
public DoorType withAddress(Collection values) {
if (values!= null) {
getAddress().addAll(values);
}
return this;
}
public DoorType withGenericApplicationPropertyOfDoor(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfDoor().add(value);
}
}
return this;
}
public DoorType withGenericApplicationPropertyOfDoor(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfDoor().addAll(values);
}
return this;
}
public DoorType withAddress(List value) {
setAddress(value);
return this;
}
public DoorType withGenericApplicationPropertyOfDoor(List value) {
setGenericApplicationPropertyOfDoor(value);
return this;
}
@Override
public DoorType withLod3MultiSurface(MultiSurfacePropertyType value) {
setLod3MultiSurface(value);
return this;
}
@Override
public DoorType withLod4MultiSurface(MultiSurfacePropertyType value) {
setLod4MultiSurface(value);
return this;
}
@Override
public DoorType withLod3ImplicitRepresentation(ImplicitRepresentationPropertyType value) {
setLod3ImplicitRepresentation(value);
return this;
}
@Override
public DoorType withLod4ImplicitRepresentation(ImplicitRepresentationPropertyType value) {
setLod4ImplicitRepresentation(value);
return this;
}
@Override
public DoorType withGenericApplicationPropertyOfOpening(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfOpening().add(value);
}
}
return this;
}
@Override
public DoorType withGenericApplicationPropertyOfOpening(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfOpening().addAll(values);
}
return this;
}
@Override
public DoorType withGenericApplicationPropertyOfOpening(List value) {
setGenericApplicationPropertyOfOpening(value);
return this;
}
@Override
public DoorType withCreationDate(XMLGregorianCalendar value) {
setCreationDate(value);
return this;
}
@Override
public DoorType withTerminationDate(XMLGregorianCalendar value) {
setTerminationDate(value);
return this;
}
@Override
public DoorType withExternalReference(ExternalReferenceType... values) {
if (values!= null) {
for (ExternalReferenceType value: values) {
getExternalReference().add(value);
}
}
return this;
}
@Override
public DoorType withExternalReference(Collection values) {
if (values!= null) {
getExternalReference().addAll(values);
}
return this;
}
@Override
public DoorType withGeneralizesTo(GeneralizationRelationType... values) {
if (values!= null) {
for (GeneralizationRelationType value: values) {
getGeneralizesTo().add(value);
}
}
return this;
}
@Override
public DoorType withGeneralizesTo(Collection values) {
if (values!= null) {
getGeneralizesTo().addAll(values);
}
return this;
}
@Override
public DoorType withRelativeToTerrain(RelativeToTerrainType value) {
setRelativeToTerrain(value);
return this;
}
@Override
public DoorType withRelativeToWater(RelativeToWaterType value) {
setRelativeToWater(value);
return this;
}
@Override
public DoorType withGenericApplicationPropertyOfCityObject(JAXBElement ... values) {
if (values!= null) {
for (JAXBElement value: values) {
getGenericApplicationPropertyOfCityObject().add(value);
}
}
return this;
}
@Override
public DoorType withGenericApplicationPropertyOfCityObject(Collection> values) {
if (values!= null) {
getGenericApplicationPropertyOfCityObject().addAll(values);
}
return this;
}
@Override
public DoorType withExternalReference(List value) {
setExternalReference(value);
return this;
}
@Override
public DoorType withGeneralizesTo(List value) {
setGeneralizesTo(value);
return this;
}
@Override
public DoorType withGenericApplicationPropertyOfCityObject(List> value) {
setGenericApplicationPropertyOfCityObject(value);
return this;
}
}