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

net.opengis.tjs.v_1_0.Ordinal 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 05:07:06 PM AST 
//


package net.opengis.tjs.v_1_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.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
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;


/**
 * 

Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Classes" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}Title"/>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}Abstract"/>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}Documentation" minOccurs="0"/>
 *                   <element name="Value" maxOccurs="unbounded">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <sequence>
 *                             <element ref="{http://www.opengis.net/tjs/1.0}Identifier"/>
 *                             <element ref="{http://www.opengis.net/tjs/1.0}Title"/>
 *                             <element ref="{http://www.opengis.net/tjs/1.0}Abstract"/>
 *                             <element ref="{http://www.opengis.net/tjs/1.0}Documentation" minOccurs="0"/>
 *                           </sequence>
 *                           <attribute name="rank" use="required" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
 *                           <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="Exceptions" type="{http://www.opengis.net/tjs/1.0}NominalOrdinalExceptions" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "classes", "exceptions" }) @XmlRootElement(name = "Ordinal") public class Ordinal implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(name = "Classes") protected Ordinal.Classes classes; @XmlElement(name = "Exceptions") protected NominalOrdinalExceptions exceptions; /** * Gets the value of the classes property. * * @return * possible object is * {@link Ordinal.Classes } * */ public Ordinal.Classes getClasses() { return classes; } /** * Sets the value of the classes property. * * @param value * allowed object is * {@link Ordinal.Classes } * */ public void setClasses(Ordinal.Classes value) { this.classes = value; } public boolean isSetClasses() { return (this.classes!= null); } /** * Gets the value of the exceptions property. * * @return * possible object is * {@link NominalOrdinalExceptions } * */ public NominalOrdinalExceptions getExceptions() { return exceptions; } /** * Sets the value of the exceptions property. * * @param value * allowed object is * {@link NominalOrdinalExceptions } * */ public void setExceptions(NominalOrdinalExceptions value) { this.exceptions = value; } public boolean isSetExceptions() { return (this.exceptions!= 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) { { Ordinal.Classes theClasses; theClasses = this.getClasses(); strategy.appendField(locator, this, "classes", buffer, theClasses, this.isSetClasses()); } { NominalOrdinalExceptions theExceptions; theExceptions = this.getExceptions(); strategy.appendField(locator, this, "exceptions", buffer, theExceptions, this.isSetExceptions()); } 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 Ordinal that = ((Ordinal) object); { Ordinal.Classes lhsClasses; lhsClasses = this.getClasses(); Ordinal.Classes rhsClasses; rhsClasses = that.getClasses(); if (!strategy.equals(LocatorUtils.property(thisLocator, "classes", lhsClasses), LocatorUtils.property(thatLocator, "classes", rhsClasses), lhsClasses, rhsClasses, this.isSetClasses(), that.isSetClasses())) { return false; } } { NominalOrdinalExceptions lhsExceptions; lhsExceptions = this.getExceptions(); NominalOrdinalExceptions rhsExceptions; rhsExceptions = that.getExceptions(); if (!strategy.equals(LocatorUtils.property(thisLocator, "exceptions", lhsExceptions), LocatorUtils.property(thatLocator, "exceptions", rhsExceptions), lhsExceptions, rhsExceptions, this.isSetExceptions(), that.isSetExceptions())) { 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; { Ordinal.Classes theClasses; theClasses = this.getClasses(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "classes", theClasses), currentHashCode, theClasses, this.isSetClasses()); } { NominalOrdinalExceptions theExceptions; theExceptions = this.getExceptions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "exceptions", theExceptions), currentHashCode, theExceptions, this.isSetExceptions()); } 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 Ordinal) { final Ordinal copy = ((Ordinal) draftCopy); { Boolean classesShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetClasses()); if (classesShouldBeCopiedAndSet == Boolean.TRUE) { Ordinal.Classes sourceClasses; sourceClasses = this.getClasses(); Ordinal.Classes copyClasses = ((Ordinal.Classes) strategy.copy(LocatorUtils.property(locator, "classes", sourceClasses), sourceClasses, this.isSetClasses())); copy.setClasses(copyClasses); } else { if (classesShouldBeCopiedAndSet == Boolean.FALSE) { copy.classes = null; } } } { Boolean exceptionsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetExceptions()); if (exceptionsShouldBeCopiedAndSet == Boolean.TRUE) { NominalOrdinalExceptions sourceExceptions; sourceExceptions = this.getExceptions(); NominalOrdinalExceptions copyExceptions = ((NominalOrdinalExceptions) strategy.copy(LocatorUtils.property(locator, "exceptions", sourceExceptions), sourceExceptions, this.isSetExceptions())); copy.setExceptions(copyExceptions); } else { if (exceptionsShouldBeCopiedAndSet == Boolean.FALSE) { copy.exceptions = null; } } } } return draftCopy; } public Object createNewInstance() { return new Ordinal(); } 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 Ordinal) { final Ordinal target = this; final Ordinal leftObject = ((Ordinal) left); final Ordinal rightObject = ((Ordinal) right); { Boolean classesShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetClasses(), rightObject.isSetClasses()); if (classesShouldBeMergedAndSet == Boolean.TRUE) { Ordinal.Classes lhsClasses; lhsClasses = leftObject.getClasses(); Ordinal.Classes rhsClasses; rhsClasses = rightObject.getClasses(); Ordinal.Classes mergedClasses = ((Ordinal.Classes) strategy.merge(LocatorUtils.property(leftLocator, "classes", lhsClasses), LocatorUtils.property(rightLocator, "classes", rhsClasses), lhsClasses, rhsClasses, leftObject.isSetClasses(), rightObject.isSetClasses())); target.setClasses(mergedClasses); } else { if (classesShouldBeMergedAndSet == Boolean.FALSE) { target.classes = null; } } } { Boolean exceptionsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetExceptions(), rightObject.isSetExceptions()); if (exceptionsShouldBeMergedAndSet == Boolean.TRUE) { NominalOrdinalExceptions lhsExceptions; lhsExceptions = leftObject.getExceptions(); NominalOrdinalExceptions rhsExceptions; rhsExceptions = rightObject.getExceptions(); NominalOrdinalExceptions mergedExceptions = ((NominalOrdinalExceptions) strategy.merge(LocatorUtils.property(leftLocator, "exceptions", lhsExceptions), LocatorUtils.property(rightLocator, "exceptions", rhsExceptions), lhsExceptions, rhsExceptions, leftObject.isSetExceptions(), rightObject.isSetExceptions())); target.setExceptions(mergedExceptions); } else { if (exceptionsShouldBeMergedAndSet == Boolean.FALSE) { target.exceptions = null; } } } } } public Ordinal withClasses(Ordinal.Classes value) { setClasses(value); return this; } public Ordinal withExceptions(NominalOrdinalExceptions value) { setExceptions(value); return this; } /** *

Java class for anonymous complex type. * *

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

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element ref="{http://www.opengis.net/tjs/1.0}Title"/>
     *         <element ref="{http://www.opengis.net/tjs/1.0}Abstract"/>
     *         <element ref="{http://www.opengis.net/tjs/1.0}Documentation" minOccurs="0"/>
     *         <element name="Value" maxOccurs="unbounded">
     *           <complexType>
     *             <complexContent>
     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 <sequence>
     *                   <element ref="{http://www.opengis.net/tjs/1.0}Identifier"/>
     *                   <element ref="{http://www.opengis.net/tjs/1.0}Title"/>
     *                   <element ref="{http://www.opengis.net/tjs/1.0}Abstract"/>
     *                   <element ref="{http://www.opengis.net/tjs/1.0}Documentation" minOccurs="0"/>
     *                 </sequence>
     *                 <attribute name="rank" use="required" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
     *                 <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
     *               </restriction>
     *             </complexContent>
     *           </complexType>
     *         </element>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "title", "_abstract", "documentation", "value" }) public static class Classes implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(name = "Title", required = true) protected String title; @XmlElement(name = "Abstract", required = true) protected AbstractType _abstract; @XmlElement(name = "Documentation") @XmlSchemaType(name = "anyURI") protected String documentation; @XmlElement(name = "Value", required = true) protected List value; /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } public boolean isSetTitle() { return (this.title!= null); } /** * Gets the value of the abstract property. * * @return * possible object is * {@link AbstractType } * */ public AbstractType getAbstract() { return _abstract; } /** * Sets the value of the abstract property. * * @param value * allowed object is * {@link AbstractType } * */ public void setAbstract(AbstractType value) { this._abstract = value; } public boolean isSetAbstract() { return (this._abstract!= null); } /** * Gets the value of the documentation property. * * @return * possible object is * {@link String } * */ public String getDocumentation() { return documentation; } /** * Sets the value of the documentation property. * * @param value * allowed object is * {@link String } * */ public void setDocumentation(String value) { this.documentation = value; } public boolean isSetDocumentation() { return (this.documentation!= null); } /** * 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 Ordinal.Classes.Value } * * */ 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; } 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) { { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, this.isSetTitle()); } { AbstractType theAbstract; theAbstract = this.getAbstract(); strategy.appendField(locator, this, "_abstract", buffer, theAbstract, this.isSetAbstract()); } { String theDocumentation; theDocumentation = this.getDocumentation(); strategy.appendField(locator, this, "documentation", buffer, theDocumentation, this.isSetDocumentation()); } { List theValue; theValue = (this.isSetValue()?this.getValue():null); strategy.appendField(locator, this, "value", buffer, theValue, this.isSetValue()); } 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 Ordinal.Classes that = ((Ordinal.Classes) object); { String lhsTitle; lhsTitle = this.getTitle(); String rhsTitle; rhsTitle = that.getTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle, this.isSetTitle(), that.isSetTitle())) { return false; } } { AbstractType lhsAbstract; lhsAbstract = this.getAbstract(); AbstractType rhsAbstract; rhsAbstract = that.getAbstract(); if (!strategy.equals(LocatorUtils.property(thisLocator, "_abstract", lhsAbstract), LocatorUtils.property(thatLocator, "_abstract", rhsAbstract), lhsAbstract, rhsAbstract, this.isSetAbstract(), that.isSetAbstract())) { return false; } } { String lhsDocumentation; lhsDocumentation = this.getDocumentation(); String rhsDocumentation; rhsDocumentation = that.getDocumentation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "documentation", lhsDocumentation), LocatorUtils.property(thatLocator, "documentation", rhsDocumentation), lhsDocumentation, rhsDocumentation, this.isSetDocumentation(), that.isSetDocumentation())) { return false; } } { 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; } } 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; { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, this.isSetTitle()); } { AbstractType theAbstract; theAbstract = this.getAbstract(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_abstract", theAbstract), currentHashCode, theAbstract, this.isSetAbstract()); } { String theDocumentation; theDocumentation = this.getDocumentation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentation", theDocumentation), currentHashCode, theDocumentation, this.isSetDocumentation()); } { List theValue; theValue = (this.isSetValue()?this.getValue():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue, this.isSetValue()); } 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 Ordinal.Classes) { final Ordinal.Classes copy = ((Ordinal.Classes) draftCopy); { Boolean titleShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetTitle()); if (titleShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTitle; sourceTitle = this.getTitle(); String copyTitle = ((String) strategy.copy(LocatorUtils.property(locator, "title", sourceTitle), sourceTitle, this.isSetTitle())); copy.setTitle(copyTitle); } else { if (titleShouldBeCopiedAndSet == Boolean.FALSE) { copy.title = null; } } } { Boolean _abstractShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAbstract()); if (_abstractShouldBeCopiedAndSet == Boolean.TRUE) { AbstractType sourceAbstract; sourceAbstract = this.getAbstract(); AbstractType copyAbstract = ((AbstractType) strategy.copy(LocatorUtils.property(locator, "_abstract", sourceAbstract), sourceAbstract, this.isSetAbstract())); copy.setAbstract(copyAbstract); } else { if (_abstractShouldBeCopiedAndSet == Boolean.FALSE) { copy._abstract = null; } } } { Boolean documentationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetDocumentation()); if (documentationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceDocumentation; sourceDocumentation = this.getDocumentation(); String copyDocumentation = ((String) strategy.copy(LocatorUtils.property(locator, "documentation", sourceDocumentation), sourceDocumentation, this.isSetDocumentation())); copy.setDocumentation(copyDocumentation); } else { if (documentationShouldBeCopiedAndSet == Boolean.FALSE) { copy.documentation = null; } } } { 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(); } } } } return draftCopy; } public Object createNewInstance() { return new Ordinal.Classes(); } 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 Ordinal.Classes) { final Ordinal.Classes target = this; final Ordinal.Classes leftObject = ((Ordinal.Classes) left); final Ordinal.Classes rightObject = ((Ordinal.Classes) right); { Boolean titleShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetTitle(), rightObject.isSetTitle()); if (titleShouldBeMergedAndSet == Boolean.TRUE) { String lhsTitle; lhsTitle = leftObject.getTitle(); String rhsTitle; rhsTitle = rightObject.getTitle(); String mergedTitle = ((String) strategy.merge(LocatorUtils.property(leftLocator, "title", lhsTitle), LocatorUtils.property(rightLocator, "title", rhsTitle), lhsTitle, rhsTitle, leftObject.isSetTitle(), rightObject.isSetTitle())); target.setTitle(mergedTitle); } else { if (titleShouldBeMergedAndSet == Boolean.FALSE) { target.title = null; } } } { Boolean _abstractShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAbstract(), rightObject.isSetAbstract()); if (_abstractShouldBeMergedAndSet == Boolean.TRUE) { AbstractType lhsAbstract; lhsAbstract = leftObject.getAbstract(); AbstractType rhsAbstract; rhsAbstract = rightObject.getAbstract(); AbstractType mergedAbstract = ((AbstractType) strategy.merge(LocatorUtils.property(leftLocator, "_abstract", lhsAbstract), LocatorUtils.property(rightLocator, "_abstract", rhsAbstract), lhsAbstract, rhsAbstract, leftObject.isSetAbstract(), rightObject.isSetAbstract())); target.setAbstract(mergedAbstract); } else { if (_abstractShouldBeMergedAndSet == Boolean.FALSE) { target._abstract = null; } } } { Boolean documentationShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetDocumentation(), rightObject.isSetDocumentation()); if (documentationShouldBeMergedAndSet == Boolean.TRUE) { String lhsDocumentation; lhsDocumentation = leftObject.getDocumentation(); String rhsDocumentation; rhsDocumentation = rightObject.getDocumentation(); String mergedDocumentation = ((String) strategy.merge(LocatorUtils.property(leftLocator, "documentation", lhsDocumentation), LocatorUtils.property(rightLocator, "documentation", rhsDocumentation), lhsDocumentation, rhsDocumentation, leftObject.isSetDocumentation(), rightObject.isSetDocumentation())); target.setDocumentation(mergedDocumentation); } else { if (documentationShouldBeMergedAndSet == Boolean.FALSE) { target.documentation = null; } } } { 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(); } } } } } public void setValue(List value) { this.value = null; if (value!= null) { List draftl = this.getValue(); draftl.addAll(value); } } public Ordinal.Classes withTitle(String value) { setTitle(value); return this; } public Ordinal.Classes withAbstract(AbstractType value) { setAbstract(value); return this; } public Ordinal.Classes withDocumentation(String value) { setDocumentation(value); return this; } public Ordinal.Classes withValue(Ordinal.Classes.Value... values) { if (values!= null) { for (Ordinal.Classes.Value value: values) { getValue().add(value); } } return this; } public Ordinal.Classes withValue(Collection values) { if (values!= null) { getValue().addAll(values); } return this; } public Ordinal.Classes withValue(List value) { setValue(value); return this; } /** *

Java class for anonymous complex type. * *

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

         * <complexType>
         *   <complexContent>
         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       <sequence>
         *         <element ref="{http://www.opengis.net/tjs/1.0}Identifier"/>
         *         <element ref="{http://www.opengis.net/tjs/1.0}Title"/>
         *         <element ref="{http://www.opengis.net/tjs/1.0}Abstract"/>
         *         <element ref="{http://www.opengis.net/tjs/1.0}Documentation" minOccurs="0"/>
         *       </sequence>
         *       <attribute name="rank" use="required" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
         *       <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
         *     </restriction>
         *   </complexContent>
         * </complexType>
         * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "identifier", "title", "_abstract", "documentation" }) public static class Value implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(name = "Identifier", required = true) protected String identifier; @XmlElement(name = "Title", required = true) protected String title; @XmlElement(name = "Abstract", required = true) protected AbstractType _abstract; @XmlElement(name = "Documentation") @XmlSchemaType(name = "anyURI") protected String documentation; @XmlAttribute(name = "rank", required = true) @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger rank; @XmlAttribute(name = "color") @XmlSchemaType(name = "anySimpleType") protected String color; /** * Text string found in the V elements of this attribute * * @return * possible object is * {@link String } * */ public String getIdentifier() { return identifier; } /** * Sets the value of the identifier property. * * @param value * allowed object is * {@link String } * */ public void setIdentifier(String value) { this.identifier = value; } public boolean isSetIdentifier() { return (this.identifier!= null); } /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } public boolean isSetTitle() { return (this.title!= null); } /** * Gets the value of the abstract property. * * @return * possible object is * {@link AbstractType } * */ public AbstractType getAbstract() { return _abstract; } /** * Sets the value of the abstract property. * * @param value * allowed object is * {@link AbstractType } * */ public void setAbstract(AbstractType value) { this._abstract = value; } public boolean isSetAbstract() { return (this._abstract!= null); } /** * Gets the value of the documentation property. * * @return * possible object is * {@link String } * */ public String getDocumentation() { return documentation; } /** * Sets the value of the documentation property. * * @param value * allowed object is * {@link String } * */ public void setDocumentation(String value) { this.documentation = value; } public boolean isSetDocumentation() { return (this.documentation!= null); } /** * Gets the value of the rank property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getRank() { return rank; } /** * Sets the value of the rank property. * * @param value * allowed object is * {@link BigInteger } * */ public void setRank(BigInteger value) { this.rank = value; } public boolean isSetRank() { return (this.rank!= null); } /** * Gets the value of the color property. * * @return * possible object is * {@link String } * */ public String getColor() { return color; } /** * Sets the value of the color property. * * @param value * allowed object is * {@link String } * */ public void setColor(String value) { this.color = value; } public boolean isSetColor() { return (this.color!= 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) { { String theIdentifier; theIdentifier = this.getIdentifier(); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, this.isSetIdentifier()); } { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, this.isSetTitle()); } { AbstractType theAbstract; theAbstract = this.getAbstract(); strategy.appendField(locator, this, "_abstract", buffer, theAbstract, this.isSetAbstract()); } { String theDocumentation; theDocumentation = this.getDocumentation(); strategy.appendField(locator, this, "documentation", buffer, theDocumentation, this.isSetDocumentation()); } { BigInteger theRank; theRank = this.getRank(); strategy.appendField(locator, this, "rank", buffer, theRank, this.isSetRank()); } { String theColor; theColor = this.getColor(); strategy.appendField(locator, this, "color", buffer, theColor, this.isSetColor()); } 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 Ordinal.Classes.Value that = ((Ordinal.Classes.Value) object); { String lhsIdentifier; lhsIdentifier = this.getIdentifier(); String rhsIdentifier; rhsIdentifier = that.getIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, this.isSetIdentifier(), that.isSetIdentifier())) { return false; } } { String lhsTitle; lhsTitle = this.getTitle(); String rhsTitle; rhsTitle = that.getTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle, this.isSetTitle(), that.isSetTitle())) { return false; } } { AbstractType lhsAbstract; lhsAbstract = this.getAbstract(); AbstractType rhsAbstract; rhsAbstract = that.getAbstract(); if (!strategy.equals(LocatorUtils.property(thisLocator, "_abstract", lhsAbstract), LocatorUtils.property(thatLocator, "_abstract", rhsAbstract), lhsAbstract, rhsAbstract, this.isSetAbstract(), that.isSetAbstract())) { return false; } } { String lhsDocumentation; lhsDocumentation = this.getDocumentation(); String rhsDocumentation; rhsDocumentation = that.getDocumentation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "documentation", lhsDocumentation), LocatorUtils.property(thatLocator, "documentation", rhsDocumentation), lhsDocumentation, rhsDocumentation, this.isSetDocumentation(), that.isSetDocumentation())) { return false; } } { BigInteger lhsRank; lhsRank = this.getRank(); BigInteger rhsRank; rhsRank = that.getRank(); if (!strategy.equals(LocatorUtils.property(thisLocator, "rank", lhsRank), LocatorUtils.property(thatLocator, "rank", rhsRank), lhsRank, rhsRank, this.isSetRank(), that.isSetRank())) { return false; } } { String lhsColor; lhsColor = this.getColor(); String rhsColor; rhsColor = that.getColor(); if (!strategy.equals(LocatorUtils.property(thisLocator, "color", lhsColor), LocatorUtils.property(thatLocator, "color", rhsColor), lhsColor, rhsColor, this.isSetColor(), that.isSetColor())) { 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; { String theIdentifier; theIdentifier = this.getIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, this.isSetIdentifier()); } { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, this.isSetTitle()); } { AbstractType theAbstract; theAbstract = this.getAbstract(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_abstract", theAbstract), currentHashCode, theAbstract, this.isSetAbstract()); } { String theDocumentation; theDocumentation = this.getDocumentation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentation", theDocumentation), currentHashCode, theDocumentation, this.isSetDocumentation()); } { BigInteger theRank; theRank = this.getRank(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rank", theRank), currentHashCode, theRank, this.isSetRank()); } { String theColor; theColor = this.getColor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "color", theColor), currentHashCode, theColor, this.isSetColor()); } 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 Ordinal.Classes.Value) { final Ordinal.Classes.Value copy = ((Ordinal.Classes.Value) draftCopy); { Boolean identifierShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetIdentifier()); if (identifierShouldBeCopiedAndSet == Boolean.TRUE) { String sourceIdentifier; sourceIdentifier = this.getIdentifier(); String copyIdentifier = ((String) strategy.copy(LocatorUtils.property(locator, "identifier", sourceIdentifier), sourceIdentifier, this.isSetIdentifier())); copy.setIdentifier(copyIdentifier); } else { if (identifierShouldBeCopiedAndSet == Boolean.FALSE) { copy.identifier = null; } } } { Boolean titleShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetTitle()); if (titleShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTitle; sourceTitle = this.getTitle(); String copyTitle = ((String) strategy.copy(LocatorUtils.property(locator, "title", sourceTitle), sourceTitle, this.isSetTitle())); copy.setTitle(copyTitle); } else { if (titleShouldBeCopiedAndSet == Boolean.FALSE) { copy.title = null; } } } { Boolean _abstractShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAbstract()); if (_abstractShouldBeCopiedAndSet == Boolean.TRUE) { AbstractType sourceAbstract; sourceAbstract = this.getAbstract(); AbstractType copyAbstract = ((AbstractType) strategy.copy(LocatorUtils.property(locator, "_abstract", sourceAbstract), sourceAbstract, this.isSetAbstract())); copy.setAbstract(copyAbstract); } else { if (_abstractShouldBeCopiedAndSet == Boolean.FALSE) { copy._abstract = null; } } } { Boolean documentationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetDocumentation()); if (documentationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceDocumentation; sourceDocumentation = this.getDocumentation(); String copyDocumentation = ((String) strategy.copy(LocatorUtils.property(locator, "documentation", sourceDocumentation), sourceDocumentation, this.isSetDocumentation())); copy.setDocumentation(copyDocumentation); } else { if (documentationShouldBeCopiedAndSet == Boolean.FALSE) { copy.documentation = null; } } } { Boolean rankShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetRank()); if (rankShouldBeCopiedAndSet == Boolean.TRUE) { BigInteger sourceRank; sourceRank = this.getRank(); BigInteger copyRank = ((BigInteger) strategy.copy(LocatorUtils.property(locator, "rank", sourceRank), sourceRank, this.isSetRank())); copy.setRank(copyRank); } else { if (rankShouldBeCopiedAndSet == Boolean.FALSE) { copy.rank = null; } } } { Boolean colorShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetColor()); if (colorShouldBeCopiedAndSet == Boolean.TRUE) { String sourceColor; sourceColor = this.getColor(); String copyColor = ((String) strategy.copy(LocatorUtils.property(locator, "color", sourceColor), sourceColor, this.isSetColor())); copy.setColor(copyColor); } else { if (colorShouldBeCopiedAndSet == Boolean.FALSE) { copy.color = null; } } } } return draftCopy; } public Object createNewInstance() { return new Ordinal.Classes.Value(); } 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 Ordinal.Classes.Value) { final Ordinal.Classes.Value target = this; final Ordinal.Classes.Value leftObject = ((Ordinal.Classes.Value) left); final Ordinal.Classes.Value rightObject = ((Ordinal.Classes.Value) right); { Boolean identifierShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetIdentifier(), rightObject.isSetIdentifier()); if (identifierShouldBeMergedAndSet == Boolean.TRUE) { String lhsIdentifier; lhsIdentifier = leftObject.getIdentifier(); String rhsIdentifier; rhsIdentifier = rightObject.getIdentifier(); String mergedIdentifier = ((String) strategy.merge(LocatorUtils.property(leftLocator, "identifier", lhsIdentifier), LocatorUtils.property(rightLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, leftObject.isSetIdentifier(), rightObject.isSetIdentifier())); target.setIdentifier(mergedIdentifier); } else { if (identifierShouldBeMergedAndSet == Boolean.FALSE) { target.identifier = null; } } } { Boolean titleShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetTitle(), rightObject.isSetTitle()); if (titleShouldBeMergedAndSet == Boolean.TRUE) { String lhsTitle; lhsTitle = leftObject.getTitle(); String rhsTitle; rhsTitle = rightObject.getTitle(); String mergedTitle = ((String) strategy.merge(LocatorUtils.property(leftLocator, "title", lhsTitle), LocatorUtils.property(rightLocator, "title", rhsTitle), lhsTitle, rhsTitle, leftObject.isSetTitle(), rightObject.isSetTitle())); target.setTitle(mergedTitle); } else { if (titleShouldBeMergedAndSet == Boolean.FALSE) { target.title = null; } } } { Boolean _abstractShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAbstract(), rightObject.isSetAbstract()); if (_abstractShouldBeMergedAndSet == Boolean.TRUE) { AbstractType lhsAbstract; lhsAbstract = leftObject.getAbstract(); AbstractType rhsAbstract; rhsAbstract = rightObject.getAbstract(); AbstractType mergedAbstract = ((AbstractType) strategy.merge(LocatorUtils.property(leftLocator, "_abstract", lhsAbstract), LocatorUtils.property(rightLocator, "_abstract", rhsAbstract), lhsAbstract, rhsAbstract, leftObject.isSetAbstract(), rightObject.isSetAbstract())); target.setAbstract(mergedAbstract); } else { if (_abstractShouldBeMergedAndSet == Boolean.FALSE) { target._abstract = null; } } } { Boolean documentationShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetDocumentation(), rightObject.isSetDocumentation()); if (documentationShouldBeMergedAndSet == Boolean.TRUE) { String lhsDocumentation; lhsDocumentation = leftObject.getDocumentation(); String rhsDocumentation; rhsDocumentation = rightObject.getDocumentation(); String mergedDocumentation = ((String) strategy.merge(LocatorUtils.property(leftLocator, "documentation", lhsDocumentation), LocatorUtils.property(rightLocator, "documentation", rhsDocumentation), lhsDocumentation, rhsDocumentation, leftObject.isSetDocumentation(), rightObject.isSetDocumentation())); target.setDocumentation(mergedDocumentation); } else { if (documentationShouldBeMergedAndSet == Boolean.FALSE) { target.documentation = null; } } } { Boolean rankShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetRank(), rightObject.isSetRank()); if (rankShouldBeMergedAndSet == Boolean.TRUE) { BigInteger lhsRank; lhsRank = leftObject.getRank(); BigInteger rhsRank; rhsRank = rightObject.getRank(); BigInteger mergedRank = ((BigInteger) strategy.merge(LocatorUtils.property(leftLocator, "rank", lhsRank), LocatorUtils.property(rightLocator, "rank", rhsRank), lhsRank, rhsRank, leftObject.isSetRank(), rightObject.isSetRank())); target.setRank(mergedRank); } else { if (rankShouldBeMergedAndSet == Boolean.FALSE) { target.rank = null; } } } { Boolean colorShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetColor(), rightObject.isSetColor()); if (colorShouldBeMergedAndSet == Boolean.TRUE) { String lhsColor; lhsColor = leftObject.getColor(); String rhsColor; rhsColor = rightObject.getColor(); String mergedColor = ((String) strategy.merge(LocatorUtils.property(leftLocator, "color", lhsColor), LocatorUtils.property(rightLocator, "color", rhsColor), lhsColor, rhsColor, leftObject.isSetColor(), rightObject.isSetColor())); target.setColor(mergedColor); } else { if (colorShouldBeMergedAndSet == Boolean.FALSE) { target.color = null; } } } } } public Ordinal.Classes.Value withIdentifier(String value) { setIdentifier(value); return this; } public Ordinal.Classes.Value withTitle(String value) { setTitle(value); return this; } public Ordinal.Classes.Value withAbstract(AbstractType value) { setAbstract(value); return this; } public Ordinal.Classes.Value withDocumentation(String value) { setDocumentation(value); return this; } public Ordinal.Classes.Value withRank(BigInteger value) { setRank(value); return this; } public Ordinal.Classes.Value withColor(String value) { setColor(value); return this; } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy