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.appearance.v_2_0.TexCoordGenType 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.math.BigInteger;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
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;
/**
* Texture parameterization using a transformation matrix. The transformation matrix "worldToTexture" can be
* used to derive texture coordinates from an object's location. This 3x4 matrix T computes the coordinates (s,t) from a
* homogeneous world position p as (s,t) = (s'/q', t'/q') with (s', t', q') = T*p. Thus, perspective projections can be
* specified. The SRS can be specified using standard attributes. If an object is given in a different reference system, it
* is transformed to the SRS before applying the transformation. A transformation matrix can be used for whole surfaces. It
* is not required to specify it per LinearRing.
*
* Java class for TexCoordGenType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TexCoordGenType">
* <complexContent>
* <extension base="{http://www.opengis.net/citygml/appearance/2.0}AbstractTextureParameterizationType">
* <sequence>
* <element name="worldToTexture">
* <complexType>
* <simpleContent>
* <extension base="<http://www.opengis.net/citygml/2.0>TransformationMatrix3x4Type">
* <attGroup ref="{http://www.opengis.net/gml}SRSReferenceGroup"/>
* </extension>
* </simpleContent>
* </complexType>
* </element>
* <element ref="{http://www.opengis.net/citygml/appearance/2.0}_GenericApplicationPropertyOfTexCoordGen" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TexCoordGenType", propOrder = {
"worldToTexture",
"genericApplicationPropertyOfTexCoordGen"
})
public class TexCoordGenType
extends AbstractTextureParameterizationType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(required = true)
protected TexCoordGenType.WorldToTexture worldToTexture;
@XmlElement(name = "_GenericApplicationPropertyOfTexCoordGen")
protected List genericApplicationPropertyOfTexCoordGen;
/**
* Gets the value of the worldToTexture property.
*
* @return
* possible object is
* {@link TexCoordGenType.WorldToTexture }
*
*/
public TexCoordGenType.WorldToTexture getWorldToTexture() {
return worldToTexture;
}
/**
* Sets the value of the worldToTexture property.
*
* @param value
* allowed object is
* {@link TexCoordGenType.WorldToTexture }
*
*/
public void setWorldToTexture(TexCoordGenType.WorldToTexture value) {
this.worldToTexture = value;
}
public boolean isSetWorldToTexture() {
return (this.worldToTexture!= null);
}
/**
* Gets the value of the genericApplicationPropertyOfTexCoordGen 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 genericApplicationPropertyOfTexCoordGen property.
*
*
* For example, to add a new item, do as follows:
*
* getGenericApplicationPropertyOfTexCoordGen().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List getGenericApplicationPropertyOfTexCoordGen() {
if (genericApplicationPropertyOfTexCoordGen == null) {
genericApplicationPropertyOfTexCoordGen = new ArrayList();
}
return this.genericApplicationPropertyOfTexCoordGen;
}
public boolean isSetGenericApplicationPropertyOfTexCoordGen() {
return ((this.genericApplicationPropertyOfTexCoordGen!= null)&&(!this.genericApplicationPropertyOfTexCoordGen.isEmpty()));
}
public void unsetGenericApplicationPropertyOfTexCoordGen() {
this.genericApplicationPropertyOfTexCoordGen = 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);
{
TexCoordGenType.WorldToTexture theWorldToTexture;
theWorldToTexture = this.getWorldToTexture();
strategy.appendField(locator, this, "worldToTexture", buffer, theWorldToTexture, this.isSetWorldToTexture());
}
{
List theGenericApplicationPropertyOfTexCoordGen;
theGenericApplicationPropertyOfTexCoordGen = (this.isSetGenericApplicationPropertyOfTexCoordGen()?this.getGenericApplicationPropertyOfTexCoordGen():null);
strategy.appendField(locator, this, "genericApplicationPropertyOfTexCoordGen", buffer, theGenericApplicationPropertyOfTexCoordGen, this.isSetGenericApplicationPropertyOfTexCoordGen());
}
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 TexCoordGenType that = ((TexCoordGenType) object);
{
TexCoordGenType.WorldToTexture lhsWorldToTexture;
lhsWorldToTexture = this.getWorldToTexture();
TexCoordGenType.WorldToTexture rhsWorldToTexture;
rhsWorldToTexture = that.getWorldToTexture();
if (!strategy.equals(LocatorUtils.property(thisLocator, "worldToTexture", lhsWorldToTexture), LocatorUtils.property(thatLocator, "worldToTexture", rhsWorldToTexture), lhsWorldToTexture, rhsWorldToTexture, this.isSetWorldToTexture(), that.isSetWorldToTexture())) {
return false;
}
}
{
List lhsGenericApplicationPropertyOfTexCoordGen;
lhsGenericApplicationPropertyOfTexCoordGen = (this.isSetGenericApplicationPropertyOfTexCoordGen()?this.getGenericApplicationPropertyOfTexCoordGen():null);
List rhsGenericApplicationPropertyOfTexCoordGen;
rhsGenericApplicationPropertyOfTexCoordGen = (that.isSetGenericApplicationPropertyOfTexCoordGen()?that.getGenericApplicationPropertyOfTexCoordGen():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfTexCoordGen", lhsGenericApplicationPropertyOfTexCoordGen), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfTexCoordGen", rhsGenericApplicationPropertyOfTexCoordGen), lhsGenericApplicationPropertyOfTexCoordGen, rhsGenericApplicationPropertyOfTexCoordGen, this.isSetGenericApplicationPropertyOfTexCoordGen(), that.isSetGenericApplicationPropertyOfTexCoordGen())) {
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);
{
TexCoordGenType.WorldToTexture theWorldToTexture;
theWorldToTexture = this.getWorldToTexture();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "worldToTexture", theWorldToTexture), currentHashCode, theWorldToTexture, this.isSetWorldToTexture());
}
{
List theGenericApplicationPropertyOfTexCoordGen;
theGenericApplicationPropertyOfTexCoordGen = (this.isSetGenericApplicationPropertyOfTexCoordGen()?this.getGenericApplicationPropertyOfTexCoordGen():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfTexCoordGen", theGenericApplicationPropertyOfTexCoordGen), currentHashCode, theGenericApplicationPropertyOfTexCoordGen, this.isSetGenericApplicationPropertyOfTexCoordGen());
}
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 TexCoordGenType) {
final TexCoordGenType copy = ((TexCoordGenType) draftCopy);
{
Boolean worldToTextureShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetWorldToTexture());
if (worldToTextureShouldBeCopiedAndSet == Boolean.TRUE) {
TexCoordGenType.WorldToTexture sourceWorldToTexture;
sourceWorldToTexture = this.getWorldToTexture();
TexCoordGenType.WorldToTexture copyWorldToTexture = ((TexCoordGenType.WorldToTexture) strategy.copy(LocatorUtils.property(locator, "worldToTexture", sourceWorldToTexture), sourceWorldToTexture, this.isSetWorldToTexture()));
copy.setWorldToTexture(copyWorldToTexture);
} else {
if (worldToTextureShouldBeCopiedAndSet == Boolean.FALSE) {
copy.worldToTexture = null;
}
}
}
{
Boolean genericApplicationPropertyOfTexCoordGenShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfTexCoordGen());
if (genericApplicationPropertyOfTexCoordGenShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGenericApplicationPropertyOfTexCoordGen;
sourceGenericApplicationPropertyOfTexCoordGen = (this.isSetGenericApplicationPropertyOfTexCoordGen()?this.getGenericApplicationPropertyOfTexCoordGen():null);
@SuppressWarnings("unchecked")
List copyGenericApplicationPropertyOfTexCoordGen = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfTexCoordGen", sourceGenericApplicationPropertyOfTexCoordGen), sourceGenericApplicationPropertyOfTexCoordGen, this.isSetGenericApplicationPropertyOfTexCoordGen()));
copy.unsetGenericApplicationPropertyOfTexCoordGen();
if (copyGenericApplicationPropertyOfTexCoordGen!= null) {
List uniqueGenericApplicationPropertyOfTexCoordGenl = copy.getGenericApplicationPropertyOfTexCoordGen();
uniqueGenericApplicationPropertyOfTexCoordGenl.addAll(copyGenericApplicationPropertyOfTexCoordGen);
}
} else {
if (genericApplicationPropertyOfTexCoordGenShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetGenericApplicationPropertyOfTexCoordGen();
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new TexCoordGenType();
}
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 TexCoordGenType) {
final TexCoordGenType target = this;
final TexCoordGenType leftObject = ((TexCoordGenType) left);
final TexCoordGenType rightObject = ((TexCoordGenType) right);
{
Boolean worldToTextureShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetWorldToTexture(), rightObject.isSetWorldToTexture());
if (worldToTextureShouldBeMergedAndSet == Boolean.TRUE) {
TexCoordGenType.WorldToTexture lhsWorldToTexture;
lhsWorldToTexture = leftObject.getWorldToTexture();
TexCoordGenType.WorldToTexture rhsWorldToTexture;
rhsWorldToTexture = rightObject.getWorldToTexture();
TexCoordGenType.WorldToTexture mergedWorldToTexture = ((TexCoordGenType.WorldToTexture) strategy.merge(LocatorUtils.property(leftLocator, "worldToTexture", lhsWorldToTexture), LocatorUtils.property(rightLocator, "worldToTexture", rhsWorldToTexture), lhsWorldToTexture, rhsWorldToTexture, leftObject.isSetWorldToTexture(), rightObject.isSetWorldToTexture()));
target.setWorldToTexture(mergedWorldToTexture);
} else {
if (worldToTextureShouldBeMergedAndSet == Boolean.FALSE) {
target.worldToTexture = null;
}
}
}
{
Boolean genericApplicationPropertyOfTexCoordGenShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfTexCoordGen(), rightObject.isSetGenericApplicationPropertyOfTexCoordGen());
if (genericApplicationPropertyOfTexCoordGenShouldBeMergedAndSet == Boolean.TRUE) {
List lhsGenericApplicationPropertyOfTexCoordGen;
lhsGenericApplicationPropertyOfTexCoordGen = (leftObject.isSetGenericApplicationPropertyOfTexCoordGen()?leftObject.getGenericApplicationPropertyOfTexCoordGen():null);
List rhsGenericApplicationPropertyOfTexCoordGen;
rhsGenericApplicationPropertyOfTexCoordGen = (rightObject.isSetGenericApplicationPropertyOfTexCoordGen()?rightObject.getGenericApplicationPropertyOfTexCoordGen():null);
List mergedGenericApplicationPropertyOfTexCoordGen = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfTexCoordGen", lhsGenericApplicationPropertyOfTexCoordGen), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfTexCoordGen", rhsGenericApplicationPropertyOfTexCoordGen), lhsGenericApplicationPropertyOfTexCoordGen, rhsGenericApplicationPropertyOfTexCoordGen, leftObject.isSetGenericApplicationPropertyOfTexCoordGen(), rightObject.isSetGenericApplicationPropertyOfTexCoordGen()));
target.unsetGenericApplicationPropertyOfTexCoordGen();
if (mergedGenericApplicationPropertyOfTexCoordGen!= null) {
List uniqueGenericApplicationPropertyOfTexCoordGenl = target.getGenericApplicationPropertyOfTexCoordGen();
uniqueGenericApplicationPropertyOfTexCoordGenl.addAll(mergedGenericApplicationPropertyOfTexCoordGen);
}
} else {
if (genericApplicationPropertyOfTexCoordGenShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetGenericApplicationPropertyOfTexCoordGen();
}
}
}
}
}
public void setGenericApplicationPropertyOfTexCoordGen(List value) {
this.genericApplicationPropertyOfTexCoordGen = null;
if (value!= null) {
List draftl = this.getGenericApplicationPropertyOfTexCoordGen();
draftl.addAll(value);
}
}
public TexCoordGenType withWorldToTexture(TexCoordGenType.WorldToTexture value) {
setWorldToTexture(value);
return this;
}
public TexCoordGenType withGenericApplicationPropertyOfTexCoordGen(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfTexCoordGen().add(value);
}
}
return this;
}
public TexCoordGenType withGenericApplicationPropertyOfTexCoordGen(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfTexCoordGen().addAll(values);
}
return this;
}
public TexCoordGenType withGenericApplicationPropertyOfTexCoordGen(List value) {
setGenericApplicationPropertyOfTexCoordGen(value);
return this;
}
@Override
public TexCoordGenType withGenericApplicationPropertyOfTextureParameterization(Object... values) {
if (values!= null) {
for (Object value: values) {
getGenericApplicationPropertyOfTextureParameterization().add(value);
}
}
return this;
}
@Override
public TexCoordGenType withGenericApplicationPropertyOfTextureParameterization(Collection values) {
if (values!= null) {
getGenericApplicationPropertyOfTextureParameterization().addAll(values);
}
return this;
}
@Override
public TexCoordGenType withGenericApplicationPropertyOfTextureParameterization(List value) {
setGenericApplicationPropertyOfTextureParameterization(value);
return this;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <simpleContent>
* <extension base="<http://www.opengis.net/citygml/2.0>TransformationMatrix3x4Type">
* <attGroup ref="{http://www.opengis.net/gml}SRSReferenceGroup"/>
* </extension>
* </simpleContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"value"
})
public static class WorldToTexture implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlValue
protected List value;
@XmlAttribute(name = "srsName")
@XmlSchemaType(name = "anyURI")
protected String srsName;
@XmlAttribute(name = "srsDimension")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger srsDimension;
@XmlAttribute(name = "axisLabels")
protected List axisLabels;
@XmlAttribute(name = "uomLabels")
protected List uomLabels;
/**
* Used for texture parameterization. The Transformation matrix is a 3 by 4 matrix, thus it must be a list
* with 12 items. The order the matrix element are represented is row-major, i. e. the first 4 elements represent the first
* row, the fifth to the eight element the second row,... Gets the value of the value 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 value property.
*
*
* For example, to add a new item, do as follows:
*
* getValue().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Double }
*
*
*/
public List getValue() {
if (value == null) {
value = new ArrayList();
}
return this.value;
}
public boolean isSetValue() {
return ((this.value!= null)&&(!this.value.isEmpty()));
}
public void unsetValue() {
this.value = null;
}
/**
* Gets the value of the srsName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSrsName() {
return srsName;
}
/**
* Sets the value of the srsName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSrsName(String value) {
this.srsName = value;
}
public boolean isSetSrsName() {
return (this.srsName!= null);
}
/**
* Gets the value of the srsDimension property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSrsDimension() {
return srsDimension;
}
/**
* Sets the value of the srsDimension property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSrsDimension(BigInteger value) {
this.srsDimension = value;
}
public boolean isSetSrsDimension() {
return (this.srsDimension!= null);
}
/**
* Gets the value of the axisLabels 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 axisLabels property.
*
*
* For example, to add a new item, do as follows:
*
* getAxisLabels().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getAxisLabels() {
if (axisLabels == null) {
axisLabels = new ArrayList();
}
return this.axisLabels;
}
public boolean isSetAxisLabels() {
return ((this.axisLabels!= null)&&(!this.axisLabels.isEmpty()));
}
public void unsetAxisLabels() {
this.axisLabels = null;
}
/**
* Gets the value of the uomLabels 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 uomLabels property.
*
*
* For example, to add a new item, do as follows:
*
* getUomLabels().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getUomLabels() {
if (uomLabels == null) {
uomLabels = new ArrayList();
}
return this.uomLabels;
}
public boolean isSetUomLabels() {
return ((this.uomLabels!= null)&&(!this.uomLabels.isEmpty()));
}
public void unsetUomLabels() {
this.uomLabels = 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) {
{
List theValue;
theValue = (this.isSetValue()?this.getValue():null);
strategy.appendField(locator, this, "value", buffer, theValue, this.isSetValue());
}
{
String theSrsName;
theSrsName = this.getSrsName();
strategy.appendField(locator, this, "srsName", buffer, theSrsName, this.isSetSrsName());
}
{
BigInteger theSrsDimension;
theSrsDimension = this.getSrsDimension();
strategy.appendField(locator, this, "srsDimension", buffer, theSrsDimension, this.isSetSrsDimension());
}
{
List theAxisLabels;
theAxisLabels = (this.isSetAxisLabels()?this.getAxisLabels():null);
strategy.appendField(locator, this, "axisLabels", buffer, theAxisLabels, this.isSetAxisLabels());
}
{
List theUomLabels;
theUomLabels = (this.isSetUomLabels()?this.getUomLabels():null);
strategy.appendField(locator, this, "uomLabels", buffer, theUomLabels, this.isSetUomLabels());
}
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;
}
final TexCoordGenType.WorldToTexture that = ((TexCoordGenType.WorldToTexture) object);
{
List lhsValue;
lhsValue = (this.isSetValue()?this.getValue():null);
List rhsValue;
rhsValue = (that.isSetValue()?that.getValue():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property(thatLocator, "value", rhsValue), lhsValue, rhsValue, this.isSetValue(), that.isSetValue())) {
return false;
}
}
{
String lhsSrsName;
lhsSrsName = this.getSrsName();
String rhsSrsName;
rhsSrsName = that.getSrsName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "srsName", lhsSrsName), LocatorUtils.property(thatLocator, "srsName", rhsSrsName), lhsSrsName, rhsSrsName, this.isSetSrsName(), that.isSetSrsName())) {
return false;
}
}
{
BigInteger lhsSrsDimension;
lhsSrsDimension = this.getSrsDimension();
BigInteger rhsSrsDimension;
rhsSrsDimension = that.getSrsDimension();
if (!strategy.equals(LocatorUtils.property(thisLocator, "srsDimension", lhsSrsDimension), LocatorUtils.property(thatLocator, "srsDimension", rhsSrsDimension), lhsSrsDimension, rhsSrsDimension, this.isSetSrsDimension(), that.isSetSrsDimension())) {
return false;
}
}
{
List lhsAxisLabels;
lhsAxisLabels = (this.isSetAxisLabels()?this.getAxisLabels():null);
List rhsAxisLabels;
rhsAxisLabels = (that.isSetAxisLabels()?that.getAxisLabels():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "axisLabels", lhsAxisLabels), LocatorUtils.property(thatLocator, "axisLabels", rhsAxisLabels), lhsAxisLabels, rhsAxisLabels, this.isSetAxisLabels(), that.isSetAxisLabels())) {
return false;
}
}
{
List lhsUomLabels;
lhsUomLabels = (this.isSetUomLabels()?this.getUomLabels():null);
List rhsUomLabels;
rhsUomLabels = (that.isSetUomLabels()?that.getUomLabels():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "uomLabels", lhsUomLabels), LocatorUtils.property(thatLocator, "uomLabels", rhsUomLabels), lhsUomLabels, rhsUomLabels, this.isSetUomLabels(), that.isSetUomLabels())) {
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 = 1;
{
List theValue;
theValue = (this.isSetValue()?this.getValue():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue, this.isSetValue());
}
{
String theSrsName;
theSrsName = this.getSrsName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "srsName", theSrsName), currentHashCode, theSrsName, this.isSetSrsName());
}
{
BigInteger theSrsDimension;
theSrsDimension = this.getSrsDimension();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "srsDimension", theSrsDimension), currentHashCode, theSrsDimension, this.isSetSrsDimension());
}
{
List theAxisLabels;
theAxisLabels = (this.isSetAxisLabels()?this.getAxisLabels():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "axisLabels", theAxisLabels), currentHashCode, theAxisLabels, this.isSetAxisLabels());
}
{
List theUomLabels;
theUomLabels = (this.isSetUomLabels()?this.getUomLabels():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "uomLabels", theUomLabels), currentHashCode, theUomLabels, this.isSetUomLabels());
}
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);
if (draftCopy instanceof TexCoordGenType.WorldToTexture) {
final TexCoordGenType.WorldToTexture copy = ((TexCoordGenType.WorldToTexture) draftCopy);
{
Boolean valueShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetValue());
if (valueShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceValue;
sourceValue = (this.isSetValue()?this.getValue():null);
@SuppressWarnings("unchecked")
List copyValue = ((List ) strategy.copy(LocatorUtils.property(locator, "value", sourceValue), sourceValue, this.isSetValue()));
copy.unsetValue();
if (copyValue!= null) {
List uniqueValuel = copy.getValue();
uniqueValuel.addAll(copyValue);
}
} else {
if (valueShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetValue();
}
}
}
{
Boolean srsNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetSrsName());
if (srsNameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceSrsName;
sourceSrsName = this.getSrsName();
String copySrsName = ((String) strategy.copy(LocatorUtils.property(locator, "srsName", sourceSrsName), sourceSrsName, this.isSetSrsName()));
copy.setSrsName(copySrsName);
} else {
if (srsNameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.srsName = null;
}
}
}
{
Boolean srsDimensionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetSrsDimension());
if (srsDimensionShouldBeCopiedAndSet == Boolean.TRUE) {
BigInteger sourceSrsDimension;
sourceSrsDimension = this.getSrsDimension();
BigInteger copySrsDimension = ((BigInteger) strategy.copy(LocatorUtils.property(locator, "srsDimension", sourceSrsDimension), sourceSrsDimension, this.isSetSrsDimension()));
copy.setSrsDimension(copySrsDimension);
} else {
if (srsDimensionShouldBeCopiedAndSet == Boolean.FALSE) {
copy.srsDimension = null;
}
}
}
{
Boolean axisLabelsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAxisLabels());
if (axisLabelsShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceAxisLabels;
sourceAxisLabels = (this.isSetAxisLabels()?this.getAxisLabels():null);
@SuppressWarnings("unchecked")
List copyAxisLabels = ((List ) strategy.copy(LocatorUtils.property(locator, "axisLabels", sourceAxisLabels), sourceAxisLabels, this.isSetAxisLabels()));
copy.unsetAxisLabels();
if (copyAxisLabels!= null) {
List uniqueAxisLabelsl = copy.getAxisLabels();
uniqueAxisLabelsl.addAll(copyAxisLabels);
}
} else {
if (axisLabelsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetAxisLabels();
}
}
}
{
Boolean uomLabelsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetUomLabels());
if (uomLabelsShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceUomLabels;
sourceUomLabels = (this.isSetUomLabels()?this.getUomLabels():null);
@SuppressWarnings("unchecked")
List copyUomLabels = ((List ) strategy.copy(LocatorUtils.property(locator, "uomLabels", sourceUomLabels), sourceUomLabels, this.isSetUomLabels()));
copy.unsetUomLabels();
if (copyUomLabels!= null) {
List uniqueUomLabelsl = copy.getUomLabels();
uniqueUomLabelsl.addAll(copyUomLabels);
}
} else {
if (uomLabelsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetUomLabels();
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new TexCoordGenType.WorldToTexture();
}
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) {
if (right instanceof TexCoordGenType.WorldToTexture) {
final TexCoordGenType.WorldToTexture target = this;
final TexCoordGenType.WorldToTexture leftObject = ((TexCoordGenType.WorldToTexture) left);
final TexCoordGenType.WorldToTexture rightObject = ((TexCoordGenType.WorldToTexture) right);
{
Boolean valueShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetValue(), rightObject.isSetValue());
if (valueShouldBeMergedAndSet == Boolean.TRUE) {
List lhsValue;
lhsValue = (leftObject.isSetValue()?leftObject.getValue():null);
List rhsValue;
rhsValue = (rightObject.isSetValue()?rightObject.getValue():null);
List mergedValue = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "value", lhsValue), LocatorUtils.property(rightLocator, "value", rhsValue), lhsValue, rhsValue, leftObject.isSetValue(), rightObject.isSetValue()));
target.unsetValue();
if (mergedValue!= null) {
List uniqueValuel = target.getValue();
uniqueValuel.addAll(mergedValue);
}
} else {
if (valueShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetValue();
}
}
}
{
Boolean srsNameShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetSrsName(), rightObject.isSetSrsName());
if (srsNameShouldBeMergedAndSet == Boolean.TRUE) {
String lhsSrsName;
lhsSrsName = leftObject.getSrsName();
String rhsSrsName;
rhsSrsName = rightObject.getSrsName();
String mergedSrsName = ((String) strategy.merge(LocatorUtils.property(leftLocator, "srsName", lhsSrsName), LocatorUtils.property(rightLocator, "srsName", rhsSrsName), lhsSrsName, rhsSrsName, leftObject.isSetSrsName(), rightObject.isSetSrsName()));
target.setSrsName(mergedSrsName);
} else {
if (srsNameShouldBeMergedAndSet == Boolean.FALSE) {
target.srsName = null;
}
}
}
{
Boolean srsDimensionShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetSrsDimension(), rightObject.isSetSrsDimension());
if (srsDimensionShouldBeMergedAndSet == Boolean.TRUE) {
BigInteger lhsSrsDimension;
lhsSrsDimension = leftObject.getSrsDimension();
BigInteger rhsSrsDimension;
rhsSrsDimension = rightObject.getSrsDimension();
BigInteger mergedSrsDimension = ((BigInteger) strategy.merge(LocatorUtils.property(leftLocator, "srsDimension", lhsSrsDimension), LocatorUtils.property(rightLocator, "srsDimension", rhsSrsDimension), lhsSrsDimension, rhsSrsDimension, leftObject.isSetSrsDimension(), rightObject.isSetSrsDimension()));
target.setSrsDimension(mergedSrsDimension);
} else {
if (srsDimensionShouldBeMergedAndSet == Boolean.FALSE) {
target.srsDimension = null;
}
}
}
{
Boolean axisLabelsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAxisLabels(), rightObject.isSetAxisLabels());
if (axisLabelsShouldBeMergedAndSet == Boolean.TRUE) {
List lhsAxisLabels;
lhsAxisLabels = (leftObject.isSetAxisLabels()?leftObject.getAxisLabels():null);
List rhsAxisLabels;
rhsAxisLabels = (rightObject.isSetAxisLabels()?rightObject.getAxisLabels():null);
List mergedAxisLabels = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "axisLabels", lhsAxisLabels), LocatorUtils.property(rightLocator, "axisLabels", rhsAxisLabels), lhsAxisLabels, rhsAxisLabels, leftObject.isSetAxisLabels(), rightObject.isSetAxisLabels()));
target.unsetAxisLabels();
if (mergedAxisLabels!= null) {
List uniqueAxisLabelsl = target.getAxisLabels();
uniqueAxisLabelsl.addAll(mergedAxisLabels);
}
} else {
if (axisLabelsShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetAxisLabels();
}
}
}
{
Boolean uomLabelsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetUomLabels(), rightObject.isSetUomLabels());
if (uomLabelsShouldBeMergedAndSet == Boolean.TRUE) {
List lhsUomLabels;
lhsUomLabels = (leftObject.isSetUomLabels()?leftObject.getUomLabels():null);
List rhsUomLabels;
rhsUomLabels = (rightObject.isSetUomLabels()?rightObject.getUomLabels():null);
List mergedUomLabels = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "uomLabels", lhsUomLabels), LocatorUtils.property(rightLocator, "uomLabels", rhsUomLabels), lhsUomLabels, rhsUomLabels, leftObject.isSetUomLabels(), rightObject.isSetUomLabels()));
target.unsetUomLabels();
if (mergedUomLabels!= null) {
List uniqueUomLabelsl = target.getUomLabels();
uniqueUomLabelsl.addAll(mergedUomLabels);
}
} else {
if (uomLabelsShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetUomLabels();
}
}
}
}
}
public void setValue(List value) {
this.value = null;
if (value!= null) {
List draftl = this.getValue();
draftl.addAll(value);
}
}
public void setAxisLabels(List value) {
this.axisLabels = null;
if (value!= null) {
List draftl = this.getAxisLabels();
draftl.addAll(value);
}
}
public void setUomLabels(List value) {
this.uomLabels = null;
if (value!= null) {
List draftl = this.getUomLabels();
draftl.addAll(value);
}
}
public TexCoordGenType.WorldToTexture withValue(Double... values) {
if (values!= null) {
for (Double value: values) {
getValue().add(value);
}
}
return this;
}
public TexCoordGenType.WorldToTexture withValue(Collection values) {
if (values!= null) {
getValue().addAll(values);
}
return this;
}
public TexCoordGenType.WorldToTexture withSrsName(String value) {
setSrsName(value);
return this;
}
public TexCoordGenType.WorldToTexture withSrsDimension(BigInteger value) {
setSrsDimension(value);
return this;
}
public TexCoordGenType.WorldToTexture withAxisLabels(String... values) {
if (values!= null) {
for (String value: values) {
getAxisLabels().add(value);
}
}
return this;
}
public TexCoordGenType.WorldToTexture withAxisLabels(Collection values) {
if (values!= null) {
getAxisLabels().addAll(values);
}
return this;
}
public TexCoordGenType.WorldToTexture withUomLabels(String... values) {
if (values!= null) {
for (String value: values) {
getUomLabels().add(value);
}
}
return this;
}
public TexCoordGenType.WorldToTexture withUomLabels(Collection values) {
if (values!= null) {
getUomLabels().addAll(values);
}
return this;
}
public TexCoordGenType.WorldToTexture withValue(List value) {
setValue(value);
return this;
}
public TexCoordGenType.WorldToTexture withAxisLabels(List value) {
setAxisLabels(value);
return this;
}
public TexCoordGenType.WorldToTexture withUomLabels(List value) {
setUomLabels(value);
return this;
}
}
}