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

net.opengis.tjs.v_1_0.RequestBaseType 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
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;


/**
 * TJS operation request base, for all TJS operations except GetCapabilities. In this XML encoding, no "request" parameter is included, since the element name specifies the specific operation.
 * 
 * 

Java class for RequestBaseType complex type. * *

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

 * <complexType name="RequestBaseType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <attribute name="service" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="TJS" />
 *       <attribute name="version">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *             <enumeration value="1"/>
 *             <enumeration value="1.0"/>
 *             <enumeration value="1.0.0"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="language" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "RequestBaseType") @XmlSeeAlso({ JoinData.class, DescribeKey.class, GetData.class, DescribeData.class, DescribeDatasets.class, DescribeFrameworks.class }) public class RequestBaseType implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { /** * * */ @XmlAttribute(name = "service", required = true) @XmlSchemaType(name = "anySimpleType") public final static String SERVICE = "TJS"; @XmlAttribute(name = "version") protected String version; @XmlAttribute(name = "language") protected String language; /** * 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 language property. * * @return * possible object is * {@link String } * */ public String getLanguage() { return language; } /** * Sets the value of the language property. * * @param value * allowed object is * {@link String } * */ public void setLanguage(String value) { this.language = value; } public boolean isSetLanguage() { return (this.language!= 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 theSERVICE; theSERVICE = RequestBaseType.SERVICE; strategy.appendField(locator, this, "service", buffer, theSERVICE, true); } { String theVersion; theVersion = this.getVersion(); strategy.appendField(locator, this, "version", buffer, theVersion, this.isSetVersion()); } { String theLanguage; theLanguage = this.getLanguage(); strategy.appendField(locator, this, "language", buffer, theLanguage, this.isSetLanguage()); } 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 RequestBaseType that = ((RequestBaseType) object); { 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 lhsLanguage; lhsLanguage = this.getLanguage(); String rhsLanguage; rhsLanguage = that.getLanguage(); if (!strategy.equals(LocatorUtils.property(thisLocator, "language", lhsLanguage), LocatorUtils.property(thatLocator, "language", rhsLanguage), lhsLanguage, rhsLanguage, this.isSetLanguage(), that.isSetLanguage())) { 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 theVersion; theVersion = this.getVersion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion, this.isSetVersion()); } { String theLanguage; theLanguage = this.getLanguage(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "language", theLanguage), currentHashCode, theLanguage, this.isSetLanguage()); } 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 RequestBaseType) { final RequestBaseType copy = ((RequestBaseType) draftCopy); { 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 languageShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLanguage()); if (languageShouldBeCopiedAndSet == Boolean.TRUE) { String sourceLanguage; sourceLanguage = this.getLanguage(); String copyLanguage = ((String) strategy.copy(LocatorUtils.property(locator, "language", sourceLanguage), sourceLanguage, this.isSetLanguage())); copy.setLanguage(copyLanguage); } else { if (languageShouldBeCopiedAndSet == Boolean.FALSE) { copy.language = null; } } } } return draftCopy; } public Object createNewInstance() { return new RequestBaseType(); } 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 RequestBaseType) { final RequestBaseType target = this; final RequestBaseType leftObject = ((RequestBaseType) left); final RequestBaseType rightObject = ((RequestBaseType) right); { 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 languageShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLanguage(), rightObject.isSetLanguage()); if (languageShouldBeMergedAndSet == Boolean.TRUE) { String lhsLanguage; lhsLanguage = leftObject.getLanguage(); String rhsLanguage; rhsLanguage = rightObject.getLanguage(); String mergedLanguage = ((String) strategy.merge(LocatorUtils.property(leftLocator, "language", lhsLanguage), LocatorUtils.property(rightLocator, "language", rhsLanguage), lhsLanguage, rhsLanguage, leftObject.isSetLanguage(), rightObject.isSetLanguage())); target.setLanguage(mergedLanguage); } else { if (languageShouldBeMergedAndSet == Boolean.FALSE) { target.language = null; } } } } } public RequestBaseType withVersion(String value) { setVersion(value); return this; } public RequestBaseType withLanguage(String value) { setLanguage(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy