com.cisco.oss.foundation.configuration.xml.jaxb.NamespaceDefinition Maven / Gradle / Ivy
Show all versions of configuration-api Show documentation
//
// 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 java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
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 NamespaceDefinition complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="NamespaceDefinition">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="NamespaceIdentifier" type="{}NamespaceIdentifier"/>
* <element name="InstallationProperties" type="{}InstallationProperties" minOccurs="0"/>
* <element name="NamespaceDependency" type="{}NamespaceDependency" maxOccurs="unbounded" minOccurs="0"/>
* <element name="ParameterOverride" type="{}ParameterOverride" maxOccurs="unbounded" minOccurs="0"/>
* <element name="ParameterType" type="{}ParameterType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Parameter" type="{}Parameter" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NamespaceDefinition", propOrder = {
"namespaceIdentifier",
"installationProperties",
"namespaceDependencies",
"parameterOverrides",
"parameterTypes",
"parameters"
})
public class NamespaceDefinition
implements Cloneable, CopyTo, Equals, ToString
{
@XmlElement(name = "NamespaceIdentifier", required = true)
protected NamespaceIdentifier namespaceIdentifier;
@XmlElement(name = "InstallationProperties")
protected InstallationProperties installationProperties;
@XmlElement(name = "NamespaceDependency")
protected List namespaceDependencies;
@XmlElement(name = "ParameterOverride")
protected List parameterOverrides;
@XmlElement(name = "ParameterType")
protected List parameterTypes;
@XmlElement(name = "Parameter")
protected List parameters;
/**
* Gets the value of the namespaceIdentifier property.
*
* @return
* possible object is
* {@link NamespaceIdentifier }
*
*/
public NamespaceIdentifier getNamespaceIdentifier() {
return namespaceIdentifier;
}
/**
* Sets the value of the namespaceIdentifier property.
*
* @param value
* allowed object is
* {@link NamespaceIdentifier }
*
*/
public void setNamespaceIdentifier(NamespaceIdentifier value) {
this.namespaceIdentifier = value;
}
/**
* Gets the value of the installationProperties property.
*
* @return
* possible object is
* {@link InstallationProperties }
*
*/
public InstallationProperties getInstallationProperties() {
return installationProperties;
}
/**
* Sets the value of the installationProperties property.
*
* @param value
* allowed object is
* {@link InstallationProperties }
*
*/
public void setInstallationProperties(InstallationProperties value) {
this.installationProperties = value;
}
/**
* Gets the value of the namespaceDependencies property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the namespaceDependencies property.
*
*
* For example, to add a new item, do as follows:
*
* getNamespaceDependencies().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NamespaceDependency }
*
*
*/
public List getNamespaceDependencies() {
if (namespaceDependencies == null) {
namespaceDependencies = new ArrayList();
}
return this.namespaceDependencies;
}
/**
* Gets the value of the parameterOverrides property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the parameterOverrides property.
*
*
* For example, to add a new item, do as follows:
*
* getParameterOverrides().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ParameterOverride }
*
*
*/
public List getParameterOverrides() {
if (parameterOverrides == null) {
parameterOverrides = new ArrayList();
}
return this.parameterOverrides;
}
/**
* Gets the value of the parameterTypes property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the parameterTypes property.
*
*
* For example, to add a new item, do as follows:
*
* getParameterTypes().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ParameterType }
*
*
*/
public List getParameterTypes() {
if (parameterTypes == null) {
parameterTypes = new ArrayList();
}
return this.parameterTypes;
}
/**
* Gets the value of the parameters property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the parameters property.
*
*
* For example, to add a new item, do as follows:
*
* getParameters().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Parameter }
*
*
*/
public List getParameters() {
if (parameters == null) {
parameters = new ArrayList();
}
return this.parameters;
}
/**
* Sets the value of the namespaceDependencies property.
*
* @param namespaceDependencies
* allowed object is
* {@link NamespaceDependency }
*
*/
public void setNamespaceDependencies(List namespaceDependencies) {
this.namespaceDependencies = namespaceDependencies;
}
/**
* Sets the value of the parameterOverrides property.
*
* @param parameterOverrides
* allowed object is
* {@link ParameterOverride }
*
*/
public void setParameterOverrides(List parameterOverrides) {
this.parameterOverrides = parameterOverrides;
}
/**
* Sets the value of the parameterTypes property.
*
* @param parameterTypes
* allowed object is
* {@link ParameterType }
*
*/
public void setParameterTypes(List parameterTypes) {
this.parameterTypes = parameterTypes;
}
/**
* Sets the value of the parameters property.
*
* @param parameters
* allowed object is
* {@link Parameter }
*
*/
public void setParameters(List parameters) {
this.parameters = parameters;
}
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) {
{
NamespaceIdentifier theNamespaceIdentifier;
theNamespaceIdentifier = this.getNamespaceIdentifier();
strategy.appendField(locator, this, "namespaceIdentifier", buffer, theNamespaceIdentifier);
}
{
InstallationProperties theInstallationProperties;
theInstallationProperties = this.getInstallationProperties();
strategy.appendField(locator, this, "installationProperties", buffer, theInstallationProperties);
}
{
List theNamespaceDependencies;
theNamespaceDependencies = (((this.namespaceDependencies!= null)&&(!this.namespaceDependencies.isEmpty()))?this.getNamespaceDependencies():null);
strategy.appendField(locator, this, "namespaceDependencies", buffer, theNamespaceDependencies);
}
{
List theParameterOverrides;
theParameterOverrides = (((this.parameterOverrides!= null)&&(!this.parameterOverrides.isEmpty()))?this.getParameterOverrides():null);
strategy.appendField(locator, this, "parameterOverrides", buffer, theParameterOverrides);
}
{
List theParameterTypes;
theParameterTypes = (((this.parameterTypes!= null)&&(!this.parameterTypes.isEmpty()))?this.getParameterTypes():null);
strategy.appendField(locator, this, "parameterTypes", buffer, theParameterTypes);
}
{
List theParameters;
theParameters = (((this.parameters!= null)&&(!this.parameters.isEmpty()))?this.getParameters():null);
strategy.appendField(locator, this, "parameters", buffer, theParameters);
}
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 NamespaceDefinition) {
final NamespaceDefinition copy = ((NamespaceDefinition) draftCopy);
if (this.namespaceIdentifier!= null) {
NamespaceIdentifier sourceNamespaceIdentifier;
sourceNamespaceIdentifier = this.getNamespaceIdentifier();
NamespaceIdentifier copyNamespaceIdentifier = ((NamespaceIdentifier) strategy.copy(LocatorUtils.property(locator, "namespaceIdentifier", sourceNamespaceIdentifier), sourceNamespaceIdentifier));
copy.setNamespaceIdentifier(copyNamespaceIdentifier);
} else {
copy.namespaceIdentifier = null;
}
if (this.installationProperties!= null) {
InstallationProperties sourceInstallationProperties;
sourceInstallationProperties = this.getInstallationProperties();
InstallationProperties copyInstallationProperties = ((InstallationProperties) strategy.copy(LocatorUtils.property(locator, "installationProperties", sourceInstallationProperties), sourceInstallationProperties));
copy.setInstallationProperties(copyInstallationProperties);
} else {
copy.installationProperties = null;
}
if ((this.namespaceDependencies!= null)&&(!this.namespaceDependencies.isEmpty())) {
List sourceNamespaceDependencies;
sourceNamespaceDependencies = (((this.namespaceDependencies!= null)&&(!this.namespaceDependencies.isEmpty()))?this.getNamespaceDependencies():null);
@SuppressWarnings("unchecked")
List copyNamespaceDependencies = ((List ) strategy.copy(LocatorUtils.property(locator, "namespaceDependencies", sourceNamespaceDependencies), sourceNamespaceDependencies));
copy.setNamespaceDependencies(copyNamespaceDependencies);
} else {
copy.namespaceDependencies = null;
}
if ((this.parameterOverrides!= null)&&(!this.parameterOverrides.isEmpty())) {
List sourceParameterOverrides;
sourceParameterOverrides = (((this.parameterOverrides!= null)&&(!this.parameterOverrides.isEmpty()))?this.getParameterOverrides():null);
@SuppressWarnings("unchecked")
List copyParameterOverrides = ((List ) strategy.copy(LocatorUtils.property(locator, "parameterOverrides", sourceParameterOverrides), sourceParameterOverrides));
copy.setParameterOverrides(copyParameterOverrides);
} else {
copy.parameterOverrides = null;
}
if ((this.parameterTypes!= null)&&(!this.parameterTypes.isEmpty())) {
List sourceParameterTypes;
sourceParameterTypes = (((this.parameterTypes!= null)&&(!this.parameterTypes.isEmpty()))?this.getParameterTypes():null);
@SuppressWarnings("unchecked")
List copyParameterTypes = ((List ) strategy.copy(LocatorUtils.property(locator, "parameterTypes", sourceParameterTypes), sourceParameterTypes));
copy.setParameterTypes(copyParameterTypes);
} else {
copy.parameterTypes = null;
}
if ((this.parameters!= null)&&(!this.parameters.isEmpty())) {
List sourceParameters;
sourceParameters = (((this.parameters!= null)&&(!this.parameters.isEmpty()))?this.getParameters():null);
@SuppressWarnings("unchecked")
List copyParameters = ((List ) strategy.copy(LocatorUtils.property(locator, "parameters", sourceParameters), sourceParameters));
copy.setParameters(copyParameters);
} else {
copy.parameters = null;
}
}
return draftCopy;
}
public Object createNewInstance() {
return new NamespaceDefinition();
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof NamespaceDefinition)) {
return false;
}
if (this == object) {
return true;
}
final NamespaceDefinition that = ((NamespaceDefinition) object);
{
NamespaceIdentifier lhsNamespaceIdentifier;
lhsNamespaceIdentifier = this.getNamespaceIdentifier();
NamespaceIdentifier rhsNamespaceIdentifier;
rhsNamespaceIdentifier = that.getNamespaceIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "namespaceIdentifier", lhsNamespaceIdentifier), LocatorUtils.property(thatLocator, "namespaceIdentifier", rhsNamespaceIdentifier), lhsNamespaceIdentifier, rhsNamespaceIdentifier)) {
return false;
}
}
{
InstallationProperties lhsInstallationProperties;
lhsInstallationProperties = this.getInstallationProperties();
InstallationProperties rhsInstallationProperties;
rhsInstallationProperties = that.getInstallationProperties();
if (!strategy.equals(LocatorUtils.property(thisLocator, "installationProperties", lhsInstallationProperties), LocatorUtils.property(thatLocator, "installationProperties", rhsInstallationProperties), lhsInstallationProperties, rhsInstallationProperties)) {
return false;
}
}
{
List lhsNamespaceDependencies;
lhsNamespaceDependencies = (((this.namespaceDependencies!= null)&&(!this.namespaceDependencies.isEmpty()))?this.getNamespaceDependencies():null);
List rhsNamespaceDependencies;
rhsNamespaceDependencies = (((that.namespaceDependencies!= null)&&(!that.namespaceDependencies.isEmpty()))?that.getNamespaceDependencies():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "namespaceDependencies", lhsNamespaceDependencies), LocatorUtils.property(thatLocator, "namespaceDependencies", rhsNamespaceDependencies), lhsNamespaceDependencies, rhsNamespaceDependencies)) {
return false;
}
}
{
List lhsParameterOverrides;
lhsParameterOverrides = (((this.parameterOverrides!= null)&&(!this.parameterOverrides.isEmpty()))?this.getParameterOverrides():null);
List rhsParameterOverrides;
rhsParameterOverrides = (((that.parameterOverrides!= null)&&(!that.parameterOverrides.isEmpty()))?that.getParameterOverrides():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "parameterOverrides", lhsParameterOverrides), LocatorUtils.property(thatLocator, "parameterOverrides", rhsParameterOverrides), lhsParameterOverrides, rhsParameterOverrides)) {
return false;
}
}
{
List lhsParameterTypes;
lhsParameterTypes = (((this.parameterTypes!= null)&&(!this.parameterTypes.isEmpty()))?this.getParameterTypes():null);
List rhsParameterTypes;
rhsParameterTypes = (((that.parameterTypes!= null)&&(!that.parameterTypes.isEmpty()))?that.getParameterTypes():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "parameterTypes", lhsParameterTypes), LocatorUtils.property(thatLocator, "parameterTypes", rhsParameterTypes), lhsParameterTypes, rhsParameterTypes)) {
return false;
}
}
{
List lhsParameters;
lhsParameters = (((this.parameters!= null)&&(!this.parameters.isEmpty()))?this.getParameters():null);
List rhsParameters;
rhsParameters = (((that.parameters!= null)&&(!that.parameters.isEmpty()))?that.getParameters():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "parameters", lhsParameters), LocatorUtils.property(thatLocator, "parameters", rhsParameters), lhsParameters, rhsParameters)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}