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

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

Go to download

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

The 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: 2016.08.24 at 04:34: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;


/**
 * 

Java class for StructureMemberDefinition complex type. * *

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

 * <complexType name="StructureMemberDefinition">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice>
 *         <sequence>
 *           <element name="StructureDefinition" type="{}StructureDefinition" minOccurs="0"/>
 *         </sequence>
 *         <sequence>
 *           <element name="DefaultValue" type="{}ParameterValue" minOccurs="0"/>
 *           <element name="Range" type="{}ParameterRange" minOccurs="0"/>
 *           <element name="DiscoveredBy" type="{}DiscoveredBy" minOccurs="0"/>
 *         </sequence>
 *       </choice>
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="type" use="required" type="{}ParameterKind" />
 *       <attribute name="isArray" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="advanced" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="unit" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="ignoreName" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="required" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StructureMemberDefinition", propOrder = { "defaultValue", "range", "discoveredBy", "structureDefinition" }) public class StructureMemberDefinition implements Cloneable, CopyTo, Equals, ToString { @XmlElement(name = "DefaultValue") protected ParameterValue defaultValue; @XmlElement(name = "Range") protected ParameterRange range; @XmlElement(name = "DiscoveredBy") protected DiscoveredBy discoveredBy; @XmlElement(name = "StructureDefinition") protected StructureDefinition structureDefinition; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "type", required = true) protected ParameterKind type; @XmlAttribute(name = "isArray") protected Boolean isArray; @XmlAttribute(name = "hidden") protected Boolean hidden; @XmlAttribute(name = "advanced") protected Boolean advanced; @XmlAttribute(name = "description") protected String description; @XmlAttribute(name = "unit") protected String unit; @XmlAttribute(name = "ignoreName") protected Boolean ignoreName; @XmlAttribute(name = "required") protected Boolean required; /** * Gets the value of the defaultValue property. * * @return * possible object is * {@link ParameterValue } * */ public ParameterValue getDefaultValue() { return defaultValue; } /** * Sets the value of the defaultValue property. * * @param value * allowed object is * {@link ParameterValue } * */ public void setDefaultValue(ParameterValue value) { this.defaultValue = value; } /** * Gets the value of the range property. * * @return * possible object is * {@link ParameterRange } * */ public ParameterRange getRange() { return range; } /** * Sets the value of the range property. * * @param value * allowed object is * {@link ParameterRange } * */ public void setRange(ParameterRange value) { this.range = value; } /** * Gets the value of the discoveredBy property. * * @return * possible object is * {@link DiscoveredBy } * */ public DiscoveredBy getDiscoveredBy() { return discoveredBy; } /** * Sets the value of the discoveredBy property. * * @param value * allowed object is * {@link DiscoveredBy } * */ public void setDiscoveredBy(DiscoveredBy value) { this.discoveredBy = value; } /** * Gets the value of the structureDefinition property. * * @return * possible object is * {@link StructureDefinition } * */ public StructureDefinition getStructureDefinition() { return structureDefinition; } /** * Sets the value of the structureDefinition property. * * @param value * allowed object is * {@link StructureDefinition } * */ public void setStructureDefinition(StructureDefinition value) { this.structureDefinition = 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 type property. * * @return * possible object is * {@link ParameterKind } * */ public ParameterKind getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link ParameterKind } * */ public void setType(ParameterKind value) { this.type = value; } /** * Gets the value of the isArray property. * * @return * possible object is * {@link Boolean } * */ public boolean isIsArray() { if (isArray == null) { return false; } else { return isArray; } } /** * Sets the value of the isArray property. * * @param value * allowed object is * {@link Boolean } * */ public void setIsArray(Boolean value) { this.isArray = value; } /** * Gets the value of the hidden property. * * @return * possible object is * {@link Boolean } * */ public boolean isHidden() { if (hidden == null) { return false; } else { return hidden; } } /** * Sets the value of the hidden property. * * @param value * allowed object is * {@link Boolean } * */ public void setHidden(Boolean value) { this.hidden = value; } /** * Gets the value of the advanced property. * * @return * possible object is * {@link Boolean } * */ public boolean isAdvanced() { if (advanced == null) { return false; } else { return advanced; } } /** * Sets the value of the advanced property. * * @param value * allowed object is * {@link Boolean } * */ public void setAdvanced(Boolean value) { this.advanced = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the unit property. * * @return * possible object is * {@link String } * */ public String getUnit() { return unit; } /** * Sets the value of the unit property. * * @param value * allowed object is * {@link String } * */ public void setUnit(String value) { this.unit = value; } /** * Gets the value of the ignoreName property. * * @return * possible object is * {@link Boolean } * */ public boolean isIgnoreName() { if (ignoreName == null) { return false; } else { return ignoreName; } } /** * Sets the value of the ignoreName property. * * @param value * allowed object is * {@link Boolean } * */ public void setIgnoreName(Boolean value) { this.ignoreName = value; } /** * Gets the value of the required property. * * @return * possible object is * {@link Boolean } * */ public boolean isRequired() { if (required == null) { return true; } else { return required; } } /** * Sets the value of the required property. * * @param value * allowed object is * {@link Boolean } * */ public void setRequired(Boolean value) { this.required = 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 theDefaultValue; theDefaultValue = this.getDefaultValue(); strategy.appendField(locator, this, "defaultValue", buffer, theDefaultValue); } { ParameterRange theRange; theRange = this.getRange(); strategy.appendField(locator, this, "range", buffer, theRange); } { DiscoveredBy theDiscoveredBy; theDiscoveredBy = this.getDiscoveredBy(); strategy.appendField(locator, this, "discoveredBy", buffer, theDiscoveredBy); } { StructureDefinition theStructureDefinition; theStructureDefinition = this.getStructureDefinition(); strategy.appendField(locator, this, "structureDefinition", buffer, theStructureDefinition); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { ParameterKind theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } { boolean theIsArray; theIsArray = ((this.isArray!= null)?this.isIsArray():false); strategy.appendField(locator, this, "isArray", buffer, theIsArray); } { boolean theHidden; theHidden = ((this.hidden!= null)?this.isHidden():false); strategy.appendField(locator, this, "hidden", buffer, theHidden); } { boolean theAdvanced; theAdvanced = ((this.advanced!= null)?this.isAdvanced():false); strategy.appendField(locator, this, "advanced", buffer, theAdvanced); } { String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription); } { String theUnit; theUnit = this.getUnit(); strategy.appendField(locator, this, "unit", buffer, theUnit); } { boolean theIgnoreName; theIgnoreName = ((this.ignoreName!= null)?this.isIgnoreName():false); strategy.appendField(locator, this, "ignoreName", buffer, theIgnoreName); } { boolean theRequired; theRequired = ((this.required!= null)?this.isRequired():false); strategy.appendField(locator, this, "required", buffer, theRequired); } 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 StructureMemberDefinition) { final StructureMemberDefinition copy = ((StructureMemberDefinition) draftCopy); if (this.defaultValue!= null) { ParameterValue sourceDefaultValue; sourceDefaultValue = this.getDefaultValue(); ParameterValue copyDefaultValue = ((ParameterValue) strategy.copy(LocatorUtils.property(locator, "defaultValue", sourceDefaultValue), sourceDefaultValue)); copy.setDefaultValue(copyDefaultValue); } else { copy.defaultValue = null; } if (this.range!= null) { ParameterRange sourceRange; sourceRange = this.getRange(); ParameterRange copyRange = ((ParameterRange) strategy.copy(LocatorUtils.property(locator, "range", sourceRange), sourceRange)); copy.setRange(copyRange); } else { copy.range = null; } if (this.discoveredBy!= null) { DiscoveredBy sourceDiscoveredBy; sourceDiscoveredBy = this.getDiscoveredBy(); DiscoveredBy copyDiscoveredBy = ((DiscoveredBy) strategy.copy(LocatorUtils.property(locator, "discoveredBy", sourceDiscoveredBy), sourceDiscoveredBy)); copy.setDiscoveredBy(copyDiscoveredBy); } else { copy.discoveredBy = null; } if (this.structureDefinition!= null) { StructureDefinition sourceStructureDefinition; sourceStructureDefinition = this.getStructureDefinition(); StructureDefinition copyStructureDefinition = ((StructureDefinition) strategy.copy(LocatorUtils.property(locator, "structureDefinition", sourceStructureDefinition), sourceStructureDefinition)); copy.setStructureDefinition(copyStructureDefinition); } else { copy.structureDefinition = 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.type!= null) { ParameterKind sourceType; sourceType = this.getType(); ParameterKind copyType = ((ParameterKind) strategy.copy(LocatorUtils.property(locator, "type", sourceType), sourceType)); copy.setType(copyType); } else { copy.type = null; } if (this.isArray!= null) { boolean sourceIsArray; sourceIsArray = ((this.isArray!= null)?this.isIsArray():false); boolean copyIsArray = strategy.copy(LocatorUtils.property(locator, "isArray", sourceIsArray), sourceIsArray); copy.setIsArray(copyIsArray); } else { copy.isArray = null; } if (this.hidden!= null) { boolean sourceHidden; sourceHidden = ((this.hidden!= null)?this.isHidden():false); boolean copyHidden = strategy.copy(LocatorUtils.property(locator, "hidden", sourceHidden), sourceHidden); copy.setHidden(copyHidden); } else { copy.hidden = null; } if (this.advanced!= null) { boolean sourceAdvanced; sourceAdvanced = ((this.advanced!= null)?this.isAdvanced():false); boolean copyAdvanced = strategy.copy(LocatorUtils.property(locator, "advanced", sourceAdvanced), sourceAdvanced); copy.setAdvanced(copyAdvanced); } else { copy.advanced = null; } if (this.description!= null) { String sourceDescription; sourceDescription = this.getDescription(); String copyDescription = ((String) strategy.copy(LocatorUtils.property(locator, "description", sourceDescription), sourceDescription)); copy.setDescription(copyDescription); } else { copy.description = null; } if (this.unit!= null) { String sourceUnit; sourceUnit = this.getUnit(); String copyUnit = ((String) strategy.copy(LocatorUtils.property(locator, "unit", sourceUnit), sourceUnit)); copy.setUnit(copyUnit); } else { copy.unit = null; } if (this.ignoreName!= null) { boolean sourceIgnoreName; sourceIgnoreName = ((this.ignoreName!= null)?this.isIgnoreName():false); boolean copyIgnoreName = strategy.copy(LocatorUtils.property(locator, "ignoreName", sourceIgnoreName), sourceIgnoreName); copy.setIgnoreName(copyIgnoreName); } else { copy.ignoreName = null; } if (this.required!= null) { boolean sourceRequired; sourceRequired = ((this.required!= null)?this.isRequired():false); boolean copyRequired = strategy.copy(LocatorUtils.property(locator, "required", sourceRequired), sourceRequired); copy.setRequired(copyRequired); } else { copy.required = null; } } return draftCopy; } public Object createNewInstance() { return new StructureMemberDefinition(); } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof StructureMemberDefinition)) { return false; } if (this == object) { return true; } final StructureMemberDefinition that = ((StructureMemberDefinition) object); { ParameterValue lhsDefaultValue; lhsDefaultValue = this.getDefaultValue(); ParameterValue rhsDefaultValue; rhsDefaultValue = that.getDefaultValue(); if (!strategy.equals(LocatorUtils.property(thisLocator, "defaultValue", lhsDefaultValue), LocatorUtils.property(thatLocator, "defaultValue", rhsDefaultValue), lhsDefaultValue, rhsDefaultValue)) { return false; } } { ParameterRange lhsRange; lhsRange = this.getRange(); ParameterRange rhsRange; rhsRange = that.getRange(); if (!strategy.equals(LocatorUtils.property(thisLocator, "range", lhsRange), LocatorUtils.property(thatLocator, "range", rhsRange), lhsRange, rhsRange)) { return false; } } { DiscoveredBy lhsDiscoveredBy; lhsDiscoveredBy = this.getDiscoveredBy(); DiscoveredBy rhsDiscoveredBy; rhsDiscoveredBy = that.getDiscoveredBy(); if (!strategy.equals(LocatorUtils.property(thisLocator, "discoveredBy", lhsDiscoveredBy), LocatorUtils.property(thatLocator, "discoveredBy", rhsDiscoveredBy), lhsDiscoveredBy, rhsDiscoveredBy)) { return false; } } { StructureDefinition lhsStructureDefinition; lhsStructureDefinition = this.getStructureDefinition(); StructureDefinition rhsStructureDefinition; rhsStructureDefinition = that.getStructureDefinition(); if (!strategy.equals(LocatorUtils.property(thisLocator, "structureDefinition", lhsStructureDefinition), LocatorUtils.property(thatLocator, "structureDefinition", rhsStructureDefinition), lhsStructureDefinition, rhsStructureDefinition)) { 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; } } { ParameterKind lhsType; lhsType = this.getType(); ParameterKind rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { return false; } } { boolean lhsIsArray; lhsIsArray = ((this.isArray!= null)?this.isIsArray():false); boolean rhsIsArray; rhsIsArray = ((that.isArray!= null)?that.isIsArray():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "isArray", lhsIsArray), LocatorUtils.property(thatLocator, "isArray", rhsIsArray), lhsIsArray, rhsIsArray)) { return false; } } { boolean lhsHidden; lhsHidden = ((this.hidden!= null)?this.isHidden():false); boolean rhsHidden; rhsHidden = ((that.hidden!= null)?that.isHidden():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "hidden", lhsHidden), LocatorUtils.property(thatLocator, "hidden", rhsHidden), lhsHidden, rhsHidden)) { return false; } } { boolean lhsAdvanced; lhsAdvanced = ((this.advanced!= null)?this.isAdvanced():false); boolean rhsAdvanced; rhsAdvanced = ((that.advanced!= null)?that.isAdvanced():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "advanced", lhsAdvanced), LocatorUtils.property(thatLocator, "advanced", rhsAdvanced), lhsAdvanced, rhsAdvanced)) { return false; } } { String lhsDescription; lhsDescription = this.getDescription(); String rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription)) { return false; } } { String lhsUnit; lhsUnit = this.getUnit(); String rhsUnit; rhsUnit = that.getUnit(); if (!strategy.equals(LocatorUtils.property(thisLocator, "unit", lhsUnit), LocatorUtils.property(thatLocator, "unit", rhsUnit), lhsUnit, rhsUnit)) { return false; } } { boolean lhsIgnoreName; lhsIgnoreName = ((this.ignoreName!= null)?this.isIgnoreName():false); boolean rhsIgnoreName; rhsIgnoreName = ((that.ignoreName!= null)?that.isIgnoreName():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "ignoreName", lhsIgnoreName), LocatorUtils.property(thatLocator, "ignoreName", rhsIgnoreName), lhsIgnoreName, rhsIgnoreName)) { return false; } } { boolean lhsRequired; lhsRequired = ((this.required!= null)?this.isRequired():false); boolean rhsRequired; rhsRequired = ((that.required!= null)?that.isRequired():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "required", lhsRequired), LocatorUtils.property(thatLocator, "required", rhsRequired), lhsRequired, rhsRequired)) { 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