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

WMS_1_1_0.UserDefinedSymbolization 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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
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 = "")
@XmlRootElement(name = "UserDefinedSymbolization")
public class UserDefinedSymbolization
    implements Cloneable, CopyTo, Equals, HashCode, MergeFrom, ToString
{

    @XmlAttribute(name = "SupportSLD")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String supportSLD;
    @XmlAttribute(name = "UserLayer")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String userLayer;
    @XmlAttribute(name = "UserStyle")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String userStyle;
    @XmlAttribute(name = "RemoteWFS")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String remoteWFS;

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

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

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

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

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

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

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

    /**
     * Sets the value of the remoteWFS property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setRemoteWFS(String value) {
        this.remoteWFS = 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 theSupportSLD;
            theSupportSLD = this.getSupportSLD();
            strategy.appendField(locator, this, "supportSLD", buffer, theSupportSLD);
        }
        {
            String theUserLayer;
            theUserLayer = this.getUserLayer();
            strategy.appendField(locator, this, "userLayer", buffer, theUserLayer);
        }
        {
            String theUserStyle;
            theUserStyle = this.getUserStyle();
            strategy.appendField(locator, this, "userStyle", buffer, theUserStyle);
        }
        {
            String theRemoteWFS;
            theRemoteWFS = this.getRemoteWFS();
            strategy.appendField(locator, this, "remoteWFS", buffer, theRemoteWFS);
        }
        return buffer;
    }

    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
        if (!(object instanceof UserDefinedSymbolization)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final UserDefinedSymbolization that = ((UserDefinedSymbolization) object);
        {
            String lhsSupportSLD;
            lhsSupportSLD = this.getSupportSLD();
            String rhsSupportSLD;
            rhsSupportSLD = that.getSupportSLD();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "supportSLD", lhsSupportSLD), LocatorUtils.property(thatLocator, "supportSLD", rhsSupportSLD), lhsSupportSLD, rhsSupportSLD)) {
                return false;
            }
        }
        {
            String lhsUserLayer;
            lhsUserLayer = this.getUserLayer();
            String rhsUserLayer;
            rhsUserLayer = that.getUserLayer();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "userLayer", lhsUserLayer), LocatorUtils.property(thatLocator, "userLayer", rhsUserLayer), lhsUserLayer, rhsUserLayer)) {
                return false;
            }
        }
        {
            String lhsUserStyle;
            lhsUserStyle = this.getUserStyle();
            String rhsUserStyle;
            rhsUserStyle = that.getUserStyle();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "userStyle", lhsUserStyle), LocatorUtils.property(thatLocator, "userStyle", rhsUserStyle), lhsUserStyle, rhsUserStyle)) {
                return false;
            }
        }
        {
            String lhsRemoteWFS;
            lhsRemoteWFS = this.getRemoteWFS();
            String rhsRemoteWFS;
            rhsRemoteWFS = that.getRemoteWFS();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "remoteWFS", lhsRemoteWFS), LocatorUtils.property(thatLocator, "remoteWFS", rhsRemoteWFS), lhsRemoteWFS, rhsRemoteWFS)) {
                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 theSupportSLD;
            theSupportSLD = this.getSupportSLD();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supportSLD", theSupportSLD), currentHashCode, theSupportSLD);
        }
        {
            String theUserLayer;
            theUserLayer = this.getUserLayer();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "userLayer", theUserLayer), currentHashCode, theUserLayer);
        }
        {
            String theUserStyle;
            theUserStyle = this.getUserStyle();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "userStyle", theUserStyle), currentHashCode, theUserStyle);
        }
        {
            String theRemoteWFS;
            theRemoteWFS = this.getRemoteWFS();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "remoteWFS", theRemoteWFS), currentHashCode, theRemoteWFS);
        }
        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 UserDefinedSymbolization) {
            final UserDefinedSymbolization copy = ((UserDefinedSymbolization) draftCopy);
            if (this.supportSLD!= null) {
                String sourceSupportSLD;
                sourceSupportSLD = this.getSupportSLD();
                String copySupportSLD = ((String) strategy.copy(LocatorUtils.property(locator, "supportSLD", sourceSupportSLD), sourceSupportSLD));
                copy.setSupportSLD(copySupportSLD);
            } else {
                copy.supportSLD = null;
            }
            if (this.userLayer!= null) {
                String sourceUserLayer;
                sourceUserLayer = this.getUserLayer();
                String copyUserLayer = ((String) strategy.copy(LocatorUtils.property(locator, "userLayer", sourceUserLayer), sourceUserLayer));
                copy.setUserLayer(copyUserLayer);
            } else {
                copy.userLayer = null;
            }
            if (this.userStyle!= null) {
                String sourceUserStyle;
                sourceUserStyle = this.getUserStyle();
                String copyUserStyle = ((String) strategy.copy(LocatorUtils.property(locator, "userStyle", sourceUserStyle), sourceUserStyle));
                copy.setUserStyle(copyUserStyle);
            } else {
                copy.userStyle = null;
            }
            if (this.remoteWFS!= null) {
                String sourceRemoteWFS;
                sourceRemoteWFS = this.getRemoteWFS();
                String copyRemoteWFS = ((String) strategy.copy(LocatorUtils.property(locator, "remoteWFS", sourceRemoteWFS), sourceRemoteWFS));
                copy.setRemoteWFS(copyRemoteWFS);
            } else {
                copy.remoteWFS = null;
            }
        }
        return draftCopy;
    }

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

    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 UserDefinedSymbolization) {
            final UserDefinedSymbolization target = this;
            final UserDefinedSymbolization leftObject = ((UserDefinedSymbolization) left);
            final UserDefinedSymbolization rightObject = ((UserDefinedSymbolization) right);
            {
                String lhsSupportSLD;
                lhsSupportSLD = leftObject.getSupportSLD();
                String rhsSupportSLD;
                rhsSupportSLD = rightObject.getSupportSLD();
                String mergedSupportSLD = ((String) strategy.merge(LocatorUtils.property(leftLocator, "supportSLD", lhsSupportSLD), LocatorUtils.property(rightLocator, "supportSLD", rhsSupportSLD), lhsSupportSLD, rhsSupportSLD));
                target.setSupportSLD(mergedSupportSLD);
            }
            {
                String lhsUserLayer;
                lhsUserLayer = leftObject.getUserLayer();
                String rhsUserLayer;
                rhsUserLayer = rightObject.getUserLayer();
                String mergedUserLayer = ((String) strategy.merge(LocatorUtils.property(leftLocator, "userLayer", lhsUserLayer), LocatorUtils.property(rightLocator, "userLayer", rhsUserLayer), lhsUserLayer, rhsUserLayer));
                target.setUserLayer(mergedUserLayer);
            }
            {
                String lhsUserStyle;
                lhsUserStyle = leftObject.getUserStyle();
                String rhsUserStyle;
                rhsUserStyle = rightObject.getUserStyle();
                String mergedUserStyle = ((String) strategy.merge(LocatorUtils.property(leftLocator, "userStyle", lhsUserStyle), LocatorUtils.property(rightLocator, "userStyle", rhsUserStyle), lhsUserStyle, rhsUserStyle));
                target.setUserStyle(mergedUserStyle);
            }
            {
                String lhsRemoteWFS;
                lhsRemoteWFS = leftObject.getRemoteWFS();
                String rhsRemoteWFS;
                rhsRemoteWFS = rightObject.getRemoteWFS();
                String mergedRemoteWFS = ((String) strategy.merge(LocatorUtils.property(leftLocator, "remoteWFS", lhsRemoteWFS), LocatorUtils.property(rightLocator, "remoteWFS", rhsRemoteWFS), lhsRemoteWFS, rhsRemoteWFS));
                target.setRemoteWFS(mergedRemoteWFS);
            }
        }
    }

    public UserDefinedSymbolization withSupportSLD(String value) {
        setSupportSLD(value);
        return this;
    }

    public UserDefinedSymbolization withUserLayer(String value) {
        setUserLayer(value);
        return this;
    }

    public UserDefinedSymbolization withUserStyle(String value) {
        setUserStyle(value);
        return this;
    }

    public UserDefinedSymbolization withRemoteWFS(String value) {
        setRemoteWFS(value);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy