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

WMS_1_1_0.Capability 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
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 = {
    "request",
    "exception",
    "vendorSpecificCapabilities",
    "userDefinedSymbolization",
    "layer"
})
@XmlRootElement(name = "Capability")
public class Capability
    implements Cloneable, CopyTo, Equals, HashCode, MergeFrom, ToString
{

    @XmlElement(name = "Request", required = true)
    protected Request request;
    @XmlElement(name = "Exception", required = true)
    protected Exception exception;
    @XmlElement(name = "VendorSpecificCapabilities")
    protected VendorSpecificCapabilities vendorSpecificCapabilities;
    @XmlElement(name = "UserDefinedSymbolization")
    protected UserDefinedSymbolization userDefinedSymbolization;
    @XmlElement(name = "Layer")
    protected Layer layer;

    /**
     * Gets the value of the request property.
     * 
     * @return
     *     possible object is
     *     {@link Request }
     *     
     */
    public Request getRequest() {
        return request;
    }

    /**
     * Sets the value of the request property.
     * 
     * @param value
     *     allowed object is
     *     {@link Request }
     *     
     */
    public void setRequest(Request value) {
        this.request = value;
    }

    /**
     * Gets the value of the exception property.
     * 
     * @return
     *     possible object is
     *     {@link Exception }
     *     
     */
    public Exception getException() {
        return exception;
    }

    /**
     * Sets the value of the exception property.
     * 
     * @param value
     *     allowed object is
     *     {@link Exception }
     *     
     */
    public void setException(Exception value) {
        this.exception = value;
    }

    /**
     * Gets the value of the vendorSpecificCapabilities property.
     * 
     * @return
     *     possible object is
     *     {@link VendorSpecificCapabilities }
     *     
     */
    public VendorSpecificCapabilities getVendorSpecificCapabilities() {
        return vendorSpecificCapabilities;
    }

    /**
     * Sets the value of the vendorSpecificCapabilities property.
     * 
     * @param value
     *     allowed object is
     *     {@link VendorSpecificCapabilities }
     *     
     */
    public void setVendorSpecificCapabilities(VendorSpecificCapabilities value) {
        this.vendorSpecificCapabilities = value;
    }

    /**
     * Gets the value of the userDefinedSymbolization property.
     * 
     * @return
     *     possible object is
     *     {@link UserDefinedSymbolization }
     *     
     */
    public UserDefinedSymbolization getUserDefinedSymbolization() {
        return userDefinedSymbolization;
    }

    /**
     * Sets the value of the userDefinedSymbolization property.
     * 
     * @param value
     *     allowed object is
     *     {@link UserDefinedSymbolization }
     *     
     */
    public void setUserDefinedSymbolization(UserDefinedSymbolization value) {
        this.userDefinedSymbolization = value;
    }

    /**
     * Gets the value of the layer property.
     * 
     * @return
     *     possible object is
     *     {@link Layer }
     *     
     */
    public Layer getLayer() {
        return layer;
    }

    /**
     * Sets the value of the layer property.
     * 
     * @param value
     *     allowed object is
     *     {@link Layer }
     *     
     */
    public void setLayer(Layer value) {
        this.layer = 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) {
        {
            Request theRequest;
            theRequest = this.getRequest();
            strategy.appendField(locator, this, "request", buffer, theRequest);
        }
        {
            Exception theException;
            theException = this.getException();
            strategy.appendField(locator, this, "exception", buffer, theException);
        }
        {
            VendorSpecificCapabilities theVendorSpecificCapabilities;
            theVendorSpecificCapabilities = this.getVendorSpecificCapabilities();
            strategy.appendField(locator, this, "vendorSpecificCapabilities", buffer, theVendorSpecificCapabilities);
        }
        {
            UserDefinedSymbolization theUserDefinedSymbolization;
            theUserDefinedSymbolization = this.getUserDefinedSymbolization();
            strategy.appendField(locator, this, "userDefinedSymbolization", buffer, theUserDefinedSymbolization);
        }
        {
            Layer theLayer;
            theLayer = this.getLayer();
            strategy.appendField(locator, this, "layer", buffer, theLayer);
        }
        return buffer;
    }

    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
        if (!(object instanceof Capability)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final Capability that = ((Capability) object);
        {
            Request lhsRequest;
            lhsRequest = this.getRequest();
            Request rhsRequest;
            rhsRequest = that.getRequest();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "request", lhsRequest), LocatorUtils.property(thatLocator, "request", rhsRequest), lhsRequest, rhsRequest)) {
                return false;
            }
        }
        {
            Exception lhsException;
            lhsException = this.getException();
            Exception rhsException;
            rhsException = that.getException();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "exception", lhsException), LocatorUtils.property(thatLocator, "exception", rhsException), lhsException, rhsException)) {
                return false;
            }
        }
        {
            VendorSpecificCapabilities lhsVendorSpecificCapabilities;
            lhsVendorSpecificCapabilities = this.getVendorSpecificCapabilities();
            VendorSpecificCapabilities rhsVendorSpecificCapabilities;
            rhsVendorSpecificCapabilities = that.getVendorSpecificCapabilities();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "vendorSpecificCapabilities", lhsVendorSpecificCapabilities), LocatorUtils.property(thatLocator, "vendorSpecificCapabilities", rhsVendorSpecificCapabilities), lhsVendorSpecificCapabilities, rhsVendorSpecificCapabilities)) {
                return false;
            }
        }
        {
            UserDefinedSymbolization lhsUserDefinedSymbolization;
            lhsUserDefinedSymbolization = this.getUserDefinedSymbolization();
            UserDefinedSymbolization rhsUserDefinedSymbolization;
            rhsUserDefinedSymbolization = that.getUserDefinedSymbolization();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "userDefinedSymbolization", lhsUserDefinedSymbolization), LocatorUtils.property(thatLocator, "userDefinedSymbolization", rhsUserDefinedSymbolization), lhsUserDefinedSymbolization, rhsUserDefinedSymbolization)) {
                return false;
            }
        }
        {
            Layer lhsLayer;
            lhsLayer = this.getLayer();
            Layer rhsLayer;
            rhsLayer = that.getLayer();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "layer", lhsLayer), LocatorUtils.property(thatLocator, "layer", rhsLayer), lhsLayer, rhsLayer)) {
                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;
        {
            Request theRequest;
            theRequest = this.getRequest();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "request", theRequest), currentHashCode, theRequest);
        }
        {
            Exception theException;
            theException = this.getException();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "exception", theException), currentHashCode, theException);
        }
        {
            VendorSpecificCapabilities theVendorSpecificCapabilities;
            theVendorSpecificCapabilities = this.getVendorSpecificCapabilities();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "vendorSpecificCapabilities", theVendorSpecificCapabilities), currentHashCode, theVendorSpecificCapabilities);
        }
        {
            UserDefinedSymbolization theUserDefinedSymbolization;
            theUserDefinedSymbolization = this.getUserDefinedSymbolization();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "userDefinedSymbolization", theUserDefinedSymbolization), currentHashCode, theUserDefinedSymbolization);
        }
        {
            Layer theLayer;
            theLayer = this.getLayer();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "layer", theLayer), currentHashCode, theLayer);
        }
        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 Capability) {
            final Capability copy = ((Capability) draftCopy);
            if (this.request!= null) {
                Request sourceRequest;
                sourceRequest = this.getRequest();
                Request copyRequest = ((Request) strategy.copy(LocatorUtils.property(locator, "request", sourceRequest), sourceRequest));
                copy.setRequest(copyRequest);
            } else {
                copy.request = null;
            }
            if (this.exception!= null) {
                Exception sourceException;
                sourceException = this.getException();
                Exception copyException = ((Exception) strategy.copy(LocatorUtils.property(locator, "exception", sourceException), sourceException));
                copy.setException(copyException);
            } else {
                copy.exception = null;
            }
            if (this.vendorSpecificCapabilities!= null) {
                VendorSpecificCapabilities sourceVendorSpecificCapabilities;
                sourceVendorSpecificCapabilities = this.getVendorSpecificCapabilities();
                VendorSpecificCapabilities copyVendorSpecificCapabilities = ((VendorSpecificCapabilities) strategy.copy(LocatorUtils.property(locator, "vendorSpecificCapabilities", sourceVendorSpecificCapabilities), sourceVendorSpecificCapabilities));
                copy.setVendorSpecificCapabilities(copyVendorSpecificCapabilities);
            } else {
                copy.vendorSpecificCapabilities = null;
            }
            if (this.userDefinedSymbolization!= null) {
                UserDefinedSymbolization sourceUserDefinedSymbolization;
                sourceUserDefinedSymbolization = this.getUserDefinedSymbolization();
                UserDefinedSymbolization copyUserDefinedSymbolization = ((UserDefinedSymbolization) strategy.copy(LocatorUtils.property(locator, "userDefinedSymbolization", sourceUserDefinedSymbolization), sourceUserDefinedSymbolization));
                copy.setUserDefinedSymbolization(copyUserDefinedSymbolization);
            } else {
                copy.userDefinedSymbolization = null;
            }
            if (this.layer!= null) {
                Layer sourceLayer;
                sourceLayer = this.getLayer();
                Layer copyLayer = ((Layer) strategy.copy(LocatorUtils.property(locator, "layer", sourceLayer), sourceLayer));
                copy.setLayer(copyLayer);
            } else {
                copy.layer = null;
            }
        }
        return draftCopy;
    }

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

    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 Capability) {
            final Capability target = this;
            final Capability leftObject = ((Capability) left);
            final Capability rightObject = ((Capability) right);
            {
                Request lhsRequest;
                lhsRequest = leftObject.getRequest();
                Request rhsRequest;
                rhsRequest = rightObject.getRequest();
                Request mergedRequest = ((Request) strategy.merge(LocatorUtils.property(leftLocator, "request", lhsRequest), LocatorUtils.property(rightLocator, "request", rhsRequest), lhsRequest, rhsRequest));
                target.setRequest(mergedRequest);
            }
            {
                Exception lhsException;
                lhsException = leftObject.getException();
                Exception rhsException;
                rhsException = rightObject.getException();
                Exception mergedException = ((Exception) strategy.merge(LocatorUtils.property(leftLocator, "exception", lhsException), LocatorUtils.property(rightLocator, "exception", rhsException), lhsException, rhsException));
                target.setException(mergedException);
            }
            {
                VendorSpecificCapabilities lhsVendorSpecificCapabilities;
                lhsVendorSpecificCapabilities = leftObject.getVendorSpecificCapabilities();
                VendorSpecificCapabilities rhsVendorSpecificCapabilities;
                rhsVendorSpecificCapabilities = rightObject.getVendorSpecificCapabilities();
                VendorSpecificCapabilities mergedVendorSpecificCapabilities = ((VendorSpecificCapabilities) strategy.merge(LocatorUtils.property(leftLocator, "vendorSpecificCapabilities", lhsVendorSpecificCapabilities), LocatorUtils.property(rightLocator, "vendorSpecificCapabilities", rhsVendorSpecificCapabilities), lhsVendorSpecificCapabilities, rhsVendorSpecificCapabilities));
                target.setVendorSpecificCapabilities(mergedVendorSpecificCapabilities);
            }
            {
                UserDefinedSymbolization lhsUserDefinedSymbolization;
                lhsUserDefinedSymbolization = leftObject.getUserDefinedSymbolization();
                UserDefinedSymbolization rhsUserDefinedSymbolization;
                rhsUserDefinedSymbolization = rightObject.getUserDefinedSymbolization();
                UserDefinedSymbolization mergedUserDefinedSymbolization = ((UserDefinedSymbolization) strategy.merge(LocatorUtils.property(leftLocator, "userDefinedSymbolization", lhsUserDefinedSymbolization), LocatorUtils.property(rightLocator, "userDefinedSymbolization", rhsUserDefinedSymbolization), lhsUserDefinedSymbolization, rhsUserDefinedSymbolization));
                target.setUserDefinedSymbolization(mergedUserDefinedSymbolization);
            }
            {
                Layer lhsLayer;
                lhsLayer = leftObject.getLayer();
                Layer rhsLayer;
                rhsLayer = rightObject.getLayer();
                Layer mergedLayer = ((Layer) strategy.merge(LocatorUtils.property(leftLocator, "layer", lhsLayer), LocatorUtils.property(rightLocator, "layer", rhsLayer), lhsLayer, rhsLayer));
                target.setLayer(mergedLayer);
            }
        }
    }

    public Capability withRequest(Request value) {
        setRequest(value);
        return this;
    }

    public Capability withException(Exception value) {
        setException(value);
        return this;
    }

    public Capability withVendorSpecificCapabilities(VendorSpecificCapabilities value) {
        setVendorSpecificCapabilities(value);
        return this;
    }

    public Capability withUserDefinedSymbolization(UserDefinedSymbolization value) {
        setUserDefinedSymbolization(value);
        return this;
    }

    public Capability withLayer(Layer value) {
        setLayer(value);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy