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

net.opengis.tjs.v_1_0.DescribeKey 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"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "frameworkURI" }) @XmlRootElement(name = "DescribeKey") public class DescribeKey extends RequestBaseType implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(name = "FrameworkURI", required = true) protected String frameworkURI; /** * URI of 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); } 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()); } 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 DescribeKey that = ((DescribeKey) 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; } } 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()); } 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 DescribeKey) { final DescribeKey copy = ((DescribeKey) 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; } } } } return draftCopy; } public Object createNewInstance() { return new DescribeKey(); } 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 DescribeKey) { final DescribeKey target = this; final DescribeKey leftObject = ((DescribeKey) left); final DescribeKey rightObject = ((DescribeKey) 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; } } } } } public DescribeKey withFrameworkURI(String value) { setFrameworkURI(value); return this; } @Override public DescribeKey withVersion(String value) { setVersion(value); return this; } @Override public DescribeKey withLanguage(String value) { setLanguage(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy