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

com.cisco.oss.foundation.configuration.xml.jaxb.Delete 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.11.05 at 02:12:08 AM EST 
//


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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
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.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 Delete complex type. * *

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

 * <complexType name="Delete">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice>
 *         <sequence>
 *           <element name="paramId" type="{http://www.w3.org/2001/XMLSchema}integer"/>
 *         </sequence>
 *         <sequence>
 *           <element name="structId" type="{http://www.w3.org/2001/XMLSchema}integer"/>
 *         </sequence>
 *       </choice>
 *       <attribute name="levelInstanceId" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Delete", propOrder = { "structId", "paramId" }) public class Delete implements Cloneable, CopyTo, Equals, ToString { @XmlElement(type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "integer") protected Integer structId; @XmlElement(type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "integer") protected Integer paramId; @XmlAttribute(name = "levelInstanceId", required = true) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "integer") protected Integer levelInstanceId; /** * Gets the value of the structId property. * * @return * possible object is * {@link String } * */ public Integer getStructId() { return structId; } /** * Sets the value of the structId property. * * @param value * allowed object is * {@link String } * */ public void setStructId(Integer value) { this.structId = value; } /** * Gets the value of the paramId property. * * @return * possible object is * {@link String } * */ public Integer getParamId() { return paramId; } /** * Sets the value of the paramId property. * * @param value * allowed object is * {@link String } * */ public void setParamId(Integer value) { this.paramId = value; } /** * Gets the value of the levelInstanceId property. * * @return * possible object is * {@link String } * */ public Integer getLevelInstanceId() { return levelInstanceId; } /** * Sets the value of the levelInstanceId property. * * @param value * allowed object is * {@link String } * */ public void setLevelInstanceId(Integer value) { this.levelInstanceId = 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) { { Integer theStructId; theStructId = this.getStructId(); strategy.appendField(locator, this, "structId", buffer, theStructId); } { Integer theParamId; theParamId = this.getParamId(); strategy.appendField(locator, this, "paramId", buffer, theParamId); } { Integer theLevelInstanceId; theLevelInstanceId = this.getLevelInstanceId(); strategy.appendField(locator, this, "levelInstanceId", buffer, theLevelInstanceId); } 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 Delete) { final Delete copy = ((Delete) draftCopy); if (this.structId!= null) { Integer sourceStructId; sourceStructId = this.getStructId(); Integer copyStructId = ((Integer) strategy.copy(LocatorUtils.property(locator, "structId", sourceStructId), sourceStructId)); copy.setStructId(copyStructId); } else { copy.structId = null; } if (this.paramId!= null) { Integer sourceParamId; sourceParamId = this.getParamId(); Integer copyParamId = ((Integer) strategy.copy(LocatorUtils.property(locator, "paramId", sourceParamId), sourceParamId)); copy.setParamId(copyParamId); } else { copy.paramId = null; } if (this.levelInstanceId!= null) { Integer sourceLevelInstanceId; sourceLevelInstanceId = this.getLevelInstanceId(); Integer copyLevelInstanceId = ((Integer) strategy.copy(LocatorUtils.property(locator, "levelInstanceId", sourceLevelInstanceId), sourceLevelInstanceId)); copy.setLevelInstanceId(copyLevelInstanceId); } else { copy.levelInstanceId = null; } } return draftCopy; } public Object createNewInstance() { return new Delete(); } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Delete)) { return false; } if (this == object) { return true; } final Delete that = ((Delete) object); { Integer lhsStructId; lhsStructId = this.getStructId(); Integer rhsStructId; rhsStructId = that.getStructId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "structId", lhsStructId), LocatorUtils.property(thatLocator, "structId", rhsStructId), lhsStructId, rhsStructId)) { return false; } } { Integer lhsParamId; lhsParamId = this.getParamId(); Integer rhsParamId; rhsParamId = that.getParamId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "paramId", lhsParamId), LocatorUtils.property(thatLocator, "paramId", rhsParamId), lhsParamId, rhsParamId)) { return false; } } { Integer lhsLevelInstanceId; lhsLevelInstanceId = this.getLevelInstanceId(); Integer rhsLevelInstanceId; rhsLevelInstanceId = that.getLevelInstanceId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "levelInstanceId", lhsLevelInstanceId), LocatorUtils.property(thatLocator, "levelInstanceId", rhsLevelInstanceId), lhsLevelInstanceId, rhsLevelInstanceId)) { 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