Package com.cisco.oss.foundation.configuration.xml.jaxb

Source Code of com.cisco.oss.foundation.configuration.xml.jaxb.NewParameterValue

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.06.05 at 10:11:28 AM EDT
//


package com.cisco.oss.foundation.configuration.xml.jaxb;

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.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.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
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;


/**
* <p>Java class for NewParameterValue complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="NewParameterValue">
*   &lt;complexContent>
*     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
*       &lt;sequence>
*         &lt;element name="Value" type="{}ParameterValue"/>
*       &lt;/sequence>
*       &lt;attribute name="namespaceName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
*       &lt;attribute name="namespaceVersion" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
*       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
*       &lt;attribute name="LevelName" use="required" type="{}HierarchyLevel" />
*     &lt;/restriction>
*   &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NewParameterValue", propOrder = {
    "value"
})
public class NewParameterValue
    implements Cloneable, CopyTo, Equals, ToString
{

    @XmlElement(name = "Value", required = true)
    protected ParameterValue value;
    @XmlAttribute(name = "namespaceName", required = true)
    protected String namespaceName;
    @XmlAttribute(name = "namespaceVersion", required = true)
    protected String namespaceVersion;
    @XmlAttribute(name = "name", required = true)
    protected String name;
    @XmlAttribute(name = "LevelName", required = true)
    protected HierarchyLevel levelName;

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

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

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

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

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

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

    /**
     * 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 levelName property.
     *
     * @return
     *     possible object is
     *     {@link HierarchyLevel }
     *    
     */
    public HierarchyLevel getLevelName() {
        return levelName;
    }

    /**
     * Sets the value of the levelName property.
     *
     * @param value
     *     allowed object is
     *     {@link HierarchyLevel }
     *    
     */
    public void setLevelName(HierarchyLevel value) {
        this.levelName = 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) {
        {
            ParameterValue theValue;
            theValue = this.getValue();
            strategy.appendField(locator, this, "value", buffer, theValue);
        }
        {
            String theNamespaceName;
            theNamespaceName = this.getNamespaceName();
            strategy.appendField(locator, this, "namespaceName", buffer, theNamespaceName);
        }
        {
            String theNamespaceVersion;
            theNamespaceVersion = this.getNamespaceVersion();
            strategy.appendField(locator, this, "namespaceVersion", buffer, theNamespaceVersion);
        }
        {
            String theName;
            theName = this.getName();
            strategy.appendField(locator, this, "name", buffer, theName);
        }
        {
            HierarchyLevel theLevelName;
            theLevelName = this.getLevelName();
            strategy.appendField(locator, this, "levelName", buffer, theLevelName);
        }
        return buffer;
    }

    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 NewParameterValue) {
            final NewParameterValue copy = ((NewParameterValue) draftCopy);
            if (this.value!= null) {
                ParameterValue sourceValue;
                sourceValue = this.getValue();
                ParameterValue copyValue = ((ParameterValue) strategy.copy(LocatorUtils.property(locator, "value", sourceValue), sourceValue));
                copy.setValue(copyValue);
            } else {
                copy.value = null;
            }
            if (this.namespaceName!= null) {
                String sourceNamespaceName;
                sourceNamespaceName = this.getNamespaceName();
                String copyNamespaceName = ((String) strategy.copy(LocatorUtils.property(locator, "namespaceName", sourceNamespaceName), sourceNamespaceName));
                copy.setNamespaceName(copyNamespaceName);
            } else {
                copy.namespaceName = null;
            }
            if (this.namespaceVersion!= null) {
                String sourceNamespaceVersion;
                sourceNamespaceVersion = this.getNamespaceVersion();
                String copyNamespaceVersion = ((String) strategy.copy(LocatorUtils.property(locator, "namespaceVersion", sourceNamespaceVersion), sourceNamespaceVersion));
                copy.setNamespaceVersion(copyNamespaceVersion);
            } else {
                copy.namespaceVersion = null;
            }
            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.levelName!= null) {
                HierarchyLevel sourceLevelName;
                sourceLevelName = this.getLevelName();
                HierarchyLevel copyLevelName = ((HierarchyLevel) strategy.copy(LocatorUtils.property(locator, "levelName", sourceLevelName), sourceLevelName));
                copy.setLevelName(copyLevelName);
            } else {
                copy.levelName = null;
            }
        }
        return draftCopy;
    }

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

    public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
        if (!(object instanceof NewParameterValue)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final NewParameterValue that = ((NewParameterValue) object);
        {
            ParameterValue lhsValue;
            lhsValue = this.getValue();
            ParameterValue rhsValue;
            rhsValue = that.getValue();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property(thatLocator, "value", rhsValue), lhsValue, rhsValue)) {
                return false;
            }
        }
        {
            String lhsNamespaceName;
            lhsNamespaceName = this.getNamespaceName();
            String rhsNamespaceName;
            rhsNamespaceName = that.getNamespaceName();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "namespaceName", lhsNamespaceName), LocatorUtils.property(thatLocator, "namespaceName", rhsNamespaceName), lhsNamespaceName, rhsNamespaceName)) {
                return false;
            }
        }
        {
            String lhsNamespaceVersion;
            lhsNamespaceVersion = this.getNamespaceVersion();
            String rhsNamespaceVersion;
            rhsNamespaceVersion = that.getNamespaceVersion();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "namespaceVersion", lhsNamespaceVersion), LocatorUtils.property(thatLocator, "namespaceVersion", rhsNamespaceVersion), lhsNamespaceVersion, rhsNamespaceVersion)) {
                return false;
            }
        }
        {
            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;
            }
        }
        {
            HierarchyLevel lhsLevelName;
            lhsLevelName = this.getLevelName();
            HierarchyLevel rhsLevelName;
            rhsLevelName = that.getLevelName();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "levelName", lhsLevelName), LocatorUtils.property(thatLocator, "levelName", rhsLevelName), lhsLevelName, rhsLevelName)) {
                return false;
            }
        }
        return true;
    }

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

}
TOP

Related Classes of com.cisco.oss.foundation.configuration.xml.jaxb.NewParameterValue

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.