org.finra.herd.model.api.xml.EmrClusterDefinitionApplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of herd-model-api-15 Show documentation
Show all versions of herd-model-api-15 Show documentation
This project contains the model API classes compiled for JDK 1.5 and above. This project depends on herd-model-api and should not contain any
actual files.
package org.finra.herd.model.api.xml;
import java.io.Serializable;
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.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for emrClusterDefinitionApplication complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="emrClusterDefinitionApplication">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="args" type="{}emrClusterDefinitionApplicationArguments" minOccurs="0"/>
* <element name="additionalInfoList" type="{}emrClusterDefinitionApplicationAdditionalInfoList" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "emrClusterDefinitionApplication", propOrder = {
"name",
"version",
"args",
"additionalInfoList"
})
public class EmrClusterDefinitionApplication implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
protected String name;
protected String version;
@XmlElementWrapper
@XmlElement(name = "arg")
protected List args;
@XmlElementWrapper
@XmlElement(name = "additionalInfo")
protected List additionalInfoList;
/**
* Default no-arg constructor
*
*/
public EmrClusterDefinitionApplication() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public EmrClusterDefinitionApplication(final String name, final String version, final List args, final List additionalInfoList) {
this.name = name;
this.version = version;
this.args = args;
this.additionalInfoList = additionalInfoList;
}
/**
* 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 version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = value;
}
public List getArgs() {
return args;
}
public void setArgs(List args) {
this.args = args;
}
public List getAdditionalInfoList() {
return additionalInfoList;
}
public void setAdditionalInfoList(List additionalInfoList) {
this.additionalInfoList = additionalInfoList;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
String theName;
theName = this.getName();
strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null));
}
{
String theVersion;
theVersion = this.getVersion();
strategy.appendField(locator, this, "version", buffer, theVersion, (this.version!= null));
}
{
List theArgs;
theArgs = ((this.args!= null)?this.getArgs():null);
strategy.appendField(locator, this, "args", buffer, theArgs, (this.args!= null));
}
{
List theAdditionalInfoList;
theAdditionalInfoList = ((this.additionalInfoList!= null)?this.getAdditionalInfoList():null);
strategy.appendField(locator, this, "additionalInfoList", buffer, theAdditionalInfoList, (this.additionalInfoList!= null));
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final EmrClusterDefinitionApplication that = ((EmrClusterDefinitionApplication) object);
{
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, (this.name!= null), (that.name!= null))) {
return false;
}
}
{
String lhsVersion;
lhsVersion = this.getVersion();
String rhsVersion;
rhsVersion = that.getVersion();
if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion, (this.version!= null), (that.version!= null))) {
return false;
}
}
{
List lhsArgs;
lhsArgs = ((this.args!= null)?this.getArgs():null);
List rhsArgs;
rhsArgs = ((that.args!= null)?that.getArgs():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "args", lhsArgs), LocatorUtils.property(thatLocator, "args", rhsArgs), lhsArgs, rhsArgs, (this.args!= null), (that.args!= null))) {
return false;
}
}
{
List lhsAdditionalInfoList;
lhsAdditionalInfoList = ((this.additionalInfoList!= null)?this.getAdditionalInfoList():null);
List rhsAdditionalInfoList;
rhsAdditionalInfoList = ((that.additionalInfoList!= null)?that.getAdditionalInfoList():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "additionalInfoList", lhsAdditionalInfoList), LocatorUtils.property(thatLocator, "additionalInfoList", rhsAdditionalInfoList), lhsAdditionalInfoList, rhsAdditionalInfoList, (this.additionalInfoList!= null), (that.additionalInfoList!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
String theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null));
}
{
String theVersion;
theVersion = this.getVersion();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion, (this.version!= null));
}
{
List theArgs;
theArgs = ((this.args!= null)?this.getArgs():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "args", theArgs), currentHashCode, theArgs, (this.args!= null));
}
{
List theAdditionalInfoList;
theAdditionalInfoList = ((this.additionalInfoList!= null)?this.getAdditionalInfoList():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "additionalInfoList", theAdditionalInfoList), currentHashCode, theAdditionalInfoList, (this.additionalInfoList!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof EmrClusterDefinitionApplication) {
final EmrClusterDefinitionApplication copy = ((EmrClusterDefinitionApplication) draftCopy);
{
Boolean nameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.name!= null));
if (nameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceName;
sourceName = this.getName();
String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName, (this.name!= null)));
copy.setName(copyName);
} else {
if (nameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.name = null;
}
}
}
{
Boolean versionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.version!= null));
if (versionShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceVersion;
sourceVersion = this.getVersion();
String copyVersion = ((String) strategy.copy(LocatorUtils.property(locator, "version", sourceVersion), sourceVersion, (this.version!= null)));
copy.setVersion(copyVersion);
} else {
if (versionShouldBeCopiedAndSet == Boolean.FALSE) {
copy.version = null;
}
}
}
{
Boolean argsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.args!= null));
if (argsShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceArgs;
sourceArgs = ((this.args!= null)?this.getArgs():null);
@SuppressWarnings("unchecked")
List copyArgs = ((List ) strategy.copy(LocatorUtils.property(locator, "args", sourceArgs), sourceArgs, (this.args!= null)));
copy.args = null;
if (copyArgs!= null) {
copy.setArgs(copyArgs);
}
} else {
if (argsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.args = null;
}
}
}
{
Boolean additionalInfoListShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.additionalInfoList!= null));
if (additionalInfoListShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceAdditionalInfoList;
sourceAdditionalInfoList = ((this.additionalInfoList!= null)?this.getAdditionalInfoList():null);
@SuppressWarnings("unchecked")
List copyAdditionalInfoList = ((List ) strategy.copy(LocatorUtils.property(locator, "additionalInfoList", sourceAdditionalInfoList), sourceAdditionalInfoList, (this.additionalInfoList!= null)));
copy.additionalInfoList = null;
if (copyAdditionalInfoList!= null) {
copy.setAdditionalInfoList(copyAdditionalInfoList);
}
} else {
if (additionalInfoListShouldBeCopiedAndSet == Boolean.FALSE) {
copy.additionalInfoList = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new EmrClusterDefinitionApplication();
}
}