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

net.opengis.tjs.v_1_0.FrameworkDatasetDescribeDataType Maven / Gradle / Ivy

The newest version!
//
// 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.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.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 FrameworkDatasetDescribeDataType complex type. * *

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

 * <complexType name="FrameworkDatasetDescribeDataType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{http://www.opengis.net/tjs/1.0}FrameworkURI"/>
 *         <element ref="{http://www.opengis.net/tjs/1.0}Organization"/>
 *         <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}ReferenceDate"/>
 *         <element ref="{http://www.opengis.net/tjs/1.0}Version"/>
 *         <element ref="{http://www.opengis.net/tjs/1.0}Documentation" minOccurs="0"/>
 *         <element ref="{http://www.opengis.net/tjs/1.0}FrameworkKey"/>
 *         <element ref="{http://www.opengis.net/tjs/1.0}BoundingCoordinates"/>
 *         <element ref="{http://www.opengis.net/tjs/1.0}DescribeDatasetsRequest"/>
 *         <element name="Dataset" maxOccurs="unbounded">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}DatasetURI"/>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}Organization"/>
 *                   <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}ReferenceDate"/>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}Version"/>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}Documentation" minOccurs="0"/>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}DescribeDataRequest"/>
 *                   <element ref="{http://www.opengis.net/tjs/1.0}Columnset"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "FrameworkDatasetDescribeDataType", propOrder = { "frameworkURI", "organization", "title", "_abstract", "referenceDate", "version", "documentation", "frameworkKey", "boundingCoordinates", "describeDatasetsRequest", "dataset" }) public class FrameworkDatasetDescribeDataType implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(name = "FrameworkURI", required = true) protected String frameworkURI; @XmlElement(name = "Organization", required = true) protected String organization; @XmlElement(name = "Title", required = true) protected String title; @XmlElement(name = "Abstract", required = true) protected AbstractType _abstract; @XmlElement(name = "ReferenceDate", required = true) protected ReferenceDate referenceDate; @XmlElement(name = "Version", required = true) protected String version; @XmlElement(name = "Documentation") @XmlSchemaType(name = "anyURI") protected String documentation; @XmlElement(name = "FrameworkKey", required = true) protected FrameworkKey frameworkKey; @XmlElement(name = "BoundingCoordinates", required = true) protected BoundingCoordinates boundingCoordinates; @XmlElement(name = "DescribeDatasetsRequest", required = true) protected DescribeDatasetsRequest describeDatasetsRequest; @XmlElement(name = "Dataset", required = true) protected List dataset; /** * Gets the value of the frameworkURI property. * * @return * possible object is * {@link String } * */ public String getFrameworkURI() { return frameworkURI; } /** * Sets the value of the frameworkURI property. * * @param value * allowed object is * {@link String } * */ public void setFrameworkURI(String value) { this.frameworkURI = value; } public boolean isSetFrameworkURI() { return (this.frameworkURI!= null); } /** * Gets the value of the organization property. * * @return * possible object is * {@link String } * */ public String getOrganization() { return organization; } /** * Sets the value of the organization property. * * @param value * allowed object is * {@link String } * */ public void setOrganization(String value) { this.organization = value; } public boolean isSetOrganization() { return (this.organization!= 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 referenceDate property. * * @return * possible object is * {@link ReferenceDate } * */ public ReferenceDate getReferenceDate() { return referenceDate; } /** * Sets the value of the referenceDate property. * * @param value * allowed object is * {@link ReferenceDate } * */ public void setReferenceDate(ReferenceDate value) { this.referenceDate = value; } public boolean isSetReferenceDate() { return (this.referenceDate!= null); } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } public boolean isSetVersion() { return (this.version!= 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 frameworkKey property. * * @return * possible object is * {@link FrameworkKey } * */ public FrameworkKey getFrameworkKey() { return frameworkKey; } /** * Sets the value of the frameworkKey property. * * @param value * allowed object is * {@link FrameworkKey } * */ public void setFrameworkKey(FrameworkKey value) { this.frameworkKey = value; } public boolean isSetFrameworkKey() { return (this.frameworkKey!= null); } /** * Gets the value of the boundingCoordinates property. * * @return * possible object is * {@link BoundingCoordinates } * */ public BoundingCoordinates getBoundingCoordinates() { return boundingCoordinates; } /** * Sets the value of the boundingCoordinates property. * * @param value * allowed object is * {@link BoundingCoordinates } * */ public void setBoundingCoordinates(BoundingCoordinates value) { this.boundingCoordinates = value; } public boolean isSetBoundingCoordinates() { return (this.boundingCoordinates!= null); } /** * Gets the value of the describeDatasetsRequest property. * * @return * possible object is * {@link DescribeDatasetsRequest } * */ public DescribeDatasetsRequest getDescribeDatasetsRequest() { return describeDatasetsRequest; } /** * Sets the value of the describeDatasetsRequest property. * * @param value * allowed object is * {@link DescribeDatasetsRequest } * */ public void setDescribeDatasetsRequest(DescribeDatasetsRequest value) { this.describeDatasetsRequest = value; } public boolean isSetDescribeDatasetsRequest() { return (this.describeDatasetsRequest!= null); } /** * Gets the value of the dataset 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 dataset property. * *

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

     *    getDataset().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FrameworkDatasetDescribeDataType.Dataset } * * */ public List getDataset() { if (dataset == null) { dataset = new ArrayList(); } return this.dataset; } public boolean isSetDataset() { return ((this.dataset!= null)&&(!this.dataset.isEmpty())); } public void unsetDataset() { this.dataset = 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 theFrameworkURI; theFrameworkURI = this.getFrameworkURI(); strategy.appendField(locator, this, "frameworkURI", buffer, theFrameworkURI, this.isSetFrameworkURI()); } { String theOrganization; theOrganization = this.getOrganization(); strategy.appendField(locator, this, "organization", buffer, theOrganization, this.isSetOrganization()); } { 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()); } { ReferenceDate theReferenceDate; theReferenceDate = this.getReferenceDate(); strategy.appendField(locator, this, "referenceDate", buffer, theReferenceDate, this.isSetReferenceDate()); } { String theVersion; theVersion = this.getVersion(); strategy.appendField(locator, this, "version", buffer, theVersion, this.isSetVersion()); } { String theDocumentation; theDocumentation = this.getDocumentation(); strategy.appendField(locator, this, "documentation", buffer, theDocumentation, this.isSetDocumentation()); } { FrameworkKey theFrameworkKey; theFrameworkKey = this.getFrameworkKey(); strategy.appendField(locator, this, "frameworkKey", buffer, theFrameworkKey, this.isSetFrameworkKey()); } { BoundingCoordinates theBoundingCoordinates; theBoundingCoordinates = this.getBoundingCoordinates(); strategy.appendField(locator, this, "boundingCoordinates", buffer, theBoundingCoordinates, this.isSetBoundingCoordinates()); } { DescribeDatasetsRequest theDescribeDatasetsRequest; theDescribeDatasetsRequest = this.getDescribeDatasetsRequest(); strategy.appendField(locator, this, "describeDatasetsRequest", buffer, theDescribeDatasetsRequest, this.isSetDescribeDatasetsRequest()); } { List theDataset; theDataset = (this.isSetDataset()?this.getDataset():null); strategy.appendField(locator, this, "dataset", buffer, theDataset, this.isSetDataset()); } 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 FrameworkDatasetDescribeDataType that = ((FrameworkDatasetDescribeDataType) object); { String lhsFrameworkURI; lhsFrameworkURI = this.getFrameworkURI(); String rhsFrameworkURI; rhsFrameworkURI = that.getFrameworkURI(); if (!strategy.equals(LocatorUtils.property(thisLocator, "frameworkURI", lhsFrameworkURI), LocatorUtils.property(thatLocator, "frameworkURI", rhsFrameworkURI), lhsFrameworkURI, rhsFrameworkURI, this.isSetFrameworkURI(), that.isSetFrameworkURI())) { return false; } } { String lhsOrganization; lhsOrganization = this.getOrganization(); String rhsOrganization; rhsOrganization = that.getOrganization(); if (!strategy.equals(LocatorUtils.property(thisLocator, "organization", lhsOrganization), LocatorUtils.property(thatLocator, "organization", rhsOrganization), lhsOrganization, rhsOrganization, this.isSetOrganization(), that.isSetOrganization())) { 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; } } { ReferenceDate lhsReferenceDate; lhsReferenceDate = this.getReferenceDate(); ReferenceDate rhsReferenceDate; rhsReferenceDate = that.getReferenceDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "referenceDate", lhsReferenceDate), LocatorUtils.property(thatLocator, "referenceDate", rhsReferenceDate), lhsReferenceDate, rhsReferenceDate, this.isSetReferenceDate(), that.isSetReferenceDate())) { return false; } } { String lhsVersion; lhsVersion = this.getVersion(); String rhsVersion; rhsVersion = that.getVersion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion, this.isSetVersion(), that.isSetVersion())) { 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; } } { FrameworkKey lhsFrameworkKey; lhsFrameworkKey = this.getFrameworkKey(); FrameworkKey rhsFrameworkKey; rhsFrameworkKey = that.getFrameworkKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "frameworkKey", lhsFrameworkKey), LocatorUtils.property(thatLocator, "frameworkKey", rhsFrameworkKey), lhsFrameworkKey, rhsFrameworkKey, this.isSetFrameworkKey(), that.isSetFrameworkKey())) { return false; } } { BoundingCoordinates lhsBoundingCoordinates; lhsBoundingCoordinates = this.getBoundingCoordinates(); BoundingCoordinates rhsBoundingCoordinates; rhsBoundingCoordinates = that.getBoundingCoordinates(); if (!strategy.equals(LocatorUtils.property(thisLocator, "boundingCoordinates", lhsBoundingCoordinates), LocatorUtils.property(thatLocator, "boundingCoordinates", rhsBoundingCoordinates), lhsBoundingCoordinates, rhsBoundingCoordinates, this.isSetBoundingCoordinates(), that.isSetBoundingCoordinates())) { return false; } } { DescribeDatasetsRequest lhsDescribeDatasetsRequest; lhsDescribeDatasetsRequest = this.getDescribeDatasetsRequest(); DescribeDatasetsRequest rhsDescribeDatasetsRequest; rhsDescribeDatasetsRequest = that.getDescribeDatasetsRequest(); if (!strategy.equals(LocatorUtils.property(thisLocator, "describeDatasetsRequest", lhsDescribeDatasetsRequest), LocatorUtils.property(thatLocator, "describeDatasetsRequest", rhsDescribeDatasetsRequest), lhsDescribeDatasetsRequest, rhsDescribeDatasetsRequest, this.isSetDescribeDatasetsRequest(), that.isSetDescribeDatasetsRequest())) { return false; } } { List lhsDataset; lhsDataset = (this.isSetDataset()?this.getDataset():null); List rhsDataset; rhsDataset = (that.isSetDataset()?that.getDataset():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "dataset", lhsDataset), LocatorUtils.property(thatLocator, "dataset", rhsDataset), lhsDataset, rhsDataset, this.isSetDataset(), that.isSetDataset())) { 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 theFrameworkURI; theFrameworkURI = this.getFrameworkURI(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "frameworkURI", theFrameworkURI), currentHashCode, theFrameworkURI, this.isSetFrameworkURI()); } { String theOrganization; theOrganization = this.getOrganization(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "organization", theOrganization), currentHashCode, theOrganization, this.isSetOrganization()); } { 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()); } { ReferenceDate theReferenceDate; theReferenceDate = this.getReferenceDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceDate", theReferenceDate), currentHashCode, theReferenceDate, this.isSetReferenceDate()); } { String theVersion; theVersion = this.getVersion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion, this.isSetVersion()); } { String theDocumentation; theDocumentation = this.getDocumentation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentation", theDocumentation), currentHashCode, theDocumentation, this.isSetDocumentation()); } { FrameworkKey theFrameworkKey; theFrameworkKey = this.getFrameworkKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "frameworkKey", theFrameworkKey), currentHashCode, theFrameworkKey, this.isSetFrameworkKey()); } { BoundingCoordinates theBoundingCoordinates; theBoundingCoordinates = this.getBoundingCoordinates(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "boundingCoordinates", theBoundingCoordinates), currentHashCode, theBoundingCoordinates, this.isSetBoundingCoordinates()); } { DescribeDatasetsRequest theDescribeDatasetsRequest; theDescribeDatasetsRequest = this.getDescribeDatasetsRequest(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "describeDatasetsRequest", theDescribeDatasetsRequest), currentHashCode, theDescribeDatasetsRequest, this.isSetDescribeDatasetsRequest()); } { List theDataset; theDataset = (this.isSetDataset()?this.getDataset():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dataset", theDataset), currentHashCode, theDataset, this.isSetDataset()); } 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 FrameworkDatasetDescribeDataType) { final FrameworkDatasetDescribeDataType copy = ((FrameworkDatasetDescribeDataType) draftCopy); { Boolean frameworkURIShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetFrameworkURI()); if (frameworkURIShouldBeCopiedAndSet == Boolean.TRUE) { String sourceFrameworkURI; sourceFrameworkURI = this.getFrameworkURI(); String copyFrameworkURI = ((String) strategy.copy(LocatorUtils.property(locator, "frameworkURI", sourceFrameworkURI), sourceFrameworkURI, this.isSetFrameworkURI())); copy.setFrameworkURI(copyFrameworkURI); } else { if (frameworkURIShouldBeCopiedAndSet == Boolean.FALSE) { copy.frameworkURI = null; } } } { Boolean organizationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetOrganization()); if (organizationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceOrganization; sourceOrganization = this.getOrganization(); String copyOrganization = ((String) strategy.copy(LocatorUtils.property(locator, "organization", sourceOrganization), sourceOrganization, this.isSetOrganization())); copy.setOrganization(copyOrganization); } else { if (organizationShouldBeCopiedAndSet == Boolean.FALSE) { copy.organization = 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 referenceDateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetReferenceDate()); if (referenceDateShouldBeCopiedAndSet == Boolean.TRUE) { ReferenceDate sourceReferenceDate; sourceReferenceDate = this.getReferenceDate(); ReferenceDate copyReferenceDate = ((ReferenceDate) strategy.copy(LocatorUtils.property(locator, "referenceDate", sourceReferenceDate), sourceReferenceDate, this.isSetReferenceDate())); copy.setReferenceDate(copyReferenceDate); } else { if (referenceDateShouldBeCopiedAndSet == Boolean.FALSE) { copy.referenceDate = null; } } } { Boolean versionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetVersion()); if (versionShouldBeCopiedAndSet == Boolean.TRUE) { String sourceVersion; sourceVersion = this.getVersion(); String copyVersion = ((String) strategy.copy(LocatorUtils.property(locator, "version", sourceVersion), sourceVersion, this.isSetVersion())); copy.setVersion(copyVersion); } else { if (versionShouldBeCopiedAndSet == Boolean.FALSE) { copy.version = 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 frameworkKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetFrameworkKey()); if (frameworkKeyShouldBeCopiedAndSet == Boolean.TRUE) { FrameworkKey sourceFrameworkKey; sourceFrameworkKey = this.getFrameworkKey(); FrameworkKey copyFrameworkKey = ((FrameworkKey) strategy.copy(LocatorUtils.property(locator, "frameworkKey", sourceFrameworkKey), sourceFrameworkKey, this.isSetFrameworkKey())); copy.setFrameworkKey(copyFrameworkKey); } else { if (frameworkKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.frameworkKey = null; } } } { Boolean boundingCoordinatesShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetBoundingCoordinates()); if (boundingCoordinatesShouldBeCopiedAndSet == Boolean.TRUE) { BoundingCoordinates sourceBoundingCoordinates; sourceBoundingCoordinates = this.getBoundingCoordinates(); BoundingCoordinates copyBoundingCoordinates = ((BoundingCoordinates) strategy.copy(LocatorUtils.property(locator, "boundingCoordinates", sourceBoundingCoordinates), sourceBoundingCoordinates, this.isSetBoundingCoordinates())); copy.setBoundingCoordinates(copyBoundingCoordinates); } else { if (boundingCoordinatesShouldBeCopiedAndSet == Boolean.FALSE) { copy.boundingCoordinates = null; } } } { Boolean describeDatasetsRequestShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetDescribeDatasetsRequest()); if (describeDatasetsRequestShouldBeCopiedAndSet == Boolean.TRUE) { DescribeDatasetsRequest sourceDescribeDatasetsRequest; sourceDescribeDatasetsRequest = this.getDescribeDatasetsRequest(); DescribeDatasetsRequest copyDescribeDatasetsRequest = ((DescribeDatasetsRequest) strategy.copy(LocatorUtils.property(locator, "describeDatasetsRequest", sourceDescribeDatasetsRequest), sourceDescribeDatasetsRequest, this.isSetDescribeDatasetsRequest())); copy.setDescribeDatasetsRequest(copyDescribeDatasetsRequest); } else { if (describeDatasetsRequestShouldBeCopiedAndSet == Boolean.FALSE) { copy.describeDatasetsRequest = null; } } } { Boolean datasetShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetDataset()); if (datasetShouldBeCopiedAndSet == Boolean.TRUE) { List sourceDataset; sourceDataset = (this.isSetDataset()?this.getDataset():null); @SuppressWarnings("unchecked") List copyDataset = ((List ) strategy.copy(LocatorUtils.property(locator, "dataset", sourceDataset), sourceDataset, this.isSetDataset())); copy.unsetDataset(); if (copyDataset!= null) { List uniqueDatasetl = copy.getDataset(); uniqueDatasetl.addAll(copyDataset); } } else { if (datasetShouldBeCopiedAndSet == Boolean.FALSE) { copy.unsetDataset(); } } } } return draftCopy; } public Object createNewInstance() { return new FrameworkDatasetDescribeDataType(); } 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 FrameworkDatasetDescribeDataType) { final FrameworkDatasetDescribeDataType target = this; final FrameworkDatasetDescribeDataType leftObject = ((FrameworkDatasetDescribeDataType) left); final FrameworkDatasetDescribeDataType rightObject = ((FrameworkDatasetDescribeDataType) right); { Boolean frameworkURIShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetFrameworkURI(), rightObject.isSetFrameworkURI()); if (frameworkURIShouldBeMergedAndSet == Boolean.TRUE) { String lhsFrameworkURI; lhsFrameworkURI = leftObject.getFrameworkURI(); String rhsFrameworkURI; rhsFrameworkURI = rightObject.getFrameworkURI(); String mergedFrameworkURI = ((String) strategy.merge(LocatorUtils.property(leftLocator, "frameworkURI", lhsFrameworkURI), LocatorUtils.property(rightLocator, "frameworkURI", rhsFrameworkURI), lhsFrameworkURI, rhsFrameworkURI, leftObject.isSetFrameworkURI(), rightObject.isSetFrameworkURI())); target.setFrameworkURI(mergedFrameworkURI); } else { if (frameworkURIShouldBeMergedAndSet == Boolean.FALSE) { target.frameworkURI = null; } } } { Boolean organizationShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetOrganization(), rightObject.isSetOrganization()); if (organizationShouldBeMergedAndSet == Boolean.TRUE) { String lhsOrganization; lhsOrganization = leftObject.getOrganization(); String rhsOrganization; rhsOrganization = rightObject.getOrganization(); String mergedOrganization = ((String) strategy.merge(LocatorUtils.property(leftLocator, "organization", lhsOrganization), LocatorUtils.property(rightLocator, "organization", rhsOrganization), lhsOrganization, rhsOrganization, leftObject.isSetOrganization(), rightObject.isSetOrganization())); target.setOrganization(mergedOrganization); } else { if (organizationShouldBeMergedAndSet == Boolean.FALSE) { target.organization = 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 referenceDateShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetReferenceDate(), rightObject.isSetReferenceDate()); if (referenceDateShouldBeMergedAndSet == Boolean.TRUE) { ReferenceDate lhsReferenceDate; lhsReferenceDate = leftObject.getReferenceDate(); ReferenceDate rhsReferenceDate; rhsReferenceDate = rightObject.getReferenceDate(); ReferenceDate mergedReferenceDate = ((ReferenceDate) strategy.merge(LocatorUtils.property(leftLocator, "referenceDate", lhsReferenceDate), LocatorUtils.property(rightLocator, "referenceDate", rhsReferenceDate), lhsReferenceDate, rhsReferenceDate, leftObject.isSetReferenceDate(), rightObject.isSetReferenceDate())); target.setReferenceDate(mergedReferenceDate); } else { if (referenceDateShouldBeMergedAndSet == Boolean.FALSE) { target.referenceDate = null; } } } { Boolean versionShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetVersion(), rightObject.isSetVersion()); if (versionShouldBeMergedAndSet == Boolean.TRUE) { String lhsVersion; lhsVersion = leftObject.getVersion(); String rhsVersion; rhsVersion = rightObject.getVersion(); String mergedVersion = ((String) strategy.merge(LocatorUtils.property(leftLocator, "version", lhsVersion), LocatorUtils.property(rightLocator, "version", rhsVersion), lhsVersion, rhsVersion, leftObject.isSetVersion(), rightObject.isSetVersion())); target.setVersion(mergedVersion); } else { if (versionShouldBeMergedAndSet == Boolean.FALSE) { target.version = 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 frameworkKeyShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetFrameworkKey(), rightObject.isSetFrameworkKey()); if (frameworkKeyShouldBeMergedAndSet == Boolean.TRUE) { FrameworkKey lhsFrameworkKey; lhsFrameworkKey = leftObject.getFrameworkKey(); FrameworkKey rhsFrameworkKey; rhsFrameworkKey = rightObject.getFrameworkKey(); FrameworkKey mergedFrameworkKey = ((FrameworkKey) strategy.merge(LocatorUtils.property(leftLocator, "frameworkKey", lhsFrameworkKey), LocatorUtils.property(rightLocator, "frameworkKey", rhsFrameworkKey), lhsFrameworkKey, rhsFrameworkKey, leftObject.isSetFrameworkKey(), rightObject.isSetFrameworkKey())); target.setFrameworkKey(mergedFrameworkKey); } else { if (frameworkKeyShouldBeMergedAndSet == Boolean.FALSE) { target.frameworkKey = null; } } } { Boolean boundingCoordinatesShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetBoundingCoordinates(), rightObject.isSetBoundingCoordinates()); if (boundingCoordinatesShouldBeMergedAndSet == Boolean.TRUE) { BoundingCoordinates lhsBoundingCoordinates; lhsBoundingCoordinates = leftObject.getBoundingCoordinates(); BoundingCoordinates rhsBoundingCoordinates; rhsBoundingCoordinates = rightObject.getBoundingCoordinates(); BoundingCoordinates mergedBoundingCoordinates = ((BoundingCoordinates) strategy.merge(LocatorUtils.property(leftLocator, "boundingCoordinates", lhsBoundingCoordinates), LocatorUtils.property(rightLocator, "boundingCoordinates", rhsBoundingCoordinates), lhsBoundingCoordinates, rhsBoundingCoordinates, leftObject.isSetBoundingCoordinates(), rightObject.isSetBoundingCoordinates())); target.setBoundingCoordinates(mergedBoundingCoordinates); } else { if (boundingCoordinatesShouldBeMergedAndSet == Boolean.FALSE) { target.boundingCoordinates = null; } } } { Boolean describeDatasetsRequestShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetDescribeDatasetsRequest(), rightObject.isSetDescribeDatasetsRequest()); if (describeDatasetsRequestShouldBeMergedAndSet == Boolean.TRUE) { DescribeDatasetsRequest lhsDescribeDatasetsRequest; lhsDescribeDatasetsRequest = leftObject.getDescribeDatasetsRequest(); DescribeDatasetsRequest rhsDescribeDatasetsRequest; rhsDescribeDatasetsRequest = rightObject.getDescribeDatasetsRequest(); DescribeDatasetsRequest mergedDescribeDatasetsRequest = ((DescribeDatasetsRequest) strategy.merge(LocatorUtils.property(leftLocator, "describeDatasetsRequest", lhsDescribeDatasetsRequest), LocatorUtils.property(rightLocator, "describeDatasetsRequest", rhsDescribeDatasetsRequest), lhsDescribeDatasetsRequest, rhsDescribeDatasetsRequest, leftObject.isSetDescribeDatasetsRequest(), rightObject.isSetDescribeDatasetsRequest())); target.setDescribeDatasetsRequest(mergedDescribeDatasetsRequest); } else { if (describeDatasetsRequestShouldBeMergedAndSet == Boolean.FALSE) { target.describeDatasetsRequest = null; } } } { Boolean datasetShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetDataset(), rightObject.isSetDataset()); if (datasetShouldBeMergedAndSet == Boolean.TRUE) { List lhsDataset; lhsDataset = (leftObject.isSetDataset()?leftObject.getDataset():null); List rhsDataset; rhsDataset = (rightObject.isSetDataset()?rightObject.getDataset():null); List mergedDataset = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "dataset", lhsDataset), LocatorUtils.property(rightLocator, "dataset", rhsDataset), lhsDataset, rhsDataset, leftObject.isSetDataset(), rightObject.isSetDataset())); target.unsetDataset(); if (mergedDataset!= null) { List uniqueDatasetl = target.getDataset(); uniqueDatasetl.addAll(mergedDataset); } } else { if (datasetShouldBeMergedAndSet == Boolean.FALSE) { target.unsetDataset(); } } } } } public void setDataset(List value) { this.dataset = null; if (value!= null) { List draftl = this.getDataset(); draftl.addAll(value); } } public FrameworkDatasetDescribeDataType withFrameworkURI(String value) { setFrameworkURI(value); return this; } public FrameworkDatasetDescribeDataType withOrganization(String value) { setOrganization(value); return this; } public FrameworkDatasetDescribeDataType withTitle(String value) { setTitle(value); return this; } public FrameworkDatasetDescribeDataType withAbstract(AbstractType value) { setAbstract(value); return this; } public FrameworkDatasetDescribeDataType withReferenceDate(ReferenceDate value) { setReferenceDate(value); return this; } public FrameworkDatasetDescribeDataType withVersion(String value) { setVersion(value); return this; } public FrameworkDatasetDescribeDataType withDocumentation(String value) { setDocumentation(value); return this; } public FrameworkDatasetDescribeDataType withFrameworkKey(FrameworkKey value) { setFrameworkKey(value); return this; } public FrameworkDatasetDescribeDataType withBoundingCoordinates(BoundingCoordinates value) { setBoundingCoordinates(value); return this; } public FrameworkDatasetDescribeDataType withDescribeDatasetsRequest(DescribeDatasetsRequest value) { setDescribeDatasetsRequest(value); return this; } public FrameworkDatasetDescribeDataType withDataset(FrameworkDatasetDescribeDataType.Dataset... values) { if (values!= null) { for (FrameworkDatasetDescribeDataType.Dataset value: values) { getDataset().add(value); } } return this; } public FrameworkDatasetDescribeDataType withDataset(Collection values) { if (values!= null) { getDataset().addAll(values); } return this; } public FrameworkDatasetDescribeDataType withDataset(List value) { setDataset(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}DatasetURI"/>
     *         <element ref="{http://www.opengis.net/tjs/1.0}Organization"/>
     *         <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}ReferenceDate"/>
     *         <element ref="{http://www.opengis.net/tjs/1.0}Version"/>
     *         <element ref="{http://www.opengis.net/tjs/1.0}Documentation" minOccurs="0"/>
     *         <element ref="{http://www.opengis.net/tjs/1.0}DescribeDataRequest"/>
     *         <element ref="{http://www.opengis.net/tjs/1.0}Columnset"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "datasetURI", "organization", "title", "_abstract", "referenceDate", "version", "documentation", "describeDataRequest", "columnset" }) public static class Dataset implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(name = "DatasetURI", required = true) protected String datasetURI; @XmlElement(name = "Organization", required = true) protected String organization; @XmlElement(name = "Title", required = true) protected String title; @XmlElement(name = "Abstract", required = true) protected AbstractType _abstract; @XmlElement(name = "ReferenceDate", required = true) protected ReferenceDate referenceDate; @XmlElement(name = "Version", required = true) protected String version; @XmlElement(name = "Documentation") @XmlSchemaType(name = "anyURI") protected String documentation; @XmlElement(name = "DescribeDataRequest", required = true) protected DescribeDataRequest describeDataRequest; @XmlElement(name = "Columnset", required = true) protected Columnset columnset; /** * Gets the value of the datasetURI property. * * @return * possible object is * {@link String } * */ public String getDatasetURI() { return datasetURI; } /** * Sets the value of the datasetURI property. * * @param value * allowed object is * {@link String } * */ public void setDatasetURI(String value) { this.datasetURI = value; } public boolean isSetDatasetURI() { return (this.datasetURI!= null); } /** * Gets the value of the organization property. * * @return * possible object is * {@link String } * */ public String getOrganization() { return organization; } /** * Sets the value of the organization property. * * @param value * allowed object is * {@link String } * */ public void setOrganization(String value) { this.organization = value; } public boolean isSetOrganization() { return (this.organization!= 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 referenceDate property. * * @return * possible object is * {@link ReferenceDate } * */ public ReferenceDate getReferenceDate() { return referenceDate; } /** * Sets the value of the referenceDate property. * * @param value * allowed object is * {@link ReferenceDate } * */ public void setReferenceDate(ReferenceDate value) { this.referenceDate = value; } public boolean isSetReferenceDate() { return (this.referenceDate!= null); } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } public boolean isSetVersion() { return (this.version!= 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 describeDataRequest property. * * @return * possible object is * {@link DescribeDataRequest } * */ public DescribeDataRequest getDescribeDataRequest() { return describeDataRequest; } /** * Sets the value of the describeDataRequest property. * * @param value * allowed object is * {@link DescribeDataRequest } * */ public void setDescribeDataRequest(DescribeDataRequest value) { this.describeDataRequest = value; } public boolean isSetDescribeDataRequest() { return (this.describeDataRequest!= null); } /** * Gets the value of the columnset property. * * @return * possible object is * {@link Columnset } * */ public Columnset getColumnset() { return columnset; } /** * Sets the value of the columnset property. * * @param value * allowed object is * {@link Columnset } * */ public void setColumnset(Columnset value) { this.columnset = value; } public boolean isSetColumnset() { return (this.columnset!= 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 theDatasetURI; theDatasetURI = this.getDatasetURI(); strategy.appendField(locator, this, "datasetURI", buffer, theDatasetURI, this.isSetDatasetURI()); } { String theOrganization; theOrganization = this.getOrganization(); strategy.appendField(locator, this, "organization", buffer, theOrganization, this.isSetOrganization()); } { 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()); } { ReferenceDate theReferenceDate; theReferenceDate = this.getReferenceDate(); strategy.appendField(locator, this, "referenceDate", buffer, theReferenceDate, this.isSetReferenceDate()); } { String theVersion; theVersion = this.getVersion(); strategy.appendField(locator, this, "version", buffer, theVersion, this.isSetVersion()); } { String theDocumentation; theDocumentation = this.getDocumentation(); strategy.appendField(locator, this, "documentation", buffer, theDocumentation, this.isSetDocumentation()); } { DescribeDataRequest theDescribeDataRequest; theDescribeDataRequest = this.getDescribeDataRequest(); strategy.appendField(locator, this, "describeDataRequest", buffer, theDescribeDataRequest, this.isSetDescribeDataRequest()); } { Columnset theColumnset; theColumnset = this.getColumnset(); strategy.appendField(locator, this, "columnset", buffer, theColumnset, this.isSetColumnset()); } 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 FrameworkDatasetDescribeDataType.Dataset that = ((FrameworkDatasetDescribeDataType.Dataset) object); { String lhsDatasetURI; lhsDatasetURI = this.getDatasetURI(); String rhsDatasetURI; rhsDatasetURI = that.getDatasetURI(); if (!strategy.equals(LocatorUtils.property(thisLocator, "datasetURI", lhsDatasetURI), LocatorUtils.property(thatLocator, "datasetURI", rhsDatasetURI), lhsDatasetURI, rhsDatasetURI, this.isSetDatasetURI(), that.isSetDatasetURI())) { return false; } } { String lhsOrganization; lhsOrganization = this.getOrganization(); String rhsOrganization; rhsOrganization = that.getOrganization(); if (!strategy.equals(LocatorUtils.property(thisLocator, "organization", lhsOrganization), LocatorUtils.property(thatLocator, "organization", rhsOrganization), lhsOrganization, rhsOrganization, this.isSetOrganization(), that.isSetOrganization())) { 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; } } { ReferenceDate lhsReferenceDate; lhsReferenceDate = this.getReferenceDate(); ReferenceDate rhsReferenceDate; rhsReferenceDate = that.getReferenceDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "referenceDate", lhsReferenceDate), LocatorUtils.property(thatLocator, "referenceDate", rhsReferenceDate), lhsReferenceDate, rhsReferenceDate, this.isSetReferenceDate(), that.isSetReferenceDate())) { return false; } } { String lhsVersion; lhsVersion = this.getVersion(); String rhsVersion; rhsVersion = that.getVersion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion, this.isSetVersion(), that.isSetVersion())) { 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; } } { DescribeDataRequest lhsDescribeDataRequest; lhsDescribeDataRequest = this.getDescribeDataRequest(); DescribeDataRequest rhsDescribeDataRequest; rhsDescribeDataRequest = that.getDescribeDataRequest(); if (!strategy.equals(LocatorUtils.property(thisLocator, "describeDataRequest", lhsDescribeDataRequest), LocatorUtils.property(thatLocator, "describeDataRequest", rhsDescribeDataRequest), lhsDescribeDataRequest, rhsDescribeDataRequest, this.isSetDescribeDataRequest(), that.isSetDescribeDataRequest())) { return false; } } { Columnset lhsColumnset; lhsColumnset = this.getColumnset(); Columnset rhsColumnset; rhsColumnset = that.getColumnset(); if (!strategy.equals(LocatorUtils.property(thisLocator, "columnset", lhsColumnset), LocatorUtils.property(thatLocator, "columnset", rhsColumnset), lhsColumnset, rhsColumnset, this.isSetColumnset(), that.isSetColumnset())) { 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 theDatasetURI; theDatasetURI = this.getDatasetURI(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "datasetURI", theDatasetURI), currentHashCode, theDatasetURI, this.isSetDatasetURI()); } { String theOrganization; theOrganization = this.getOrganization(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "organization", theOrganization), currentHashCode, theOrganization, this.isSetOrganization()); } { 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()); } { ReferenceDate theReferenceDate; theReferenceDate = this.getReferenceDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceDate", theReferenceDate), currentHashCode, theReferenceDate, this.isSetReferenceDate()); } { String theVersion; theVersion = this.getVersion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion, this.isSetVersion()); } { String theDocumentation; theDocumentation = this.getDocumentation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentation", theDocumentation), currentHashCode, theDocumentation, this.isSetDocumentation()); } { DescribeDataRequest theDescribeDataRequest; theDescribeDataRequest = this.getDescribeDataRequest(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "describeDataRequest", theDescribeDataRequest), currentHashCode, theDescribeDataRequest, this.isSetDescribeDataRequest()); } { Columnset theColumnset; theColumnset = this.getColumnset(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "columnset", theColumnset), currentHashCode, theColumnset, this.isSetColumnset()); } 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 FrameworkDatasetDescribeDataType.Dataset) { final FrameworkDatasetDescribeDataType.Dataset copy = ((FrameworkDatasetDescribeDataType.Dataset) draftCopy); { Boolean datasetURIShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetDatasetURI()); if (datasetURIShouldBeCopiedAndSet == Boolean.TRUE) { String sourceDatasetURI; sourceDatasetURI = this.getDatasetURI(); String copyDatasetURI = ((String) strategy.copy(LocatorUtils.property(locator, "datasetURI", sourceDatasetURI), sourceDatasetURI, this.isSetDatasetURI())); copy.setDatasetURI(copyDatasetURI); } else { if (datasetURIShouldBeCopiedAndSet == Boolean.FALSE) { copy.datasetURI = null; } } } { Boolean organizationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetOrganization()); if (organizationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceOrganization; sourceOrganization = this.getOrganization(); String copyOrganization = ((String) strategy.copy(LocatorUtils.property(locator, "organization", sourceOrganization), sourceOrganization, this.isSetOrganization())); copy.setOrganization(copyOrganization); } else { if (organizationShouldBeCopiedAndSet == Boolean.FALSE) { copy.organization = 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 referenceDateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetReferenceDate()); if (referenceDateShouldBeCopiedAndSet == Boolean.TRUE) { ReferenceDate sourceReferenceDate; sourceReferenceDate = this.getReferenceDate(); ReferenceDate copyReferenceDate = ((ReferenceDate) strategy.copy(LocatorUtils.property(locator, "referenceDate", sourceReferenceDate), sourceReferenceDate, this.isSetReferenceDate())); copy.setReferenceDate(copyReferenceDate); } else { if (referenceDateShouldBeCopiedAndSet == Boolean.FALSE) { copy.referenceDate = null; } } } { Boolean versionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetVersion()); if (versionShouldBeCopiedAndSet == Boolean.TRUE) { String sourceVersion; sourceVersion = this.getVersion(); String copyVersion = ((String) strategy.copy(LocatorUtils.property(locator, "version", sourceVersion), sourceVersion, this.isSetVersion())); copy.setVersion(copyVersion); } else { if (versionShouldBeCopiedAndSet == Boolean.FALSE) { copy.version = 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 describeDataRequestShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetDescribeDataRequest()); if (describeDataRequestShouldBeCopiedAndSet == Boolean.TRUE) { DescribeDataRequest sourceDescribeDataRequest; sourceDescribeDataRequest = this.getDescribeDataRequest(); DescribeDataRequest copyDescribeDataRequest = ((DescribeDataRequest) strategy.copy(LocatorUtils.property(locator, "describeDataRequest", sourceDescribeDataRequest), sourceDescribeDataRequest, this.isSetDescribeDataRequest())); copy.setDescribeDataRequest(copyDescribeDataRequest); } else { if (describeDataRequestShouldBeCopiedAndSet == Boolean.FALSE) { copy.describeDataRequest = null; } } } { Boolean columnsetShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetColumnset()); if (columnsetShouldBeCopiedAndSet == Boolean.TRUE) { Columnset sourceColumnset; sourceColumnset = this.getColumnset(); Columnset copyColumnset = ((Columnset) strategy.copy(LocatorUtils.property(locator, "columnset", sourceColumnset), sourceColumnset, this.isSetColumnset())); copy.setColumnset(copyColumnset); } else { if (columnsetShouldBeCopiedAndSet == Boolean.FALSE) { copy.columnset = null; } } } } return draftCopy; } public Object createNewInstance() { return new FrameworkDatasetDescribeDataType.Dataset(); } 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 FrameworkDatasetDescribeDataType.Dataset) { final FrameworkDatasetDescribeDataType.Dataset target = this; final FrameworkDatasetDescribeDataType.Dataset leftObject = ((FrameworkDatasetDescribeDataType.Dataset) left); final FrameworkDatasetDescribeDataType.Dataset rightObject = ((FrameworkDatasetDescribeDataType.Dataset) right); { Boolean datasetURIShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetDatasetURI(), rightObject.isSetDatasetURI()); if (datasetURIShouldBeMergedAndSet == Boolean.TRUE) { String lhsDatasetURI; lhsDatasetURI = leftObject.getDatasetURI(); String rhsDatasetURI; rhsDatasetURI = rightObject.getDatasetURI(); String mergedDatasetURI = ((String) strategy.merge(LocatorUtils.property(leftLocator, "datasetURI", lhsDatasetURI), LocatorUtils.property(rightLocator, "datasetURI", rhsDatasetURI), lhsDatasetURI, rhsDatasetURI, leftObject.isSetDatasetURI(), rightObject.isSetDatasetURI())); target.setDatasetURI(mergedDatasetURI); } else { if (datasetURIShouldBeMergedAndSet == Boolean.FALSE) { target.datasetURI = null; } } } { Boolean organizationShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetOrganization(), rightObject.isSetOrganization()); if (organizationShouldBeMergedAndSet == Boolean.TRUE) { String lhsOrganization; lhsOrganization = leftObject.getOrganization(); String rhsOrganization; rhsOrganization = rightObject.getOrganization(); String mergedOrganization = ((String) strategy.merge(LocatorUtils.property(leftLocator, "organization", lhsOrganization), LocatorUtils.property(rightLocator, "organization", rhsOrganization), lhsOrganization, rhsOrganization, leftObject.isSetOrganization(), rightObject.isSetOrganization())); target.setOrganization(mergedOrganization); } else { if (organizationShouldBeMergedAndSet == Boolean.FALSE) { target.organization = 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 referenceDateShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetReferenceDate(), rightObject.isSetReferenceDate()); if (referenceDateShouldBeMergedAndSet == Boolean.TRUE) { ReferenceDate lhsReferenceDate; lhsReferenceDate = leftObject.getReferenceDate(); ReferenceDate rhsReferenceDate; rhsReferenceDate = rightObject.getReferenceDate(); ReferenceDate mergedReferenceDate = ((ReferenceDate) strategy.merge(LocatorUtils.property(leftLocator, "referenceDate", lhsReferenceDate), LocatorUtils.property(rightLocator, "referenceDate", rhsReferenceDate), lhsReferenceDate, rhsReferenceDate, leftObject.isSetReferenceDate(), rightObject.isSetReferenceDate())); target.setReferenceDate(mergedReferenceDate); } else { if (referenceDateShouldBeMergedAndSet == Boolean.FALSE) { target.referenceDate = null; } } } { Boolean versionShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetVersion(), rightObject.isSetVersion()); if (versionShouldBeMergedAndSet == Boolean.TRUE) { String lhsVersion; lhsVersion = leftObject.getVersion(); String rhsVersion; rhsVersion = rightObject.getVersion(); String mergedVersion = ((String) strategy.merge(LocatorUtils.property(leftLocator, "version", lhsVersion), LocatorUtils.property(rightLocator, "version", rhsVersion), lhsVersion, rhsVersion, leftObject.isSetVersion(), rightObject.isSetVersion())); target.setVersion(mergedVersion); } else { if (versionShouldBeMergedAndSet == Boolean.FALSE) { target.version = 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 describeDataRequestShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetDescribeDataRequest(), rightObject.isSetDescribeDataRequest()); if (describeDataRequestShouldBeMergedAndSet == Boolean.TRUE) { DescribeDataRequest lhsDescribeDataRequest; lhsDescribeDataRequest = leftObject.getDescribeDataRequest(); DescribeDataRequest rhsDescribeDataRequest; rhsDescribeDataRequest = rightObject.getDescribeDataRequest(); DescribeDataRequest mergedDescribeDataRequest = ((DescribeDataRequest) strategy.merge(LocatorUtils.property(leftLocator, "describeDataRequest", lhsDescribeDataRequest), LocatorUtils.property(rightLocator, "describeDataRequest", rhsDescribeDataRequest), lhsDescribeDataRequest, rhsDescribeDataRequest, leftObject.isSetDescribeDataRequest(), rightObject.isSetDescribeDataRequest())); target.setDescribeDataRequest(mergedDescribeDataRequest); } else { if (describeDataRequestShouldBeMergedAndSet == Boolean.FALSE) { target.describeDataRequest = null; } } } { Boolean columnsetShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetColumnset(), rightObject.isSetColumnset()); if (columnsetShouldBeMergedAndSet == Boolean.TRUE) { Columnset lhsColumnset; lhsColumnset = leftObject.getColumnset(); Columnset rhsColumnset; rhsColumnset = rightObject.getColumnset(); Columnset mergedColumnset = ((Columnset) strategy.merge(LocatorUtils.property(leftLocator, "columnset", lhsColumnset), LocatorUtils.property(rightLocator, "columnset", rhsColumnset), lhsColumnset, rhsColumnset, leftObject.isSetColumnset(), rightObject.isSetColumnset())); target.setColumnset(mergedColumnset); } else { if (columnsetShouldBeMergedAndSet == Boolean.FALSE) { target.columnset = null; } } } } } public FrameworkDatasetDescribeDataType.Dataset withDatasetURI(String value) { setDatasetURI(value); return this; } public FrameworkDatasetDescribeDataType.Dataset withOrganization(String value) { setOrganization(value); return this; } public FrameworkDatasetDescribeDataType.Dataset withTitle(String value) { setTitle(value); return this; } public FrameworkDatasetDescribeDataType.Dataset withAbstract(AbstractType value) { setAbstract(value); return this; } public FrameworkDatasetDescribeDataType.Dataset withReferenceDate(ReferenceDate value) { setReferenceDate(value); return this; } public FrameworkDatasetDescribeDataType.Dataset withVersion(String value) { setVersion(value); return this; } public FrameworkDatasetDescribeDataType.Dataset withDocumentation(String value) { setDocumentation(value); return this; } public FrameworkDatasetDescribeDataType.Dataset withDescribeDataRequest(DescribeDataRequest value) { setDescribeDataRequest(value); return this; } public FrameworkDatasetDescribeDataType.Dataset withColumnset(Columnset value) { setColumnset(value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy