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

net.opengis.citygml.appearance.v_2_0.TexCoordListType 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.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 texture coordinates: Each gml:LinearRing that is part of the surface
 * 				requires a separate "textureCoordinates"-entry with 2 doubles per ring vertex. The "ring"- attribute provides the gml:id
 * 				of the target LinearRing. It is prohibited to link texture coordinates to any other object type than LinearRing. Thus,
 * 				surfaces not consisting of LinearRings cannot be textured this way. Use transformation matrices (see below) or
 * 				georeferenced textures instead. 
 * 
 * 

Java class for TexCoordListType complex type. * *

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

 * <complexType name="TexCoordListType">
 *   <complexContent>
 *     <extension base="{http://www.opengis.net/citygml/appearance/2.0}AbstractTextureParameterizationType">
 *       <sequence>
 *         <element name="textureCoordinates" maxOccurs="unbounded">
 *           <complexType>
 *             <simpleContent>
 *               <extension base="<http://www.opengis.net/gml>doubleList">
 *                 <attribute name="ring" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *               </extension>
 *             </simpleContent>
 *           </complexType>
 *         </element>
 *         <element ref="{http://www.opengis.net/citygml/appearance/2.0}_GenericApplicationPropertyOfTexCoordList" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TexCoordListType", propOrder = { "textureCoordinates", "genericApplicationPropertyOfTexCoordList" }) public class TexCoordListType extends AbstractTextureParameterizationType implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(required = true) protected List textureCoordinates; @XmlElement(name = "_GenericApplicationPropertyOfTexCoordList") protected List genericApplicationPropertyOfTexCoordList; /** * Gets the value of the textureCoordinates 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 textureCoordinates property. * *

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

     *    getTextureCoordinates().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TexCoordListType.TextureCoordinates } * * */ public List getTextureCoordinates() { if (textureCoordinates == null) { textureCoordinates = new ArrayList(); } return this.textureCoordinates; } public boolean isSetTextureCoordinates() { return ((this.textureCoordinates!= null)&&(!this.textureCoordinates.isEmpty())); } public void unsetTextureCoordinates() { this.textureCoordinates = null; } /** * Gets the value of the genericApplicationPropertyOfTexCoordList 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 genericApplicationPropertyOfTexCoordList property. * *

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

     *    getGenericApplicationPropertyOfTexCoordList().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getGenericApplicationPropertyOfTexCoordList() { if (genericApplicationPropertyOfTexCoordList == null) { genericApplicationPropertyOfTexCoordList = new ArrayList(); } return this.genericApplicationPropertyOfTexCoordList; } public boolean isSetGenericApplicationPropertyOfTexCoordList() { return ((this.genericApplicationPropertyOfTexCoordList!= null)&&(!this.genericApplicationPropertyOfTexCoordList.isEmpty())); } public void unsetGenericApplicationPropertyOfTexCoordList() { this.genericApplicationPropertyOfTexCoordList = 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 theTextureCoordinates; theTextureCoordinates = (this.isSetTextureCoordinates()?this.getTextureCoordinates():null); strategy.appendField(locator, this, "textureCoordinates", buffer, theTextureCoordinates, this.isSetTextureCoordinates()); } { List theGenericApplicationPropertyOfTexCoordList; theGenericApplicationPropertyOfTexCoordList = (this.isSetGenericApplicationPropertyOfTexCoordList()?this.getGenericApplicationPropertyOfTexCoordList():null); strategy.appendField(locator, this, "genericApplicationPropertyOfTexCoordList", buffer, theGenericApplicationPropertyOfTexCoordList, this.isSetGenericApplicationPropertyOfTexCoordList()); } 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 TexCoordListType that = ((TexCoordListType) object); { List lhsTextureCoordinates; lhsTextureCoordinates = (this.isSetTextureCoordinates()?this.getTextureCoordinates():null); List rhsTextureCoordinates; rhsTextureCoordinates = (that.isSetTextureCoordinates()?that.getTextureCoordinates():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "textureCoordinates", lhsTextureCoordinates), LocatorUtils.property(thatLocator, "textureCoordinates", rhsTextureCoordinates), lhsTextureCoordinates, rhsTextureCoordinates, this.isSetTextureCoordinates(), that.isSetTextureCoordinates())) { return false; } } { List lhsGenericApplicationPropertyOfTexCoordList; lhsGenericApplicationPropertyOfTexCoordList = (this.isSetGenericApplicationPropertyOfTexCoordList()?this.getGenericApplicationPropertyOfTexCoordList():null); List rhsGenericApplicationPropertyOfTexCoordList; rhsGenericApplicationPropertyOfTexCoordList = (that.isSetGenericApplicationPropertyOfTexCoordList()?that.getGenericApplicationPropertyOfTexCoordList():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "genericApplicationPropertyOfTexCoordList", lhsGenericApplicationPropertyOfTexCoordList), LocatorUtils.property(thatLocator, "genericApplicationPropertyOfTexCoordList", rhsGenericApplicationPropertyOfTexCoordList), lhsGenericApplicationPropertyOfTexCoordList, rhsGenericApplicationPropertyOfTexCoordList, this.isSetGenericApplicationPropertyOfTexCoordList(), that.isSetGenericApplicationPropertyOfTexCoordList())) { 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 theTextureCoordinates; theTextureCoordinates = (this.isSetTextureCoordinates()?this.getTextureCoordinates():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "textureCoordinates", theTextureCoordinates), currentHashCode, theTextureCoordinates, this.isSetTextureCoordinates()); } { List theGenericApplicationPropertyOfTexCoordList; theGenericApplicationPropertyOfTexCoordList = (this.isSetGenericApplicationPropertyOfTexCoordList()?this.getGenericApplicationPropertyOfTexCoordList():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericApplicationPropertyOfTexCoordList", theGenericApplicationPropertyOfTexCoordList), currentHashCode, theGenericApplicationPropertyOfTexCoordList, this.isSetGenericApplicationPropertyOfTexCoordList()); } 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 TexCoordListType) { final TexCoordListType copy = ((TexCoordListType) draftCopy); { Boolean textureCoordinatesShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetTextureCoordinates()); if (textureCoordinatesShouldBeCopiedAndSet == Boolean.TRUE) { List sourceTextureCoordinates; sourceTextureCoordinates = (this.isSetTextureCoordinates()?this.getTextureCoordinates():null); @SuppressWarnings("unchecked") List copyTextureCoordinates = ((List ) strategy.copy(LocatorUtils.property(locator, "textureCoordinates", sourceTextureCoordinates), sourceTextureCoordinates, this.isSetTextureCoordinates())); copy.unsetTextureCoordinates(); if (copyTextureCoordinates!= null) { List uniqueTextureCoordinatesl = copy.getTextureCoordinates(); uniqueTextureCoordinatesl.addAll(copyTextureCoordinates); } } else { if (textureCoordinatesShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetTextureCoordinates(); } } } { Boolean genericApplicationPropertyOfTexCoordListShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetGenericApplicationPropertyOfTexCoordList()); if (genericApplicationPropertyOfTexCoordListShouldBeCopiedAndSet == Boolean.TRUE) { List sourceGenericApplicationPropertyOfTexCoordList; sourceGenericApplicationPropertyOfTexCoordList = (this.isSetGenericApplicationPropertyOfTexCoordList()?this.getGenericApplicationPropertyOfTexCoordList():null); @SuppressWarnings("unchecked") List copyGenericApplicationPropertyOfTexCoordList = ((List ) strategy.copy(LocatorUtils.property(locator, "genericApplicationPropertyOfTexCoordList", sourceGenericApplicationPropertyOfTexCoordList), sourceGenericApplicationPropertyOfTexCoordList, this.isSetGenericApplicationPropertyOfTexCoordList())); copy.unsetGenericApplicationPropertyOfTexCoordList(); if (copyGenericApplicationPropertyOfTexCoordList!= null) { List uniqueGenericApplicationPropertyOfTexCoordListl = copy.getGenericApplicationPropertyOfTexCoordList(); uniqueGenericApplicationPropertyOfTexCoordListl.addAll(copyGenericApplicationPropertyOfTexCoordList); } } else { if (genericApplicationPropertyOfTexCoordListShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetGenericApplicationPropertyOfTexCoordList(); } } } } return draftCopy; } public Object createNewInstance() { return new TexCoordListType(); } 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 TexCoordListType) { final TexCoordListType target = this; final TexCoordListType leftObject = ((TexCoordListType) left); final TexCoordListType rightObject = ((TexCoordListType) right); { Boolean textureCoordinatesShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetTextureCoordinates(), rightObject.isSetTextureCoordinates()); if (textureCoordinatesShouldBeMergedAndSet == Boolean.TRUE) { List lhsTextureCoordinates; lhsTextureCoordinates = (leftObject.isSetTextureCoordinates()?leftObject.getTextureCoordinates():null); List rhsTextureCoordinates; rhsTextureCoordinates = (rightObject.isSetTextureCoordinates()?rightObject.getTextureCoordinates():null); List mergedTextureCoordinates = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "textureCoordinates", lhsTextureCoordinates), LocatorUtils.property(rightLocator, "textureCoordinates", rhsTextureCoordinates), lhsTextureCoordinates, rhsTextureCoordinates, leftObject.isSetTextureCoordinates(), rightObject.isSetTextureCoordinates())); target.unsetTextureCoordinates(); if (mergedTextureCoordinates!= null) { List uniqueTextureCoordinatesl = target.getTextureCoordinates(); uniqueTextureCoordinatesl.addAll(mergedTextureCoordinates); } } else { if (textureCoordinatesShouldBeMergedAndSet == Boolean.FALSE) { target.unsetTextureCoordinates(); } } } { Boolean genericApplicationPropertyOfTexCoordListShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetGenericApplicationPropertyOfTexCoordList(), rightObject.isSetGenericApplicationPropertyOfTexCoordList()); if (genericApplicationPropertyOfTexCoordListShouldBeMergedAndSet == Boolean.TRUE) { List lhsGenericApplicationPropertyOfTexCoordList; lhsGenericApplicationPropertyOfTexCoordList = (leftObject.isSetGenericApplicationPropertyOfTexCoordList()?leftObject.getGenericApplicationPropertyOfTexCoordList():null); List rhsGenericApplicationPropertyOfTexCoordList; rhsGenericApplicationPropertyOfTexCoordList = (rightObject.isSetGenericApplicationPropertyOfTexCoordList()?rightObject.getGenericApplicationPropertyOfTexCoordList():null); List mergedGenericApplicationPropertyOfTexCoordList = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "genericApplicationPropertyOfTexCoordList", lhsGenericApplicationPropertyOfTexCoordList), LocatorUtils.property(rightLocator, "genericApplicationPropertyOfTexCoordList", rhsGenericApplicationPropertyOfTexCoordList), lhsGenericApplicationPropertyOfTexCoordList, rhsGenericApplicationPropertyOfTexCoordList, leftObject.isSetGenericApplicationPropertyOfTexCoordList(), rightObject.isSetGenericApplicationPropertyOfTexCoordList())); target.unsetGenericApplicationPropertyOfTexCoordList(); if (mergedGenericApplicationPropertyOfTexCoordList!= null) { List uniqueGenericApplicationPropertyOfTexCoordListl = target.getGenericApplicationPropertyOfTexCoordList(); uniqueGenericApplicationPropertyOfTexCoordListl.addAll(mergedGenericApplicationPropertyOfTexCoordList); } } else { if (genericApplicationPropertyOfTexCoordListShouldBeMergedAndSet == Boolean.FALSE) { target.unsetGenericApplicationPropertyOfTexCoordList(); } } } } } public void setTextureCoordinates(List value) { this.textureCoordinates = null; if (value!= null) { List draftl = this.getTextureCoordinates(); draftl.addAll(value); } } public void setGenericApplicationPropertyOfTexCoordList(List value) { this.genericApplicationPropertyOfTexCoordList = null; if (value!= null) { List draftl = this.getGenericApplicationPropertyOfTexCoordList(); draftl.addAll(value); } } public TexCoordListType withTextureCoordinates(TexCoordListType.TextureCoordinates... values) { if (values!= null) { for (TexCoordListType.TextureCoordinates value: values) { getTextureCoordinates().add(value); } } return this; } public TexCoordListType withTextureCoordinates(Collection values) { if (values!= null) { getTextureCoordinates().addAll(values); } return this; } public TexCoordListType withGenericApplicationPropertyOfTexCoordList(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfTexCoordList().add(value); } } return this; } public TexCoordListType withGenericApplicationPropertyOfTexCoordList(Collection values) { if (values!= null) { getGenericApplicationPropertyOfTexCoordList().addAll(values); } return this; } public TexCoordListType withTextureCoordinates(List value) { setTextureCoordinates(value); return this; } public TexCoordListType withGenericApplicationPropertyOfTexCoordList(List value) { setGenericApplicationPropertyOfTexCoordList(value); return this; } @Override public TexCoordListType withGenericApplicationPropertyOfTextureParameterization(Object... values) { if (values!= null) { for (Object value: values) { getGenericApplicationPropertyOfTextureParameterization().add(value); } } return this; } @Override public TexCoordListType withGenericApplicationPropertyOfTextureParameterization(Collection values) { if (values!= null) { getGenericApplicationPropertyOfTextureParameterization().addAll(values); } return this; } @Override public TexCoordListType 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/gml>doubleList">
     *       <attribute name="ring" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
     *     </extension>
     *   </simpleContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) public static class TextureCoordinates implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlValue protected List value; @XmlAttribute(name = "ring", required = true) @XmlSchemaType(name = "anyURI") protected String ring; /** * XML List based on XML Schema double type. An element of this type contains a space-separated list of double values 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 ring property. * * @return * possible object is * {@link String } * */ public String getRing() { return ring; } /** * Sets the value of the ring property. * * @param value * allowed object is * {@link String } * */ public void setRing(String value) { this.ring = value; } public boolean isSetRing() { return (this.ring!= 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 theRing; theRing = this.getRing(); strategy.appendField(locator, this, "ring", buffer, theRing, this.isSetRing()); } 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 TexCoordListType.TextureCoordinates that = ((TexCoordListType.TextureCoordinates) 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 lhsRing; lhsRing = this.getRing(); String rhsRing; rhsRing = that.getRing(); if (!strategy.equals(LocatorUtils.property(thisLocator, "ring", lhsRing), LocatorUtils.property(thatLocator, "ring", rhsRing), lhsRing, rhsRing, this.isSetRing(), that.isSetRing())) { 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 theRing; theRing = this.getRing(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ring", theRing), currentHashCode, theRing, this.isSetRing()); } 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 TexCoordListType.TextureCoordinates) { final TexCoordListType.TextureCoordinates copy = ((TexCoordListType.TextureCoordinates) 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 ringShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetRing()); if (ringShouldBeCopiedAndSet == Boolean.TRUE) { String sourceRing; sourceRing = this.getRing(); String copyRing = ((String) strategy.copy(LocatorUtils.property(locator, "ring", sourceRing), sourceRing, this.isSetRing())); copy.setRing(copyRing); } else { if (ringShouldBeCopiedAndSet == Boolean.FALSE) { copy.ring = null; } } } } return draftCopy; } public Object createNewInstance() { return new TexCoordListType.TextureCoordinates(); } 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 TexCoordListType.TextureCoordinates) { final TexCoordListType.TextureCoordinates target = this; final TexCoordListType.TextureCoordinates leftObject = ((TexCoordListType.TextureCoordinates) left); final TexCoordListType.TextureCoordinates rightObject = ((TexCoordListType.TextureCoordinates) 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 ringShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetRing(), rightObject.isSetRing()); if (ringShouldBeMergedAndSet == Boolean.TRUE) { String lhsRing; lhsRing = leftObject.getRing(); String rhsRing; rhsRing = rightObject.getRing(); String mergedRing = ((String) strategy.merge(LocatorUtils.property(leftLocator, "ring", lhsRing), LocatorUtils.property(rightLocator, "ring", rhsRing), lhsRing, rhsRing, leftObject.isSetRing(), rightObject.isSetRing())); target.setRing(mergedRing); } else { if (ringShouldBeMergedAndSet == Boolean.FALSE) { target.ring = null; } } } } } public void setValue(List value) { this.value = null; if (value!= null) { List draftl = this.getValue(); draftl.addAll(value); } } public TexCoordListType.TextureCoordinates withValue(Double... values) { if (values!= null) { for (Double value: values) { getValue().add(value); } } return this; } public TexCoordListType.TextureCoordinates withValue(Collection values) { if (values!= null) { getValue().addAll(values); } return this; } public TexCoordListType.TextureCoordinates withRing(String value) { setRing(value); return this; } public TexCoordListType.TextureCoordinates withValue(List value) { setValue(value); return this; } } }