net.opengis.tjs.v_1_0.GetCapabilities Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.26 at 05:07:06 PM AST
//
package net.opengis.tjs.v_1_0;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import net.opengis.ows.v_1_1_0.AcceptFormatsType;
import net.opengis.ows.v_1_1_0.SectionsType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBMergeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.MergeFrom2;
import org.jvnet.jaxb2_commons.lang.MergeStrategy2;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="AcceptVersions" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Version" maxOccurs="unbounded">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="1.0"/>
* </restriction>
* </simpleType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="Sections" type="{http://www.opengis.net/ows/1.1}SectionsType" minOccurs="0"/>
* <element name="AcceptFormats" type="{http://www.opengis.net/ows/1.1}AcceptFormatsType" minOccurs="0"/>
* </sequence>
* <attribute name="service" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="TJS" />
* <attribute name="language" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* <attribute name="updateSequence" type="{http://www.opengis.net/ows/1.1}UpdateSequenceType" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"acceptVersions",
"sections",
"acceptFormats"
})
@XmlRootElement(name = "GetCapabilities")
public class GetCapabilities implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(name = "AcceptVersions")
protected GetCapabilities.AcceptVersions acceptVersions;
@XmlElement(name = "Sections")
protected SectionsType sections;
@XmlElement(name = "AcceptFormats")
protected AcceptFormatsType acceptFormats;
/**
*
*
*/
@XmlAttribute(name = "service", required = true)
@XmlSchemaType(name = "anySimpleType")
public final static String SERVICE = "TJS";
@XmlAttribute(name = "language")
@XmlSchemaType(name = "anySimpleType")
protected String language;
@XmlAttribute(name = "updateSequence")
protected String updateSequence;
/**
* Gets the value of the acceptVersions property.
*
* @return
* possible object is
* {@link GetCapabilities.AcceptVersions }
*
*/
public GetCapabilities.AcceptVersions getAcceptVersions() {
return acceptVersions;
}
/**
* Sets the value of the acceptVersions property.
*
* @param value
* allowed object is
* {@link GetCapabilities.AcceptVersions }
*
*/
public void setAcceptVersions(GetCapabilities.AcceptVersions value) {
this.acceptVersions = value;
}
public boolean isSetAcceptVersions() {
return (this.acceptVersions!= null);
}
/**
* Gets the value of the sections property.
*
* @return
* possible object is
* {@link SectionsType }
*
*/
public SectionsType getSections() {
return sections;
}
/**
* Sets the value of the sections property.
*
* @param value
* allowed object is
* {@link SectionsType }
*
*/
public void setSections(SectionsType value) {
this.sections = value;
}
public boolean isSetSections() {
return (this.sections!= null);
}
/**
* Gets the value of the acceptFormats property.
*
* @return
* possible object is
* {@link AcceptFormatsType }
*
*/
public AcceptFormatsType getAcceptFormats() {
return acceptFormats;
}
/**
* Sets the value of the acceptFormats property.
*
* @param value
* allowed object is
* {@link AcceptFormatsType }
*
*/
public void setAcceptFormats(AcceptFormatsType value) {
this.acceptFormats = value;
}
public boolean isSetAcceptFormats() {
return (this.acceptFormats!= 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);
}
/**
* Gets the value of the updateSequence property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUpdateSequence() {
return updateSequence;
}
/**
* Sets the value of the updateSequence property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUpdateSequence(String value) {
this.updateSequence = value;
}
public boolean isSetUpdateSequence() {
return (this.updateSequence!= 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) {
{
GetCapabilities.AcceptVersions theAcceptVersions;
theAcceptVersions = this.getAcceptVersions();
strategy.appendField(locator, this, "acceptVersions", buffer, theAcceptVersions, this.isSetAcceptVersions());
}
{
SectionsType theSections;
theSections = this.getSections();
strategy.appendField(locator, this, "sections", buffer, theSections, this.isSetSections());
}
{
AcceptFormatsType theAcceptFormats;
theAcceptFormats = this.getAcceptFormats();
strategy.appendField(locator, this, "acceptFormats", buffer, theAcceptFormats, this.isSetAcceptFormats());
}
{
String theSERVICE;
theSERVICE = GetCapabilities.SERVICE;
strategy.appendField(locator, this, "service", buffer, theSERVICE, true);
}
{
String theLanguage;
theLanguage = this.getLanguage();
strategy.appendField(locator, this, "language", buffer, theLanguage, this.isSetLanguage());
}
{
String theUpdateSequence;
theUpdateSequence = this.getUpdateSequence();
strategy.appendField(locator, this, "updateSequence", buffer, theUpdateSequence, this.isSetUpdateSequence());
}
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 GetCapabilities that = ((GetCapabilities) object);
{
GetCapabilities.AcceptVersions lhsAcceptVersions;
lhsAcceptVersions = this.getAcceptVersions();
GetCapabilities.AcceptVersions rhsAcceptVersions;
rhsAcceptVersions = that.getAcceptVersions();
if (!strategy.equals(LocatorUtils.property(thisLocator, "acceptVersions", lhsAcceptVersions), LocatorUtils.property(thatLocator, "acceptVersions", rhsAcceptVersions), lhsAcceptVersions, rhsAcceptVersions, this.isSetAcceptVersions(), that.isSetAcceptVersions())) {
return false;
}
}
{
SectionsType lhsSections;
lhsSections = this.getSections();
SectionsType rhsSections;
rhsSections = that.getSections();
if (!strategy.equals(LocatorUtils.property(thisLocator, "sections", lhsSections), LocatorUtils.property(thatLocator, "sections", rhsSections), lhsSections, rhsSections, this.isSetSections(), that.isSetSections())) {
return false;
}
}
{
AcceptFormatsType lhsAcceptFormats;
lhsAcceptFormats = this.getAcceptFormats();
AcceptFormatsType rhsAcceptFormats;
rhsAcceptFormats = that.getAcceptFormats();
if (!strategy.equals(LocatorUtils.property(thisLocator, "acceptFormats", lhsAcceptFormats), LocatorUtils.property(thatLocator, "acceptFormats", rhsAcceptFormats), lhsAcceptFormats, rhsAcceptFormats, this.isSetAcceptFormats(), that.isSetAcceptFormats())) {
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;
}
}
{
String lhsUpdateSequence;
lhsUpdateSequence = this.getUpdateSequence();
String rhsUpdateSequence;
rhsUpdateSequence = that.getUpdateSequence();
if (!strategy.equals(LocatorUtils.property(thisLocator, "updateSequence", lhsUpdateSequence), LocatorUtils.property(thatLocator, "updateSequence", rhsUpdateSequence), lhsUpdateSequence, rhsUpdateSequence, this.isSetUpdateSequence(), that.isSetUpdateSequence())) {
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;
{
GetCapabilities.AcceptVersions theAcceptVersions;
theAcceptVersions = this.getAcceptVersions();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptVersions", theAcceptVersions), currentHashCode, theAcceptVersions, this.isSetAcceptVersions());
}
{
SectionsType theSections;
theSections = this.getSections();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sections", theSections), currentHashCode, theSections, this.isSetSections());
}
{
AcceptFormatsType theAcceptFormats;
theAcceptFormats = this.getAcceptFormats();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptFormats", theAcceptFormats), currentHashCode, theAcceptFormats, this.isSetAcceptFormats());
}
{
String theLanguage;
theLanguage = this.getLanguage();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "language", theLanguage), currentHashCode, theLanguage, this.isSetLanguage());
}
{
String theUpdateSequence;
theUpdateSequence = this.getUpdateSequence();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "updateSequence", theUpdateSequence), currentHashCode, theUpdateSequence, this.isSetUpdateSequence());
}
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 GetCapabilities) {
final GetCapabilities copy = ((GetCapabilities) draftCopy);
{
Boolean acceptVersionsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAcceptVersions());
if (acceptVersionsShouldBeCopiedAndSet == Boolean.TRUE) {
GetCapabilities.AcceptVersions sourceAcceptVersions;
sourceAcceptVersions = this.getAcceptVersions();
GetCapabilities.AcceptVersions copyAcceptVersions = ((GetCapabilities.AcceptVersions) strategy.copy(LocatorUtils.property(locator, "acceptVersions", sourceAcceptVersions), sourceAcceptVersions, this.isSetAcceptVersions()));
copy.setAcceptVersions(copyAcceptVersions);
} else {
if (acceptVersionsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.acceptVersions = null;
}
}
}
{
Boolean sectionsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetSections());
if (sectionsShouldBeCopiedAndSet == Boolean.TRUE) {
SectionsType sourceSections;
sourceSections = this.getSections();
SectionsType copySections = ((SectionsType) strategy.copy(LocatorUtils.property(locator, "sections", sourceSections), sourceSections, this.isSetSections()));
copy.setSections(copySections);
} else {
if (sectionsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.sections = null;
}
}
}
{
Boolean acceptFormatsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetAcceptFormats());
if (acceptFormatsShouldBeCopiedAndSet == Boolean.TRUE) {
AcceptFormatsType sourceAcceptFormats;
sourceAcceptFormats = this.getAcceptFormats();
AcceptFormatsType copyAcceptFormats = ((AcceptFormatsType) strategy.copy(LocatorUtils.property(locator, "acceptFormats", sourceAcceptFormats), sourceAcceptFormats, this.isSetAcceptFormats()));
copy.setAcceptFormats(copyAcceptFormats);
} else {
if (acceptFormatsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.acceptFormats = 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;
}
}
}
{
Boolean updateSequenceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetUpdateSequence());
if (updateSequenceShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceUpdateSequence;
sourceUpdateSequence = this.getUpdateSequence();
String copyUpdateSequence = ((String) strategy.copy(LocatorUtils.property(locator, "updateSequence", sourceUpdateSequence), sourceUpdateSequence, this.isSetUpdateSequence()));
copy.setUpdateSequence(copyUpdateSequence);
} else {
if (updateSequenceShouldBeCopiedAndSet == Boolean.FALSE) {
copy.updateSequence = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new GetCapabilities();
}
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 GetCapabilities) {
final GetCapabilities target = this;
final GetCapabilities leftObject = ((GetCapabilities) left);
final GetCapabilities rightObject = ((GetCapabilities) right);
{
Boolean acceptVersionsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAcceptVersions(), rightObject.isSetAcceptVersions());
if (acceptVersionsShouldBeMergedAndSet == Boolean.TRUE) {
GetCapabilities.AcceptVersions lhsAcceptVersions;
lhsAcceptVersions = leftObject.getAcceptVersions();
GetCapabilities.AcceptVersions rhsAcceptVersions;
rhsAcceptVersions = rightObject.getAcceptVersions();
GetCapabilities.AcceptVersions mergedAcceptVersions = ((GetCapabilities.AcceptVersions) strategy.merge(LocatorUtils.property(leftLocator, "acceptVersions", lhsAcceptVersions), LocatorUtils.property(rightLocator, "acceptVersions", rhsAcceptVersions), lhsAcceptVersions, rhsAcceptVersions, leftObject.isSetAcceptVersions(), rightObject.isSetAcceptVersions()));
target.setAcceptVersions(mergedAcceptVersions);
} else {
if (acceptVersionsShouldBeMergedAndSet == Boolean.FALSE) {
target.acceptVersions = null;
}
}
}
{
Boolean sectionsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetSections(), rightObject.isSetSections());
if (sectionsShouldBeMergedAndSet == Boolean.TRUE) {
SectionsType lhsSections;
lhsSections = leftObject.getSections();
SectionsType rhsSections;
rhsSections = rightObject.getSections();
SectionsType mergedSections = ((SectionsType) strategy.merge(LocatorUtils.property(leftLocator, "sections", lhsSections), LocatorUtils.property(rightLocator, "sections", rhsSections), lhsSections, rhsSections, leftObject.isSetSections(), rightObject.isSetSections()));
target.setSections(mergedSections);
} else {
if (sectionsShouldBeMergedAndSet == Boolean.FALSE) {
target.sections = null;
}
}
}
{
Boolean acceptFormatsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetAcceptFormats(), rightObject.isSetAcceptFormats());
if (acceptFormatsShouldBeMergedAndSet == Boolean.TRUE) {
AcceptFormatsType lhsAcceptFormats;
lhsAcceptFormats = leftObject.getAcceptFormats();
AcceptFormatsType rhsAcceptFormats;
rhsAcceptFormats = rightObject.getAcceptFormats();
AcceptFormatsType mergedAcceptFormats = ((AcceptFormatsType) strategy.merge(LocatorUtils.property(leftLocator, "acceptFormats", lhsAcceptFormats), LocatorUtils.property(rightLocator, "acceptFormats", rhsAcceptFormats), lhsAcceptFormats, rhsAcceptFormats, leftObject.isSetAcceptFormats(), rightObject.isSetAcceptFormats()));
target.setAcceptFormats(mergedAcceptFormats);
} else {
if (acceptFormatsShouldBeMergedAndSet == Boolean.FALSE) {
target.acceptFormats = 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;
}
}
}
{
Boolean updateSequenceShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetUpdateSequence(), rightObject.isSetUpdateSequence());
if (updateSequenceShouldBeMergedAndSet == Boolean.TRUE) {
String lhsUpdateSequence;
lhsUpdateSequence = leftObject.getUpdateSequence();
String rhsUpdateSequence;
rhsUpdateSequence = rightObject.getUpdateSequence();
String mergedUpdateSequence = ((String) strategy.merge(LocatorUtils.property(leftLocator, "updateSequence", lhsUpdateSequence), LocatorUtils.property(rightLocator, "updateSequence", rhsUpdateSequence), lhsUpdateSequence, rhsUpdateSequence, leftObject.isSetUpdateSequence(), rightObject.isSetUpdateSequence()));
target.setUpdateSequence(mergedUpdateSequence);
} else {
if (updateSequenceShouldBeMergedAndSet == Boolean.FALSE) {
target.updateSequence = null;
}
}
}
}
}
public GetCapabilities withAcceptVersions(GetCapabilities.AcceptVersions value) {
setAcceptVersions(value);
return this;
}
public GetCapabilities withSections(SectionsType value) {
setSections(value);
return this;
}
public GetCapabilities withAcceptFormats(AcceptFormatsType value) {
setAcceptFormats(value);
return this;
}
public GetCapabilities withLanguage(String value) {
setLanguage(value);
return this;
}
public GetCapabilities withUpdateSequence(String value) {
setUpdateSequence(value);
return this;
}
/**
* When omitted, server shall return latest supported version.
*
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Version" maxOccurs="unbounded">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="1.0"/>
* </restriction>
* </simpleType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"version"
})
public static class AcceptVersions implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2
{
@XmlElement(name = "Version", required = true)
protected List version;
/**
* Gets the value of the version 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 version property.
*
*
* For example, to add a new item, do as follows:
*
* getVersion().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getVersion() {
if (version == null) {
version = new ArrayList();
}
return this.version;
}
public boolean isSetVersion() {
return ((this.version!= null)&&(!this.version.isEmpty()));
}
public void unsetVersion() {
this.version = 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) {
{
List theVersion;
theVersion = (this.isSetVersion()?this.getVersion():null);
strategy.appendField(locator, this, "version", buffer, theVersion, this.isSetVersion());
}
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 GetCapabilities.AcceptVersions that = ((GetCapabilities.AcceptVersions) object);
{
List lhsVersion;
lhsVersion = (this.isSetVersion()?this.getVersion():null);
List rhsVersion;
rhsVersion = (that.isSetVersion()?that.getVersion():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion, this.isSetVersion(), that.isSetVersion())) {
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;
{
List theVersion;
theVersion = (this.isSetVersion()?this.getVersion():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion, this.isSetVersion());
}
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 GetCapabilities.AcceptVersions) {
final GetCapabilities.AcceptVersions copy = ((GetCapabilities.AcceptVersions) draftCopy);
{
Boolean versionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetVersion());
if (versionShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceVersion;
sourceVersion = (this.isSetVersion()?this.getVersion():null);
@SuppressWarnings("unchecked")
List copyVersion = ((List ) strategy.copy(LocatorUtils.property(locator, "version", sourceVersion), sourceVersion, this.isSetVersion()));
copy.unsetVersion();
if (copyVersion!= null) {
List uniqueVersionl = copy.getVersion();
uniqueVersionl.addAll(copyVersion);
}
} else {
if (versionShouldBeCopiedAndSet == Boolean.FALSE) {
copy.unsetVersion();
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new GetCapabilities.AcceptVersions();
}
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 GetCapabilities.AcceptVersions) {
final GetCapabilities.AcceptVersions target = this;
final GetCapabilities.AcceptVersions leftObject = ((GetCapabilities.AcceptVersions) left);
final GetCapabilities.AcceptVersions rightObject = ((GetCapabilities.AcceptVersions) right);
{
Boolean versionShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetVersion(), rightObject.isSetVersion());
if (versionShouldBeMergedAndSet == Boolean.TRUE) {
List lhsVersion;
lhsVersion = (leftObject.isSetVersion()?leftObject.getVersion():null);
List rhsVersion;
rhsVersion = (rightObject.isSetVersion()?rightObject.getVersion():null);
List mergedVersion = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "version", lhsVersion), LocatorUtils.property(rightLocator, "version", rhsVersion), lhsVersion, rhsVersion, leftObject.isSetVersion(), rightObject.isSetVersion()));
target.unsetVersion();
if (mergedVersion!= null) {
List uniqueVersionl = target.getVersion();
uniqueVersionl.addAll(mergedVersion);
}
} else {
if (versionShouldBeMergedAndSet == Boolean.FALSE) {
target.unsetVersion();
}
}
}
}
}
public void setVersion(List value) {
this.version = null;
if (value!= null) {
List draftl = this.getVersion();
draftl.addAll(value);
}
}
public GetCapabilities.AcceptVersions withVersion(String... values) {
if (values!= null) {
for (String value: values) {
getVersion().add(value);
}
}
return this;
}
public GetCapabilities.AcceptVersions withVersion(Collection values) {
if (values!= null) {
getVersion().addAll(values);
}
return this;
}
public GetCapabilities.AcceptVersions withVersion(List value) {
setVersion(value);
return this;
}
}
}