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

net.opengis.citygml.appearance.v_2_0.ParameterizedTextureType 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.appearance.v_2_0;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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 net.opengis.gml.v_3_1_1.CodeType;
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;


/**
 * Specialization for standard 2D textures. "target" provides the linking to surface geometry. Only
 * 				gml:MultiSurface and decendants of gml:AbstractSurfaceType are valid targets. As property of the link, a texture
 * 				parameterization either as set of texture coordinates or transformation matrix is given. 
 * 
 * 

Java class for ParameterizedTextureType complex type. * *

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

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

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

     *    getTarget().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TextureAssociationType } * * */ public List getTarget() { if (target == null) { target = new ArrayList(); } return this.target; } public boolean isSetTarget() { return ((this.target!= null)&&(!this.target.isEmpty())); } public void unsetTarget() { this.target = null; } /** * Gets the value of the genericApplicationPropertyOfParameterizedTexture 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 genericApplicationPropertyOfParameterizedTexture property. * *

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

     *    getGenericApplicationPropertyOfParameterizedTexture().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getGenericApplicationPropertyOfParameterizedTexture() { if (genericApplicationPropertyOfParameterizedTexture == null) { genericApplicationPropertyOfParameterizedTexture = new ArrayList(); } return this.genericApplicationPropertyOfParameterizedTexture; } public boolean isSetGenericApplicationPropertyOfParameterizedTexture() { return ((this.genericApplicationPropertyOfParameterizedTexture!= null)&&(!this.genericApplicationPropertyOfParameterizedTexture.isEmpty())); } public void unsetGenericApplicationPropertyOfParameterizedTexture() { this.genericApplicationPropertyOfParameterizedTexture = 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 theTarget; theTarget = (this.isSetTarget()?this.getTarget():null); strategy.appendField(locator, this, "target", buffer, theTarget, this.isSetTarget()); } { List theGenericApplicationPropertyOfParameterizedTexture; theGenericApplicationPropertyOfParameterizedTexture = (this.isSetGenericApplicationPropertyOfParameterizedTexture()?this.getGenericApplicationPropertyOfParameterizedTexture():null); strategy.appendField(locator, this, "genericApplicationPropertyOfParameterizedTexture", buffer, theGenericApplicationPropertyOfParameterizedTexture, this.isSetGenericApplicationPropertyOfParameterizedTexture()); } 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 ParameterizedTextureType that = ((ParameterizedTextureType) object); { List lhsTarget; lhsTarget = (this.isSetTarget()?this.getTarget():null); List rhsTarget; rhsTarget = (that.isSetTarget()?that.getTarget():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "target", lhsTarget), LocatorUtils.property(thatLocator, "target", rhsTarget), lhsTarget, rhsTarget, this.isSetTarget(), that.isSetTarget())) { return false; } } { List lhsGenericApplicationPropertyOfParameterizedTexture; lhsGenericApplicationPropertyOfParameterizedTexture = (this.isSetGenericApplicationPropertyOfParameterizedTexture()?this.getGenericApplicationPropertyOfParameterizedTexture():null); List rhsGenericApplicationPropertyOfParameterizedTexture; rhsGenericApplicationPropertyOfParameterizedTexture = (that.isSetGenericApplicationPropertyOfParameterizedTexture()?that.getGenericApplicationPropertyOfParameterizedTexture():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfParameterizedTexture", lhsGenericApplicationPropertyOfParameterizedTexture), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfParameterizedTexture", rhsGenericApplicationPropertyOfParameterizedTexture), lhsGenericApplicationPropertyOfParameterizedTexture, rhsGenericApplicationPropertyOfParameterizedTexture, this.isSetGenericApplicationPropertyOfParameterizedTexture(), that.isSetGenericApplicationPropertyOfParameterizedTexture())) { 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 theTarget; theTarget = (this.isSetTarget()?this.getTarget():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "target", theTarget), currentHashCode, theTarget, this.isSetTarget()); } { List theGenericApplicationPropertyOfParameterizedTexture; theGenericApplicationPropertyOfParameterizedTexture = (this.isSetGenericApplicationPropertyOfParameterizedTexture()?this.getGenericApplicationPropertyOfParameterizedTexture():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfParameterizedTexture", theGenericApplicationPropertyOfParameterizedTexture), currentHashCode, theGenericApplicationPropertyOfParameterizedTexture, this.isSetGenericApplicationPropertyOfParameterizedTexture()); } 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 ParameterizedTextureType) { final ParameterizedTextureType copy = ((ParameterizedTextureType) draftCopy); { Boolean targetShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetTarget()); if (targetShouldBeCopiedAndSet == Boolean.TRUE) { List sourceTarget; sourceTarget = (this.isSetTarget()?this.getTarget():null); @SuppressWarnings("unchecked") List copyTarget = ((List ) strategy.copy(LocatorUtils.property(locator, "target", sourceTarget), sourceTarget, this.isSetTarget())); copy.unsetTarget(); if (copyTarget!= null) { List uniqueTargetl = copy.getTarget(); uniqueTargetl.addAll(copyTarget); } } else { if (targetShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetTarget(); } } } { Boolean genericApplicationPropertyOfParameterizedTextureShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfParameterizedTexture()); if (genericApplicationPropertyOfParameterizedTextureShouldBeCopiedAndSet == Boolean.TRUE) { List sourceGenericApplicationPropertyOfParameterizedTexture; sourceGenericApplicationPropertyOfParameterizedTexture = (this.isSetGenericApplicationPropertyOfParameterizedTexture()?this.getGenericApplicationPropertyOfParameterizedTexture():null); @SuppressWarnings("unchecked") List copyGenericApplicationPropertyOfParameterizedTexture = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfParameterizedTexture", sourceGenericApplicationPropertyOfParameterizedTexture), sourceGenericApplicationPropertyOfParameterizedTexture, this.isSetGenericApplicationPropertyOfParameterizedTexture())); copy.unsetGenericApplicationPropertyOfParameterizedTexture(); if (copyGenericApplicationPropertyOfParameterizedTexture!= null) { List uniqueGenericApplicationPropertyOfParameterizedTexturel = copy.getGenericApplicationPropertyOfParameterizedTexture(); uniqueGenericApplicationPropertyOfParameterizedTexturel.addAll(copyGenericApplicationPropertyOfParameterizedTexture); } } else { if (genericApplicationPropertyOfParameterizedTextureShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetGenericApplicationPropertyOfParameterizedTexture(); } } } } return draftCopy; } public Object createNewInstance() { return new ParameterizedTextureType(); } 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 ParameterizedTextureType) { final ParameterizedTextureType target = this; final ParameterizedTextureType leftObject = ((ParameterizedTextureType) left); final ParameterizedTextureType rightObject = ((ParameterizedTextureType) right); { Boolean targetShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetTarget(), rightObject.isSetTarget()); if (targetShouldBeMergedAndSet == Boolean.TRUE) { List lhsTarget; lhsTarget = (leftObject.isSetTarget()?leftObject.getTarget():null); List rhsTarget; rhsTarget = (rightObject.isSetTarget()?rightObject.getTarget():null); List mergedTarget = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "target", lhsTarget), LocatorUtils.property(rightLocator, "target", rhsTarget), lhsTarget, rhsTarget, leftObject.isSetTarget(), rightObject.isSetTarget())); target.unsetTarget(); if (mergedTarget!= null) { List uniqueTargetl = target.getTarget(); uniqueTargetl.addAll(mergedTarget); } } else { if (targetShouldBeMergedAndSet == Boolean.FALSE) { target.unsetTarget(); } } } { Boolean genericApplicationPropertyOfParameterizedTextureShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfParameterizedTexture(), rightObject.isSetGenericApplicationPropertyOfParameterizedTexture()); if (genericApplicationPropertyOfParameterizedTextureShouldBeMergedAndSet == Boolean.TRUE) { List lhsGenericApplicationPropertyOfParameterizedTexture; lhsGenericApplicationPropertyOfParameterizedTexture = (leftObject.isSetGenericApplicationPropertyOfParameterizedTexture()?leftObject.getGenericApplicationPropertyOfParameterizedTexture():null); List rhsGenericApplicationPropertyOfParameterizedTexture; rhsGenericApplicationPropertyOfParameterizedTexture = (rightObject.isSetGenericApplicationPropertyOfParameterizedTexture()?rightObject.getGenericApplicationPropertyOfParameterizedTexture():null); List mergedGenericApplicationPropertyOfParameterizedTexture = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfParameterizedTexture", lhsGenericApplicationPropertyOfParameterizedTexture), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfParameterizedTexture", rhsGenericApplicationPropertyOfParameterizedTexture), lhsGenericApplicationPropertyOfParameterizedTexture, rhsGenericApplicationPropertyOfParameterizedTexture, leftObject.isSetGenericApplicationPropertyOfParameterizedTexture(), rightObject.isSetGenericApplicationPropertyOfParameterizedTexture())); target.unsetGenericApplicationPropertyOfParameterizedTexture(); if (mergedGenericApplicationPropertyOfParameterizedTexture!= null) { List uniqueGenericApplicationPropertyOfParameterizedTexturel = target.getGenericApplicationPropertyOfParameterizedTexture(); uniqueGenericApplicationPropertyOfParameterizedTexturel.addAll(mergedGenericApplicationPropertyOfParameterizedTexture); } } else { if (genericApplicationPropertyOfParameterizedTextureShouldBeMergedAndSet == Boolean.FALSE) { target.unsetGenericApplicationPropertyOfParameterizedTexture(); } } } } } public void setTarget(List value) { this.target = null; if (value!= null) { List draftl = this.getTarget(); draftl.addAll(value); } } public void setGenericApplicationPropertyOfParameterizedTexture(List value) { this.genericApplicationPropertyOfParameterizedTexture = null; if (value!= null) { List draftl = this.getGenericApplicationPropertyOfParameterizedTexture(); draftl.addAll(value); } } public ParameterizedTextureType withTarget(TextureAssociationType... values) { if (values!= null) { for (TextureAssociationType value: values) { getTarget().add(value); } } return this; } public ParameterizedTextureType withTarget(Collection values) { if (values!= null) { getTarget().addAll(values); } return this; } public ParameterizedTextureType withGenericApplicationPropertyOfParameterizedTexture(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfParameterizedTexture().add(value); } } return this; } public ParameterizedTextureType withGenericApplicationPropertyOfParameterizedTexture(Collection values) { if (values!= null) { getGenericApplicationPropertyOfParameterizedTexture().addAll(values); } return this; } public ParameterizedTextureType withTarget(List value) { setTarget(value); return this; } public ParameterizedTextureType withGenericApplicationPropertyOfParameterizedTexture(List value) { setGenericApplicationPropertyOfParameterizedTexture(value); return this; } @Override public ParameterizedTextureType withImageURI(String value) { setImageURI(value); return this; } @Override public ParameterizedTextureType withMimeType(CodeType value) { setMimeType(value); return this; } @Override public ParameterizedTextureType withTextureType(TextureTypeType value) { setTextureType(value); return this; } @Override public ParameterizedTextureType withWrapMode(WrapModeType value) { setWrapMode(value); return this; } @Override public ParameterizedTextureType withBorderColor(Double... values) { if (values!= null) { for (Double value: values) { getBorderColor().add(value); } } return this; } @Override public ParameterizedTextureType withBorderColor(Collection values) { if (values!= null) { getBorderColor().addAll(values); } return this; } @Override public ParameterizedTextureType withGenericApplicationPropertyOfTexture(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfTexture().add(value); } } return this; } @Override public ParameterizedTextureType withGenericApplicationPropertyOfTexture(Collection values) { if (values!= null) { getGenericApplicationPropertyOfTexture().addAll(values); } return this; } @Override public ParameterizedTextureType withBorderColor(List value) { setBorderColor(value); return this; } @Override public ParameterizedTextureType withGenericApplicationPropertyOfTexture(List value) { setGenericApplicationPropertyOfTexture(value); return this; } @Override public ParameterizedTextureType withIsFront(Boolean value) { setIsFront(value); return this; } @Override public ParameterizedTextureType withGenericApplicationPropertyOfSurfaceData(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfSurfaceData().add(value); } } return this; } @Override public ParameterizedTextureType withGenericApplicationPropertyOfSurfaceData(Collection values) { if (values!= null) { getGenericApplicationPropertyOfSurfaceData().addAll(values); } return this; } @Override public ParameterizedTextureType withGenericApplicationPropertyOfSurfaceData(List value) { setGenericApplicationPropertyOfSurfaceData(value); return this; } }