net.opengis.tjs.v_1_0.DescribeDatasets 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
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>
* <extension base="{http://www.opengis.net/tjs/1.0}RequestBaseType">
* <sequence>
* <element ref="{http://www.opengis.net/tjs/1.0}FrameworkURI" minOccurs="0"/>
* <element ref="{http://www.opengis.net/tjs/1.0}DatasetURI" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"frameworkURI",
"datasetURI"
})
@XmlRootElement(name = "DescribeDatasets")
public class DescribeDatasets
extends RequestBaseType
implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(name = "FrameworkURI")
protected String frameworkURI;
@XmlElement(name = "DatasetURI")
protected String datasetURI;
/**
* URI the spatial framework to which the attribute data must apply.
*
* @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 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);
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
super.appendFields(locator, buffer, strategy);
{
String theFrameworkURI;
theFrameworkURI = this.getFrameworkURI();
strategy.appendField(locator, this, "frameworkURI", buffer, theFrameworkURI, this.isSetFrameworkURI());
}
{
String theDatasetURI;
theDatasetURI = this.getDatasetURI();
strategy.appendField(locator, this, "datasetURI", buffer, theDatasetURI, this.isSetDatasetURI());
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final DescribeDatasets that = ((DescribeDatasets) 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 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;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
String theFrameworkURI;
theFrameworkURI = this.getFrameworkURI();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "frameworkURI", theFrameworkURI), currentHashCode, theFrameworkURI, this.isSetFrameworkURI());
}
{
String theDatasetURI;
theDatasetURI = this.getDatasetURI();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "datasetURI", theDatasetURI), currentHashCode, theDatasetURI, this.isSetDatasetURI());
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
super.copyTo(locator, draftCopy, strategy);
if (draftCopy instanceof DescribeDatasets) {
final DescribeDatasets copy = ((DescribeDatasets) 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 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;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new DescribeDatasets();
}
public void mergeFrom(Object left, Object right) {
final MergeStrategy2 strategy = JAXBMergeStrategy.INSTANCE;
mergeFrom(null, null, left, right, strategy);
}
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy2 strategy) {
super.mergeFrom(leftLocator, rightLocator, left, right, strategy);
if (right instanceof DescribeDatasets) {
final DescribeDatasets target = this;
final DescribeDatasets leftObject = ((DescribeDatasets) left);
final DescribeDatasets rightObject = ((DescribeDatasets) 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 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;
}
}
}
}
}
public DescribeDatasets withFrameworkURI(String value) {
setFrameworkURI(value);
return this;
}
public DescribeDatasets withDatasetURI(String value) {
setDatasetURI(value);
return this;
}
@Override
public DescribeDatasets withVersion(String value) {
setVersion(value);
return this;
}
@Override
public DescribeDatasets withLanguage(String value) {
setLanguage(value);
return this;
}
}