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

WMS_1_1_0.Service 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 = {
    "name",
    "title",
    "_abstract",
    "keywordList",
    "onlineResource",
    "contactInformation",
    "fees",
    "accessConstraints"
})
@XmlRootElement(name = "Service")
public class Service
    implements Cloneable, CopyTo, Equals, HashCode, MergeFrom, ToString
{

    @XmlElement(name = "Name", required = true)
    protected String name;
    @XmlElement(name = "Title", required = true)
    protected String title;
    @XmlElement(name = "Abstract")
    protected String _abstract;
    @XmlElement(name = "KeywordList")
    protected KeywordList keywordList;
    @XmlElement(name = "OnlineResource", required = true)
    protected OnlineResource onlineResource;
    @XmlElement(name = "ContactInformation")
    protected ContactInformation contactInformation;
    @XmlElement(name = "Fees")
    protected String fees;
    @XmlElement(name = "AccessConstraints")
    protected String accessConstraints;

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

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

    /**
     * Gets the value of the title property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getTitle() {
        return title;
    }

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

    /**
     * Gets the value of the abstract property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAbstract() {
        return _abstract;
    }

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

    /**
     * Gets the value of the keywordList property.
     * 
     * @return
     *     possible object is
     *     {@link KeywordList }
     *     
     */
    public KeywordList getKeywordList() {
        return keywordList;
    }

    /**
     * Sets the value of the keywordList property.
     * 
     * @param value
     *     allowed object is
     *     {@link KeywordList }
     *     
     */
    public void setKeywordList(KeywordList value) {
        this.keywordList = value;
    }

    /**
     * Gets the value of the onlineResource property.
     * 
     * @return
     *     possible object is
     *     {@link OnlineResource }
     *     
     */
    public OnlineResource getOnlineResource() {
        return onlineResource;
    }

    /**
     * Sets the value of the onlineResource property.
     * 
     * @param value
     *     allowed object is
     *     {@link OnlineResource }
     *     
     */
    public void setOnlineResource(OnlineResource value) {
        this.onlineResource = value;
    }

    /**
     * Gets the value of the contactInformation property.
     * 
     * @return
     *     possible object is
     *     {@link ContactInformation }
     *     
     */
    public ContactInformation getContactInformation() {
        return contactInformation;
    }

    /**
     * Sets the value of the contactInformation property.
     * 
     * @param value
     *     allowed object is
     *     {@link ContactInformation }
     *     
     */
    public void setContactInformation(ContactInformation value) {
        this.contactInformation = value;
    }

    /**
     * Gets the value of the fees property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getFees() {
        return fees;
    }

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

    /**
     * Gets the value of the accessConstraints property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAccessConstraints() {
        return accessConstraints;
    }

    /**
     * Sets the value of the accessConstraints property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAccessConstraints(String value) {
        this.accessConstraints = 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 theName;
            theName = this.getName();
            strategy.appendField(locator, this, "name", buffer, theName);
        }
        {
            String theTitle;
            theTitle = this.getTitle();
            strategy.appendField(locator, this, "title", buffer, theTitle);
        }
        {
            String theAbstract;
            theAbstract = this.getAbstract();
            strategy.appendField(locator, this, "_abstract", buffer, theAbstract);
        }
        {
            KeywordList theKeywordList;
            theKeywordList = this.getKeywordList();
            strategy.appendField(locator, this, "keywordList", buffer, theKeywordList);
        }
        {
            OnlineResource theOnlineResource;
            theOnlineResource = this.getOnlineResource();
            strategy.appendField(locator, this, "onlineResource", buffer, theOnlineResource);
        }
        {
            ContactInformation theContactInformation;
            theContactInformation = this.getContactInformation();
            strategy.appendField(locator, this, "contactInformation", buffer, theContactInformation);
        }
        {
            String theFees;
            theFees = this.getFees();
            strategy.appendField(locator, this, "fees", buffer, theFees);
        }
        {
            String theAccessConstraints;
            theAccessConstraints = this.getAccessConstraints();
            strategy.appendField(locator, this, "accessConstraints", buffer, theAccessConstraints);
        }
        return buffer;
    }

    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
        if (!(object instanceof Service)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final Service that = ((Service) object);
        {
            String lhsName;
            lhsName = this.getName();
            String rhsName;
            rhsName = that.getName();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) {
                return false;
            }
        }
        {
            String lhsTitle;
            lhsTitle = this.getTitle();
            String rhsTitle;
            rhsTitle = that.getTitle();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle)) {
                return false;
            }
        }
        {
            String lhsAbstract;
            lhsAbstract = this.getAbstract();
            String rhsAbstract;
            rhsAbstract = that.getAbstract();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "_abstract", lhsAbstract), LocatorUtils.property(thatLocator, "_abstract", rhsAbstract), lhsAbstract, rhsAbstract)) {
                return false;
            }
        }
        {
            KeywordList lhsKeywordList;
            lhsKeywordList = this.getKeywordList();
            KeywordList rhsKeywordList;
            rhsKeywordList = that.getKeywordList();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "keywordList", lhsKeywordList), LocatorUtils.property(thatLocator, "keywordList", rhsKeywordList), lhsKeywordList, rhsKeywordList)) {
                return false;
            }
        }
        {
            OnlineResource lhsOnlineResource;
            lhsOnlineResource = this.getOnlineResource();
            OnlineResource rhsOnlineResource;
            rhsOnlineResource = that.getOnlineResource();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "onlineResource", lhsOnlineResource), LocatorUtils.property(thatLocator, "onlineResource", rhsOnlineResource), lhsOnlineResource, rhsOnlineResource)) {
                return false;
            }
        }
        {
            ContactInformation lhsContactInformation;
            lhsContactInformation = this.getContactInformation();
            ContactInformation rhsContactInformation;
            rhsContactInformation = that.getContactInformation();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "contactInformation", lhsContactInformation), LocatorUtils.property(thatLocator, "contactInformation", rhsContactInformation), lhsContactInformation, rhsContactInformation)) {
                return false;
            }
        }
        {
            String lhsFees;
            lhsFees = this.getFees();
            String rhsFees;
            rhsFees = that.getFees();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "fees", lhsFees), LocatorUtils.property(thatLocator, "fees", rhsFees), lhsFees, rhsFees)) {
                return false;
            }
        }
        {
            String lhsAccessConstraints;
            lhsAccessConstraints = this.getAccessConstraints();
            String rhsAccessConstraints;
            rhsAccessConstraints = that.getAccessConstraints();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "accessConstraints", lhsAccessConstraints), LocatorUtils.property(thatLocator, "accessConstraints", rhsAccessConstraints), lhsAccessConstraints, rhsAccessConstraints)) {
                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 theName;
            theName = this.getName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName);
        }
        {
            String theTitle;
            theTitle = this.getTitle();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle);
        }
        {
            String theAbstract;
            theAbstract = this.getAbstract();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_abstract", theAbstract), currentHashCode, theAbstract);
        }
        {
            KeywordList theKeywordList;
            theKeywordList = this.getKeywordList();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keywordList", theKeywordList), currentHashCode, theKeywordList);
        }
        {
            OnlineResource theOnlineResource;
            theOnlineResource = this.getOnlineResource();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onlineResource", theOnlineResource), currentHashCode, theOnlineResource);
        }
        {
            ContactInformation theContactInformation;
            theContactInformation = this.getContactInformation();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contactInformation", theContactInformation), currentHashCode, theContactInformation);
        }
        {
            String theFees;
            theFees = this.getFees();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fees", theFees), currentHashCode, theFees);
        }
        {
            String theAccessConstraints;
            theAccessConstraints = this.getAccessConstraints();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accessConstraints", theAccessConstraints), currentHashCode, theAccessConstraints);
        }
        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 Service) {
            final Service copy = ((Service) draftCopy);
            if (this.name!= null) {
                String sourceName;
                sourceName = this.getName();
                String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName));
                copy.setName(copyName);
            } else {
                copy.name = null;
            }
            if (this.title!= null) {
                String sourceTitle;
                sourceTitle = this.getTitle();
                String copyTitle = ((String) strategy.copy(LocatorUtils.property(locator, "title", sourceTitle), sourceTitle));
                copy.setTitle(copyTitle);
            } else {
                copy.title = null;
            }
            if (this._abstract!= null) {
                String sourceAbstract;
                sourceAbstract = this.getAbstract();
                String copyAbstract = ((String) strategy.copy(LocatorUtils.property(locator, "_abstract", sourceAbstract), sourceAbstract));
                copy.setAbstract(copyAbstract);
            } else {
                copy._abstract = null;
            }
            if (this.keywordList!= null) {
                KeywordList sourceKeywordList;
                sourceKeywordList = this.getKeywordList();
                KeywordList copyKeywordList = ((KeywordList) strategy.copy(LocatorUtils.property(locator, "keywordList", sourceKeywordList), sourceKeywordList));
                copy.setKeywordList(copyKeywordList);
            } else {
                copy.keywordList = null;
            }
            if (this.onlineResource!= null) {
                OnlineResource sourceOnlineResource;
                sourceOnlineResource = this.getOnlineResource();
                OnlineResource copyOnlineResource = ((OnlineResource) strategy.copy(LocatorUtils.property(locator, "onlineResource", sourceOnlineResource), sourceOnlineResource));
                copy.setOnlineResource(copyOnlineResource);
            } else {
                copy.onlineResource = null;
            }
            if (this.contactInformation!= null) {
                ContactInformation sourceContactInformation;
                sourceContactInformation = this.getContactInformation();
                ContactInformation copyContactInformation = ((ContactInformation) strategy.copy(LocatorUtils.property(locator, "contactInformation", sourceContactInformation), sourceContactInformation));
                copy.setContactInformation(copyContactInformation);
            } else {
                copy.contactInformation = null;
            }
            if (this.fees!= null) {
                String sourceFees;
                sourceFees = this.getFees();
                String copyFees = ((String) strategy.copy(LocatorUtils.property(locator, "fees", sourceFees), sourceFees));
                copy.setFees(copyFees);
            } else {
                copy.fees = null;
            }
            if (this.accessConstraints!= null) {
                String sourceAccessConstraints;
                sourceAccessConstraints = this.getAccessConstraints();
                String copyAccessConstraints = ((String) strategy.copy(LocatorUtils.property(locator, "accessConstraints", sourceAccessConstraints), sourceAccessConstraints));
                copy.setAccessConstraints(copyAccessConstraints);
            } else {
                copy.accessConstraints = null;
            }
        }
        return draftCopy;
    }

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

    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 Service) {
            final Service target = this;
            final Service leftObject = ((Service) left);
            final Service rightObject = ((Service) right);
            {
                String lhsName;
                lhsName = leftObject.getName();
                String rhsName;
                rhsName = rightObject.getName();
                String mergedName = ((String) strategy.merge(LocatorUtils.property(leftLocator, "name", lhsName), LocatorUtils.property(rightLocator, "name", rhsName), lhsName, rhsName));
                target.setName(mergedName);
            }
            {
                String lhsTitle;
                lhsTitle = leftObject.getTitle();
                String rhsTitle;
                rhsTitle = rightObject.getTitle();
                String mergedTitle = ((String) strategy.merge(LocatorUtils.property(leftLocator, "title", lhsTitle), LocatorUtils.property(rightLocator, "title", rhsTitle), lhsTitle, rhsTitle));
                target.setTitle(mergedTitle);
            }
            {
                String lhsAbstract;
                lhsAbstract = leftObject.getAbstract();
                String rhsAbstract;
                rhsAbstract = rightObject.getAbstract();
                String mergedAbstract = ((String) strategy.merge(LocatorUtils.property(leftLocator, "_abstract", lhsAbstract), LocatorUtils.property(rightLocator, "_abstract", rhsAbstract), lhsAbstract, rhsAbstract));
                target.setAbstract(mergedAbstract);
            }
            {
                KeywordList lhsKeywordList;
                lhsKeywordList = leftObject.getKeywordList();
                KeywordList rhsKeywordList;
                rhsKeywordList = rightObject.getKeywordList();
                KeywordList mergedKeywordList = ((KeywordList) strategy.merge(LocatorUtils.property(leftLocator, "keywordList", lhsKeywordList), LocatorUtils.property(rightLocator, "keywordList", rhsKeywordList), lhsKeywordList, rhsKeywordList));
                target.setKeywordList(mergedKeywordList);
            }
            {
                OnlineResource lhsOnlineResource;
                lhsOnlineResource = leftObject.getOnlineResource();
                OnlineResource rhsOnlineResource;
                rhsOnlineResource = rightObject.getOnlineResource();
                OnlineResource mergedOnlineResource = ((OnlineResource) strategy.merge(LocatorUtils.property(leftLocator, "onlineResource", lhsOnlineResource), LocatorUtils.property(rightLocator, "onlineResource", rhsOnlineResource), lhsOnlineResource, rhsOnlineResource));
                target.setOnlineResource(mergedOnlineResource);
            }
            {
                ContactInformation lhsContactInformation;
                lhsContactInformation = leftObject.getContactInformation();
                ContactInformation rhsContactInformation;
                rhsContactInformation = rightObject.getContactInformation();
                ContactInformation mergedContactInformation = ((ContactInformation) strategy.merge(LocatorUtils.property(leftLocator, "contactInformation", lhsContactInformation), LocatorUtils.property(rightLocator, "contactInformation", rhsContactInformation), lhsContactInformation, rhsContactInformation));
                target.setContactInformation(mergedContactInformation);
            }
            {
                String lhsFees;
                lhsFees = leftObject.getFees();
                String rhsFees;
                rhsFees = rightObject.getFees();
                String mergedFees = ((String) strategy.merge(LocatorUtils.property(leftLocator, "fees", lhsFees), LocatorUtils.property(rightLocator, "fees", rhsFees), lhsFees, rhsFees));
                target.setFees(mergedFees);
            }
            {
                String lhsAccessConstraints;
                lhsAccessConstraints = leftObject.getAccessConstraints();
                String rhsAccessConstraints;
                rhsAccessConstraints = rightObject.getAccessConstraints();
                String mergedAccessConstraints = ((String) strategy.merge(LocatorUtils.property(leftLocator, "accessConstraints", lhsAccessConstraints), LocatorUtils.property(rightLocator, "accessConstraints", rhsAccessConstraints), lhsAccessConstraints, rhsAccessConstraints));
                target.setAccessConstraints(mergedAccessConstraints);
            }
        }
    }

    public Service withName(String value) {
        setName(value);
        return this;
    }

    public Service withTitle(String value) {
        setTitle(value);
        return this;
    }

    public Service withAbstract(String value) {
        setAbstract(value);
        return this;
    }

    public Service withKeywordList(KeywordList value) {
        setKeywordList(value);
        return this;
    }

    public Service withOnlineResource(OnlineResource value) {
        setOnlineResource(value);
        return this;
    }

    public Service withContactInformation(ContactInformation value) {
        setContactInformation(value);
        return this;
    }

    public Service withFees(String value) {
        setFees(value);
        return this;
    }

    public Service withAccessConstraints(String value) {
        setAccessConstraints(value);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy