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

WMS_1_1_0.WMTMSCapabilities Maven / Gradle / Ivy

There is a newer version: 2.6.1
Show 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: 2015.10.31 at 02:43:57 PM CET 
//


package WMS_1_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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb2_commons.lang.CopyStrategy;
import org.jvnet.jaxb2_commons.lang.CopyTo;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.MergeFrom;
import org.jvnet.jaxb2_commons.lang.MergeStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "service",
    "capability"
})
@XmlRootElement(name = "WMT_MS_Capabilities")
public class WMTMSCapabilities
    implements Cloneable, CopyTo, Equals, HashCode, MergeFrom, ToString
{

    @XmlAttribute(name = "version")
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String version;
    @XmlAttribute(name = "updateSequence")
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String updateSequence;
    @XmlElement(name = "Service", required = true)
    protected Service service;
    @XmlElement(name = "Capability", required = true)
    protected Capability capability;

    /**
     * Gets the value of the version property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getVersion() {
        if (version == null) {
            return "1.1.0";
        } else {
            return version;
        }
    }

    /**
     * Sets the value of the version property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setVersion(String value) {
        this.version = value;
    }

    /**
     * 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;
    }

    /**
     * Gets the value of the service property.
     * 
     * @return
     *     possible object is
     *     {@link Service }
     *     
     */
    public Service getService() {
        return service;
    }

    /**
     * Sets the value of the service property.
     * 
     * @param value
     *     allowed object is
     *     {@link Service }
     *     
     */
    public void setService(Service value) {
        this.service = value;
    }

    /**
     * Gets the value of the capability property.
     * 
     * @return
     *     possible object is
     *     {@link Capability }
     *     
     */
    public Capability getCapability() {
        return capability;
    }

    /**
     * Sets the value of the capability property.
     * 
     * @param value
     *     allowed object is
     *     {@link Capability }
     *     
     */
    public void setCapability(Capability value) {
        this.capability = value;
    }

    public String toString() {
        final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
        final StringBuilder buffer = new StringBuilder();
        append(null, buffer, strategy);
        return buffer.toString();
    }

    public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
        strategy.appendStart(locator, this, buffer);
        appendFields(locator, buffer, strategy);
        strategy.appendEnd(locator, this, buffer);
        return buffer;
    }

    public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
        {
            String theVersion;
            theVersion = this.getVersion();
            strategy.appendField(locator, this, "version", buffer, theVersion);
        }
        {
            String theUpdateSequence;
            theUpdateSequence = this.getUpdateSequence();
            strategy.appendField(locator, this, "updateSequence", buffer, theUpdateSequence);
        }
        {
            Service theService;
            theService = this.getService();
            strategy.appendField(locator, this, "service", buffer, theService);
        }
        {
            Capability theCapability;
            theCapability = this.getCapability();
            strategy.appendField(locator, this, "capability", buffer, theCapability);
        }
        return buffer;
    }

    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
        if (!(object instanceof WMTMSCapabilities)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final WMTMSCapabilities that = ((WMTMSCapabilities) 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)) {
                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)) {
                return false;
            }
        }
        {
            Service lhsService;
            lhsService = this.getService();
            Service rhsService;
            rhsService = that.getService();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "service", lhsService), LocatorUtils.property(thatLocator, "service", rhsService), lhsService, rhsService)) {
                return false;
            }
        }
        {
            Capability lhsCapability;
            lhsCapability = this.getCapability();
            Capability rhsCapability;
            rhsCapability = that.getCapability();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "capability", lhsCapability), LocatorUtils.property(thatLocator, "capability", rhsCapability), lhsCapability, rhsCapability)) {
                return false;
            }
        }
        return true;
    }

    public boolean equals(Object object) {
        final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
        return equals(null, null, object, strategy);
    }

    public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            String theVersion;
            theVersion = this.getVersion();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion);
        }
        {
            String theUpdateSequence;
            theUpdateSequence = this.getUpdateSequence();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "updateSequence", theUpdateSequence), currentHashCode, theUpdateSequence);
        }
        {
            Service theService;
            theService = this.getService();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "service", theService), currentHashCode, theService);
        }
        {
            Capability theCapability;
            theCapability = this.getCapability();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "capability", theCapability), currentHashCode, theCapability);
        }
        return currentHashCode;
    }

    public int hashCode() {
        final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
        return this.hashCode(null, strategy);
    }

    public Object clone() {
        return copyTo(createNewInstance());
    }

    public Object copyTo(Object target) {
        final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE;
        return copyTo(null, target, strategy);
    }

    public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
        final Object draftCopy = ((target == null)?createNewInstance():target);
        if (draftCopy instanceof WMTMSCapabilities) {
            final WMTMSCapabilities copy = ((WMTMSCapabilities) draftCopy);
            if (this.version!= null) {
                String sourceVersion;
                sourceVersion = this.getVersion();
                String copyVersion = ((String) strategy.copy(LocatorUtils.property(locator, "version", sourceVersion), sourceVersion));
                copy.setVersion(copyVersion);
            } else {
                copy.version = null;
            }
            if (this.updateSequence!= null) {
                String sourceUpdateSequence;
                sourceUpdateSequence = this.getUpdateSequence();
                String copyUpdateSequence = ((String) strategy.copy(LocatorUtils.property(locator, "updateSequence", sourceUpdateSequence), sourceUpdateSequence));
                copy.setUpdateSequence(copyUpdateSequence);
            } else {
                copy.updateSequence = null;
            }
            if (this.service!= null) {
                Service sourceService;
                sourceService = this.getService();
                Service copyService = ((Service) strategy.copy(LocatorUtils.property(locator, "service", sourceService), sourceService));
                copy.setService(copyService);
            } else {
                copy.service = null;
            }
            if (this.capability!= null) {
                Capability sourceCapability;
                sourceCapability = this.getCapability();
                Capability copyCapability = ((Capability) strategy.copy(LocatorUtils.property(locator, "capability", sourceCapability), sourceCapability));
                copy.setCapability(copyCapability);
            } else {
                copy.capability = null;
            }
        }
        return draftCopy;
    }

    public Object createNewInstance() {
        return new WMTMSCapabilities();
    }

    public void mergeFrom(Object left, Object right) {
        final MergeStrategy strategy = JAXBMergeStrategy.INSTANCE;
        mergeFrom(null, null, left, right, strategy);
    }

    public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) {
        if (right instanceof WMTMSCapabilities) {
            final WMTMSCapabilities target = this;
            final WMTMSCapabilities leftObject = ((WMTMSCapabilities) left);
            final WMTMSCapabilities rightObject = ((WMTMSCapabilities) right);
            {
                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));
                target.setVersion(mergedVersion);
            }
            {
                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));
                target.setUpdateSequence(mergedUpdateSequence);
            }
            {
                Service lhsService;
                lhsService = leftObject.getService();
                Service rhsService;
                rhsService = rightObject.getService();
                Service mergedService = ((Service) strategy.merge(LocatorUtils.property(leftLocator, "service", lhsService), LocatorUtils.property(rightLocator, "service", rhsService), lhsService, rhsService));
                target.setService(mergedService);
            }
            {
                Capability lhsCapability;
                lhsCapability = leftObject.getCapability();
                Capability rhsCapability;
                rhsCapability = rightObject.getCapability();
                Capability mergedCapability = ((Capability) strategy.merge(LocatorUtils.property(leftLocator, "capability", lhsCapability), LocatorUtils.property(rightLocator, "capability", rhsCapability), lhsCapability, rhsCapability));
                target.setCapability(mergedCapability);
            }
        }
    }

    public WMTMSCapabilities withVersion(String value) {
        setVersion(value);
        return this;
    }

    public WMTMSCapabilities withUpdateSequence(String value) {
        setUpdateSequence(value);
        return this;
    }

    public WMTMSCapabilities withService(Service value) {
        setService(value);
        return this;
    }

    public WMTMSCapabilities withCapability(Capability value) {
        setCapability(value);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy