// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.07.27 at 04:06:37 PM EDT // package net.opengis.gml._3_3.ce; import java.io.Serializable; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import javax.validation.Valid; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; 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.XmlElements; import javax.xml.bind.annotation.XmlType; import net.opengis.gml.v_3_2_1.AbstractCurveType; import net.opengis.gml.v_3_2_1.CurveInterpolationType; import net.opengis.gml.v_3_2_1.DirectPositionListType; import net.opengis.gml.v_3_2_1.DirectPositionType; import net.opengis.gml.v_3_2_1.PointPropertyType; import net.opengis.gml.v_3_2_1.VectorType; 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; /** * <p>Java class for SimpleArcStringByBulgeType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="SimpleArcStringByBulgeType"> * <complexContent> * <extension base="{http://www.opengis.net/gml/3.2}AbstractCurveType"> * <sequence> * <choice> * <choice maxOccurs="unbounded" minOccurs="2"> * <element ref="{http://www.opengis.net/gml/3.2}pos"/> * <element ref="{http://www.opengis.net/gml/3.2}pointProperty"/> * </choice> * <element ref="{http://www.opengis.net/gml/3.2}posList"/> * </choice> * <element name="bulge" type="{http://www.w3.org/2001/XMLSchema}double" maxOccurs="unbounded"/> * <element name="normal" type="{http://www.opengis.net/gml/3.2}VectorType" maxOccurs="unbounded"/> * </sequence> * <attribute name="interpolation" type="{http://www.opengis.net/gml/3.2}CurveInterpolationType" fixed="circularArc2PointWithBulge" /> * <attribute name="numArc" type="{http://www.w3.org/2001/XMLSchema}integer" /> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SimpleArcStringByBulgeType", propOrder = { "posOrPointProperty", "posList", "bulge", "normal" }) public class SimpleArcStringByBulgeType extends AbstractCurveType implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { private final static long serialVersionUID = 1L; @XmlElements({ @XmlElement(name = "pos", namespace = "http://www.opengis.net/gml/3.2", type = DirectPositionType.class), @XmlElement(name = "pointProperty", namespace = "http://www.opengis.net/gml/3.2", type = PointPropertyType.class) }) @Size(min = 2) protected List<Object> posOrPointProperty; @XmlElement(namespace = "http://www.opengis.net/gml/3.2") @Valid protected DirectPositionListType posList; @XmlElement(type = Double.class) @NotNull(message = "SimpleArcStringByBulgeType.bulge {javax.validation.constraints.NotNull.message}") @Size(min = 1) protected List<Double> bulge; @XmlElement(required = true) @NotNull(message = "SimpleArcStringByBulgeType.normal {javax.validation.constraints.NotNull.message}") @Size(min = 1) @Valid protected List<VectorType> normal; @XmlAttribute(name = "interpolation") protected CurveInterpolationType interpolation; @XmlAttribute(name = "numArc") protected BigInteger numArc; /** * Gets the value of the posOrPointProperty property. * * <p> * 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 <CODE>set</CODE> method for the posOrPointProperty property. * * <p> * For example, to add a new item, do as follows: * <pre> * getPosOrPointProperty().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link DirectPositionType } * {@link PointPropertyType } * * */ public List<Object> getPosOrPointProperty() { if (posOrPointProperty == null) { posOrPointProperty = new ArrayList<Object>(); } return this.posOrPointProperty; } public boolean isSetPosOrPointProperty() { return ((this.posOrPointProperty!= null)&&(!this.posOrPointProperty.isEmpty())); } public void unsetPosOrPointProperty() { this.posOrPointProperty = null; } /** * Gets the value of the posList property. * * @return * possible object is * {@link DirectPositionListType } * */ public DirectPositionListType getPosList() { return posList; } /** * Sets the value of the posList property. * * @param value * allowed object is * {@link DirectPositionListType } * */ public void setPosList(DirectPositionListType value) { this.posList = value; } public boolean isSetPosList() { return (this.posList!= null); } /** * Gets the value of the bulge property. * * <p> * 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 <CODE>set</CODE> method for the bulge property. * * <p> * For example, to add a new item, do as follows: * <pre> * getBulge().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Double } * * */ public List<Double> getBulge() { if (bulge == null) { bulge = new ArrayList<Double>(); } return this.bulge; } public boolean isSetBulge() { return ((this.bulge!= null)&&(!this.bulge.isEmpty())); } public void unsetBulge() { this.bulge = null; } /** * Gets the value of the normal property. * * <p> * 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 <CODE>set</CODE> method for the normal property. * * <p> * For example, to add a new item, do as follows: * <pre> * getNormal().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link VectorType } * * */ public List<VectorType> getNormal() { if (normal == null) { normal = new ArrayList<VectorType>(); } return this.normal; } public boolean isSetNormal() { return ((this.normal!= null)&&(!this.normal.isEmpty())); } public void unsetNormal() { this.normal = null; } /** * Gets the value of the interpolation property. * * @return * possible object is * {@link CurveInterpolationType } * */ public CurveInterpolationType getInterpolation() { return interpolation; } /** * Sets the value of the interpolation property. * * @param value * allowed object is * {@link CurveInterpolationType } * */ public void setInterpolation(CurveInterpolationType value) { this.interpolation = value; } public boolean isSetInterpolation() { return (this.interpolation!= null); } /** * Gets the value of the numArc property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getNumArc() { return numArc; } /** * Sets the value of the numArc property. * * @param value * allowed object is * {@link BigInteger } * */ public void setNumArc(BigInteger value) { this.numArc = value; } public boolean isSetNumArc() { return (this.numArc!= 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<Object> thePosOrPointProperty; thePosOrPointProperty = (this.isSetPosOrPointProperty()?this.getPosOrPointProperty():null); strategy.appendField(locator, this, "posOrPointProperty", buffer, thePosOrPointProperty, this.isSetPosOrPointProperty()); } { DirectPositionListType thePosList; thePosList = this.getPosList(); strategy.appendField(locator, this, "posList", buffer, thePosList, this.isSetPosList()); } { List<Double> theBulge; theBulge = (this.isSetBulge()?this.getBulge():null); strategy.appendField(locator, this, "bulge", buffer, theBulge, this.isSetBulge()); } { List<VectorType> theNormal; theNormal = (this.isSetNormal()?this.getNormal():null); strategy.appendField(locator, this, "normal", buffer, theNormal, this.isSetNormal()); } { CurveInterpolationType theInterpolation; theInterpolation = this.getInterpolation(); strategy.appendField(locator, this, "interpolation", buffer, theInterpolation, this.isSetInterpolation()); } { BigInteger theNumArc; theNumArc = this.getNumArc(); strategy.appendField(locator, this, "numArc", buffer, theNumArc, this.isSetNumArc()); } 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 SimpleArcStringByBulgeType that = ((SimpleArcStringByBulgeType) object); { List<Object> lhsPosOrPointProperty; lhsPosOrPointProperty = (this.isSetPosOrPointProperty()?this.getPosOrPointProperty():null); List<Object> rhsPosOrPointProperty; rhsPosOrPointProperty = (that.isSetPosOrPointProperty()?that.getPosOrPointProperty():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "posOrPointProperty", lhsPosOrPointProperty), LocatorUtils.property(thatLocator, "posOrPointProperty", rhsPosOrPointProperty), lhsPosOrPointProperty, rhsPosOrPointProperty, this.isSetPosOrPointProperty(), that.isSetPosOrPointProperty())) { return false; } } { DirectPositionListType lhsPosList; lhsPosList = this.getPosList(); DirectPositionListType rhsPosList; rhsPosList = that.getPosList(); if (!strategy.equals(LocatorUtils.property(thisLocator, "posList", lhsPosList), LocatorUtils.property(thatLocator, "posList", rhsPosList), lhsPosList, rhsPosList, this.isSetPosList(), that.isSetPosList())) { return false; } } { List<Double> lhsBulge; lhsBulge = (this.isSetBulge()?this.getBulge():null); List<Double> rhsBulge; rhsBulge = (that.isSetBulge()?that.getBulge():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "bulge", lhsBulge), LocatorUtils.property(thatLocator, "bulge", rhsBulge), lhsBulge, rhsBulge, this.isSetBulge(), that.isSetBulge())) { return false; } } { List<VectorType> lhsNormal; lhsNormal = (this.isSetNormal()?this.getNormal():null); List<VectorType> rhsNormal; rhsNormal = (that.isSetNormal()?that.getNormal():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "normal", lhsNormal), LocatorUtils.property(thatLocator, "normal", rhsNormal), lhsNormal, rhsNormal, this.isSetNormal(), that.isSetNormal())) { return false; } } { CurveInterpolationType lhsInterpolation; lhsInterpolation = this.getInterpolation(); CurveInterpolationType rhsInterpolation; rhsInterpolation = that.getInterpolation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "interpolation", lhsInterpolation), LocatorUtils.property(thatLocator, "interpolation", rhsInterpolation), lhsInterpolation, rhsInterpolation, this.isSetInterpolation(), that.isSetInterpolation())) { return false; } } { BigInteger lhsNumArc; lhsNumArc = this.getNumArc(); BigInteger rhsNumArc; rhsNumArc = that.getNumArc(); if (!strategy.equals(LocatorUtils.property(thisLocator, "numArc", lhsNumArc), LocatorUtils.property(thatLocator, "numArc", rhsNumArc), lhsNumArc, rhsNumArc, this.isSetNumArc(), that.isSetNumArc())) { 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<Object> thePosOrPointProperty; thePosOrPointProperty = (this.isSetPosOrPointProperty()?this.getPosOrPointProperty():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "posOrPointProperty", thePosOrPointProperty), currentHashCode, thePosOrPointProperty, this.isSetPosOrPointProperty()); } { DirectPositionListType thePosList; thePosList = this.getPosList(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "posList", thePosList), currentHashCode, thePosList, this.isSetPosList()); } { List<Double> theBulge; theBulge = (this.isSetBulge()?this.getBulge():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bulge", theBulge), currentHashCode, theBulge, this.isSetBulge()); } { List<VectorType> theNormal; theNormal = (this.isSetNormal()?this.getNormal():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "normal", theNormal), currentHashCode, theNormal, this.isSetNormal()); } { CurveInterpolationType theInterpolation; theInterpolation = this.getInterpolation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "interpolation", theInterpolation), currentHashCode, theInterpolation, this.isSetInterpolation()); } { BigInteger theNumArc; theNumArc = this.getNumArc(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "numArc", theNumArc), currentHashCode, theNumArc, this.isSetNumArc()); } 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 SimpleArcStringByBulgeType) { final SimpleArcStringByBulgeType copy = ((SimpleArcStringByBulgeType) draftCopy); { Boolean posOrPointPropertyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetPosOrPointProperty()); if (posOrPointPropertyShouldBeCopiedAndSet == Boolean.TRUE) { List<Object> sourcePosOrPointProperty; sourcePosOrPointProperty = (this.isSetPosOrPointProperty()?this.getPosOrPointProperty():null); @SuppressWarnings("unchecked") List<Object> copyPosOrPointProperty = ((List<Object> ) strategy.copy(LocatorUtils.property(locator, "posOrPointProperty", sourcePosOrPointProperty), sourcePosOrPointProperty, this.isSetPosOrPointProperty())); copy.unsetPosOrPointProperty(); if (copyPosOrPointProperty!= null) { List<Object> uniquePosOrPointPropertyl = copy.getPosOrPointProperty(); uniquePosOrPointPropertyl.addAll(copyPosOrPointProperty); } } else { if (posOrPointPropertyShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetPosOrPointProperty(); } } } { Boolean posListShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetPosList()); if (posListShouldBeCopiedAndSet == Boolean.TRUE) { DirectPositionListType sourcePosList; sourcePosList = this.getPosList(); DirectPositionListType copyPosList = ((DirectPositionListType) strategy.copy(LocatorUtils.property(locator, "posList", sourcePosList), sourcePosList, this.isSetPosList())); copy.setPosList(copyPosList); } else { if (posListShouldBeCopiedAndSet == Boolean.FALSE) { copy.posList = null; } } } { Boolean bulgeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetBulge()); if (bulgeShouldBeCopiedAndSet == Boolean.TRUE) { List<Double> sourceBulge; sourceBulge = (this.isSetBulge()?this.getBulge():null); @SuppressWarnings("unchecked") List<Double> copyBulge = ((List<Double> ) strategy.copy(LocatorUtils.property(locator, "bulge", sourceBulge), sourceBulge, this.isSetBulge())); copy.unsetBulge(); if (copyBulge!= null) { List<Double> uniqueBulgel = copy.getBulge(); uniqueBulgel.addAll(copyBulge); } } else { if (bulgeShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetBulge(); } } } { Boolean normalShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetNormal()); if (normalShouldBeCopiedAndSet == Boolean.TRUE) { List<VectorType> sourceNormal; sourceNormal = (this.isSetNormal()?this.getNormal():null); @SuppressWarnings("unchecked") List<VectorType> copyNormal = ((List<VectorType> ) strategy.copy(LocatorUtils.property(locator, "normal", sourceNormal), sourceNormal, this.isSetNormal())); copy.unsetNormal(); if (copyNormal!= null) { List<VectorType> uniqueNormall = copy.getNormal(); uniqueNormall.addAll(copyNormal); } } else { if (normalShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetNormal(); } } } { Boolean interpolationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetInterpolation()); if (interpolationShouldBeCopiedAndSet == Boolean.TRUE) { CurveInterpolationType sourceInterpolation; sourceInterpolation = this.getInterpolation(); CurveInterpolationType copyInterpolation = ((CurveInterpolationType) strategy.copy(LocatorUtils.property(locator, "interpolation", sourceInterpolation), sourceInterpolation, this.isSetInterpolation())); copy.setInterpolation(copyInterpolation); } else { if (interpolationShouldBeCopiedAndSet == Boolean.FALSE) { copy.interpolation = null; } } } { Boolean numArcShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetNumArc()); if (numArcShouldBeCopiedAndSet == Boolean.TRUE) { BigInteger sourceNumArc; sourceNumArc = this.getNumArc(); BigInteger copyNumArc = ((BigInteger) strategy.copy(LocatorUtils.property(locator, "numArc", sourceNumArc), sourceNumArc, this.isSetNumArc())); copy.setNumArc(copyNumArc); } else { if (numArcShouldBeCopiedAndSet == Boolean.FALSE) { copy.numArc = null; } } } } return draftCopy; } public Object createNewInstance() { return new SimpleArcStringByBulgeType(); } 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 SimpleArcStringByBulgeType) { final SimpleArcStringByBulgeType target = this; final SimpleArcStringByBulgeType leftObject = ((SimpleArcStringByBulgeType) left); final SimpleArcStringByBulgeType rightObject = ((SimpleArcStringByBulgeType) right); { Boolean posOrPointPropertyShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetPosOrPointProperty(), rightObject.isSetPosOrPointProperty()); if (posOrPointPropertyShouldBeMergedAndSet == Boolean.TRUE) { List<Object> lhsPosOrPointProperty; lhsPosOrPointProperty = (leftObject.isSetPosOrPointProperty()?leftObject.getPosOrPointProperty():null); List<Object> rhsPosOrPointProperty; rhsPosOrPointProperty = (rightObject.isSetPosOrPointProperty()?rightObject.getPosOrPointProperty():null); List<Object> mergedPosOrPointProperty = ((List<Object> ) strategy.merge(LocatorUtils.property(leftLocator, "posOrPointProperty", lhsPosOrPointProperty), LocatorUtils.property(rightLocator, "posOrPointProperty", rhsPosOrPointProperty), lhsPosOrPointProperty, rhsPosOrPointProperty, leftObject.isSetPosOrPointProperty(), rightObject.isSetPosOrPointProperty())); target.unsetPosOrPointProperty(); if (mergedPosOrPointProperty!= null) { List<Object> uniquePosOrPointPropertyl = target.getPosOrPointProperty(); uniquePosOrPointPropertyl.addAll(mergedPosOrPointProperty); } } else { if (posOrPointPropertyShouldBeMergedAndSet == Boolean.FALSE) { target.unsetPosOrPointProperty(); } } } { Boolean posListShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetPosList(), rightObject.isSetPosList()); if (posListShouldBeMergedAndSet == Boolean.TRUE) { DirectPositionListType lhsPosList; lhsPosList = leftObject.getPosList(); DirectPositionListType rhsPosList; rhsPosList = rightObject.getPosList(); DirectPositionListType mergedPosList = ((DirectPositionListType) strategy.merge(LocatorUtils.property(leftLocator, "posList", lhsPosList), LocatorUtils.property(rightLocator, "posList", rhsPosList), lhsPosList, rhsPosList, leftObject.isSetPosList(), rightObject.isSetPosList())); target.setPosList(mergedPosList); } else { if (posListShouldBeMergedAndSet == Boolean.FALSE) { target.posList = null; } } } { Boolean bulgeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetBulge(), rightObject.isSetBulge()); if (bulgeShouldBeMergedAndSet == Boolean.TRUE) { List<Double> lhsBulge; lhsBulge = (leftObject.isSetBulge()?leftObject.getBulge():null); List<Double> rhsBulge; rhsBulge = (rightObject.isSetBulge()?rightObject.getBulge():null); List<Double> mergedBulge = ((List<Double> ) strategy.merge(LocatorUtils.property(leftLocator, "bulge", lhsBulge), LocatorUtils.property(rightLocator, "bulge", rhsBulge), lhsBulge, rhsBulge, leftObject.isSetBulge(), rightObject.isSetBulge())); target.unsetBulge(); if (mergedBulge!= null) { List<Double> uniqueBulgel = target.getBulge(); uniqueBulgel.addAll(mergedBulge); } } else { if (bulgeShouldBeMergedAndSet == Boolean.FALSE) { target.unsetBulge(); } } } { Boolean normalShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetNormal(), rightObject.isSetNormal()); if (normalShouldBeMergedAndSet == Boolean.TRUE) { List<VectorType> lhsNormal; lhsNormal = (leftObject.isSetNormal()?leftObject.getNormal():null); List<VectorType> rhsNormal; rhsNormal = (rightObject.isSetNormal()?rightObject.getNormal():null); List<VectorType> mergedNormal = ((List<VectorType> ) strategy.merge(LocatorUtils.property(leftLocator, "normal", lhsNormal), LocatorUtils.property(rightLocator, "normal", rhsNormal), lhsNormal, rhsNormal, leftObject.isSetNormal(), rightObject.isSetNormal())); target.unsetNormal(); if (mergedNormal!= null) { List<VectorType> uniqueNormall = target.getNormal(); uniqueNormall.addAll(mergedNormal); } } else { if (normalShouldBeMergedAndSet == Boolean.FALSE) { target.unsetNormal(); } } } { Boolean interpolationShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetInterpolation(), rightObject.isSetInterpolation()); if (interpolationShouldBeMergedAndSet == Boolean.TRUE) { CurveInterpolationType lhsInterpolation; lhsInterpolation = leftObject.getInterpolation(); CurveInterpolationType rhsInterpolation; rhsInterpolation = rightObject.getInterpolation(); CurveInterpolationType mergedInterpolation = ((CurveInterpolationType) strategy.merge(LocatorUtils.property(leftLocator, "interpolation", lhsInterpolation), LocatorUtils.property(rightLocator, "interpolation", rhsInterpolation), lhsInterpolation, rhsInterpolation, leftObject.isSetInterpolation(), rightObject.isSetInterpolation())); target.setInterpolation(mergedInterpolation); } else { if (interpolationShouldBeMergedAndSet == Boolean.FALSE) { target.interpolation = null; } } } { Boolean numArcShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetNumArc(), rightObject.isSetNumArc()); if (numArcShouldBeMergedAndSet == Boolean.TRUE) { BigInteger lhsNumArc; lhsNumArc = leftObject.getNumArc(); BigInteger rhsNumArc; rhsNumArc = rightObject.getNumArc(); BigInteger mergedNumArc = ((BigInteger) strategy.merge(LocatorUtils.property(leftLocator, "numArc", lhsNumArc), LocatorUtils.property(rightLocator, "numArc", rhsNumArc), lhsNumArc, rhsNumArc, leftObject.isSetNumArc(), rightObject.isSetNumArc())); target.setNumArc(mergedNumArc); } else { if (numArcShouldBeMergedAndSet == Boolean.FALSE) { target.numArc = null; } } } } } public void setPosOrPointProperty(List<Object> value) { this.posOrPointProperty = null; if (value!= null) { List<Object> draftl = this.getPosOrPointProperty(); draftl.addAll(value); } } public void setBulge(List<Double> value) { this.bulge = null; if (value!= null) { List<Double> draftl = this.getBulge(); draftl.addAll(value); } } public void setNormal(List<VectorType> value) { this.normal = null; if (value!= null) { List<VectorType> draftl = this.getNormal(); draftl.addAll(value); } } }