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

com.cisco.oss.foundation.configuration.xml.jaxb.EnabledBy Maven / Gradle / Ivy

Go to download

This project is the api library for configuration in the cisco vss foundation runtime

There is a newer version: 1.1.0-1
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2014.09.07 at 04:38:25 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;


/**
 * 

Java class for EnabledBy complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="EnabledBy">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Value" type="{}ParameterValue"/>
 *       </sequence>
 *       <attribute name="parameterName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="operator" use="required" type="{}Operator" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EnabledBy", propOrder = { "value" }) public class EnabledBy implements Cloneable, CopyTo, Equals, ToString { @XmlElement(name = "Value", required = true) protected ParameterValue value; @XmlAttribute(name = "parameterName", required = true) protected String parameterName; @XmlAttribute(name = "operator", required = true) protected Operator operator; /** * 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 parameterName property. * * @return * possible object is * {@link String } * */ public String getParameterName() { return parameterName; } /** * Sets the value of the parameterName property. * * @param value * allowed object is * {@link String } * */ public void setParameterName(String value) { this.parameterName = value; } /** * Gets the value of the operator property. * * @return * possible object is * {@link Operator } * */ public Operator getOperator() { return operator; } /** * Sets the value of the operator property. * * @param value * allowed object is * {@link Operator } * */ public void setOperator(Operator value) { this.operator = 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 theParameterName; theParameterName = this.getParameterName(); strategy.appendField(locator, this, "parameterName", buffer, theParameterName); } { Operator theOperator; theOperator = this.getOperator(); strategy.appendField(locator, this, "operator", buffer, theOperator); } 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 EnabledBy) { final EnabledBy copy = ((EnabledBy) 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.parameterName!= null) { String sourceParameterName; sourceParameterName = this.getParameterName(); String copyParameterName = ((String) strategy.copy(LocatorUtils.property(locator, "parameterName", sourceParameterName), sourceParameterName)); copy.setParameterName(copyParameterName); } else { copy.parameterName = null; } if (this.operator!= null) { Operator sourceOperator; sourceOperator = this.getOperator(); Operator copyOperator = ((Operator) strategy.copy(LocatorUtils.property(locator, "operator", sourceOperator), sourceOperator)); copy.setOperator(copyOperator); } else { copy.operator = null; } } return draftCopy; } public Object createNewInstance() { return new EnabledBy(); } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof EnabledBy)) { return false; } if (this == object) { return true; } final EnabledBy that = ((EnabledBy) 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 lhsParameterName; lhsParameterName = this.getParameterName(); String rhsParameterName; rhsParameterName = that.getParameterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "parameterName", lhsParameterName), LocatorUtils.property(thatLocator, "parameterName", rhsParameterName), lhsParameterName, rhsParameterName)) { return false; } } { Operator lhsOperator; lhsOperator = this.getOperator(); Operator rhsOperator; rhsOperator = that.getOperator(); if (!strategy.equals(LocatorUtils.property(thisLocator, "operator", lhsOperator), LocatorUtils.property(thatLocator, "operator", rhsOperator), lhsOperator, rhsOperator)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy