org.finra.herd.model.api.xml.EmrPigStep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of herd-model-api Show documentation
Show all versions of herd-model-api Show documentation
This project contains the model API classes. This contains the herd XSD and generates Java POJO's from them. These classes are used for incoming
and outgoing calls into the system (e.g. via REST).
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.XmlRootElement;
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 emrPigStep complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="emrPigStep">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="namespace" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="emrClusterDefinitionName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="emrClusterName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="stepName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="scriptLocation" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="scriptArguments" type="{}scriptArguments" minOccurs="0"/>
* <element name="continueOnError" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="emrClusterId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "emrPigStep", propOrder = {
})
@XmlRootElement(name = "emrPigStep")
public class EmrPigStep implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
@XmlElement(required = true)
protected String id;
@XmlElement(required = true)
protected String namespace;
@XmlElement(required = true)
protected String emrClusterDefinitionName;
@XmlElement(required = true)
protected String emrClusterName;
@XmlElement(required = true)
protected String stepName;
@XmlElement(required = true)
protected String scriptLocation;
@XmlElementWrapper
@XmlElement(name = "argument")
protected List scriptArguments;
protected Boolean continueOnError;
protected String emrClusterId;
/**
* Default no-arg constructor
*
*/
public EmrPigStep() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public EmrPigStep(final String id, final String namespace, final String emrClusterDefinitionName, final String emrClusterName, final String stepName, final String scriptLocation, final List scriptArguments, final Boolean continueOnError, final String emrClusterId) {
this.id = id;
this.namespace = namespace;
this.emrClusterDefinitionName = emrClusterDefinitionName;
this.emrClusterName = emrClusterName;
this.stepName = stepName;
this.scriptLocation = scriptLocation;
this.scriptArguments = scriptArguments;
this.continueOnError = continueOnError;
this.emrClusterId = emrClusterId;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the namespace property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNamespace() {
return namespace;
}
/**
* Sets the value of the namespace property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNamespace(String value) {
this.namespace = value;
}
/**
* Gets the value of the emrClusterDefinitionName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmrClusterDefinitionName() {
return emrClusterDefinitionName;
}
/**
* Sets the value of the emrClusterDefinitionName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmrClusterDefinitionName(String value) {
this.emrClusterDefinitionName = value;
}
/**
* Gets the value of the emrClusterName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmrClusterName() {
return emrClusterName;
}
/**
* Sets the value of the emrClusterName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmrClusterName(String value) {
this.emrClusterName = value;
}
/**
* Gets the value of the stepName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStepName() {
return stepName;
}
/**
* Sets the value of the stepName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStepName(String value) {
this.stepName = value;
}
/**
* Gets the value of the scriptLocation property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getScriptLocation() {
return scriptLocation;
}
/**
* Sets the value of the scriptLocation property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setScriptLocation(String value) {
this.scriptLocation = value;
}
/**
* Gets the value of the continueOnError property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isContinueOnError() {
return continueOnError;
}
/**
* Sets the value of the continueOnError property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setContinueOnError(Boolean value) {
this.continueOnError = value;
}
/**
* Gets the value of the emrClusterId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmrClusterId() {
return emrClusterId;
}
/**
* Sets the value of the emrClusterId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmrClusterId(String value) {
this.emrClusterId = value;
}
public List getScriptArguments() {
return scriptArguments;
}
public void setScriptArguments(List scriptArguments) {
this.scriptArguments = scriptArguments;
}
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 theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
}
{
String theNamespace;
theNamespace = this.getNamespace();
strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null));
}
{
String theEmrClusterDefinitionName;
theEmrClusterDefinitionName = this.getEmrClusterDefinitionName();
strategy.appendField(locator, this, "emrClusterDefinitionName", buffer, theEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null));
}
{
String theEmrClusterName;
theEmrClusterName = this.getEmrClusterName();
strategy.appendField(locator, this, "emrClusterName", buffer, theEmrClusterName, (this.emrClusterName!= null));
}
{
String theStepName;
theStepName = this.getStepName();
strategy.appendField(locator, this, "stepName", buffer, theStepName, (this.stepName!= null));
}
{
String theScriptLocation;
theScriptLocation = this.getScriptLocation();
strategy.appendField(locator, this, "scriptLocation", buffer, theScriptLocation, (this.scriptLocation!= null));
}
{
List theScriptArguments;
theScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null);
strategy.appendField(locator, this, "scriptArguments", buffer, theScriptArguments, (this.scriptArguments!= null));
}
{
Boolean theContinueOnError;
theContinueOnError = this.isContinueOnError();
strategy.appendField(locator, this, "continueOnError", buffer, theContinueOnError, (this.continueOnError!= null));
}
{
String theEmrClusterId;
theEmrClusterId = this.getEmrClusterId();
strategy.appendField(locator, this, "emrClusterId", buffer, theEmrClusterId, (this.emrClusterId!= 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 EmrPigStep that = ((EmrPigStep) object);
{
String lhsId;
lhsId = this.getId();
String rhsId;
rhsId = that.getId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) {
return false;
}
}
{
String lhsNamespace;
lhsNamespace = this.getNamespace();
String rhsNamespace;
rhsNamespace = that.getNamespace();
if (!strategy.equals(LocatorUtils.property(thisLocator, "namespace", lhsNamespace), LocatorUtils.property(thatLocator, "namespace", rhsNamespace), lhsNamespace, rhsNamespace, (this.namespace!= null), (that.namespace!= null))) {
return false;
}
}
{
String lhsEmrClusterDefinitionName;
lhsEmrClusterDefinitionName = this.getEmrClusterDefinitionName();
String rhsEmrClusterDefinitionName;
rhsEmrClusterDefinitionName = that.getEmrClusterDefinitionName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterDefinitionName", lhsEmrClusterDefinitionName), LocatorUtils.property(thatLocator, "emrClusterDefinitionName", rhsEmrClusterDefinitionName), lhsEmrClusterDefinitionName, rhsEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null), (that.emrClusterDefinitionName!= null))) {
return false;
}
}
{
String lhsEmrClusterName;
lhsEmrClusterName = this.getEmrClusterName();
String rhsEmrClusterName;
rhsEmrClusterName = that.getEmrClusterName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterName", lhsEmrClusterName), LocatorUtils.property(thatLocator, "emrClusterName", rhsEmrClusterName), lhsEmrClusterName, rhsEmrClusterName, (this.emrClusterName!= null), (that.emrClusterName!= null))) {
return false;
}
}
{
String lhsStepName;
lhsStepName = this.getStepName();
String rhsStepName;
rhsStepName = that.getStepName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "stepName", lhsStepName), LocatorUtils.property(thatLocator, "stepName", rhsStepName), lhsStepName, rhsStepName, (this.stepName!= null), (that.stepName!= null))) {
return false;
}
}
{
String lhsScriptLocation;
lhsScriptLocation = this.getScriptLocation();
String rhsScriptLocation;
rhsScriptLocation = that.getScriptLocation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "scriptLocation", lhsScriptLocation), LocatorUtils.property(thatLocator, "scriptLocation", rhsScriptLocation), lhsScriptLocation, rhsScriptLocation, (this.scriptLocation!= null), (that.scriptLocation!= null))) {
return false;
}
}
{
List lhsScriptArguments;
lhsScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null);
List rhsScriptArguments;
rhsScriptArguments = ((that.scriptArguments!= null)?that.getScriptArguments():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "scriptArguments", lhsScriptArguments), LocatorUtils.property(thatLocator, "scriptArguments", rhsScriptArguments), lhsScriptArguments, rhsScriptArguments, (this.scriptArguments!= null), (that.scriptArguments!= null))) {
return false;
}
}
{
Boolean lhsContinueOnError;
lhsContinueOnError = this.isContinueOnError();
Boolean rhsContinueOnError;
rhsContinueOnError = that.isContinueOnError();
if (!strategy.equals(LocatorUtils.property(thisLocator, "continueOnError", lhsContinueOnError), LocatorUtils.property(thatLocator, "continueOnError", rhsContinueOnError), lhsContinueOnError, rhsContinueOnError, (this.continueOnError!= null), (that.continueOnError!= null))) {
return false;
}
}
{
String lhsEmrClusterId;
lhsEmrClusterId = this.getEmrClusterId();
String rhsEmrClusterId;
rhsEmrClusterId = that.getEmrClusterId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterId", lhsEmrClusterId), LocatorUtils.property(thatLocator, "emrClusterId", rhsEmrClusterId), lhsEmrClusterId, rhsEmrClusterId, (this.emrClusterId!= null), (that.emrClusterId!= 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 theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
}
{
String theNamespace;
theNamespace = this.getNamespace();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "namespace", theNamespace), currentHashCode, theNamespace, (this.namespace!= null));
}
{
String theEmrClusterDefinitionName;
theEmrClusterDefinitionName = this.getEmrClusterDefinitionName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterDefinitionName", theEmrClusterDefinitionName), currentHashCode, theEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null));
}
{
String theEmrClusterName;
theEmrClusterName = this.getEmrClusterName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterName", theEmrClusterName), currentHashCode, theEmrClusterName, (this.emrClusterName!= null));
}
{
String theStepName;
theStepName = this.getStepName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stepName", theStepName), currentHashCode, theStepName, (this.stepName!= null));
}
{
String theScriptLocation;
theScriptLocation = this.getScriptLocation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scriptLocation", theScriptLocation), currentHashCode, theScriptLocation, (this.scriptLocation!= null));
}
{
List theScriptArguments;
theScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scriptArguments", theScriptArguments), currentHashCode, theScriptArguments, (this.scriptArguments!= null));
}
{
Boolean theContinueOnError;
theContinueOnError = this.isContinueOnError();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "continueOnError", theContinueOnError), currentHashCode, theContinueOnError, (this.continueOnError!= null));
}
{
String theEmrClusterId;
theEmrClusterId = this.getEmrClusterId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterId", theEmrClusterId), currentHashCode, theEmrClusterId, (this.emrClusterId!= 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 EmrPigStep) {
final EmrPigStep copy = ((EmrPigStep) draftCopy);
{
Boolean idShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.id!= null));
if (idShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceId;
sourceId = this.getId();
String copyId = ((String) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null)));
copy.setId(copyId);
} else {
if (idShouldBeCopiedAndSet == Boolean.FALSE) {
copy.id = null;
}
}
}
{
Boolean namespaceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.namespace!= null));
if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceNamespace;
sourceNamespace = this.getNamespace();
String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null)));
copy.setNamespace(copyNamespace);
} else {
if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) {
copy.namespace = null;
}
}
}
{
Boolean emrClusterDefinitionNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.emrClusterDefinitionName!= null));
if (emrClusterDefinitionNameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceEmrClusterDefinitionName;
sourceEmrClusterDefinitionName = this.getEmrClusterDefinitionName();
String copyEmrClusterDefinitionName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterDefinitionName", sourceEmrClusterDefinitionName), sourceEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null)));
copy.setEmrClusterDefinitionName(copyEmrClusterDefinitionName);
} else {
if (emrClusterDefinitionNameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.emrClusterDefinitionName = null;
}
}
}
{
Boolean emrClusterNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.emrClusterName!= null));
if (emrClusterNameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceEmrClusterName;
sourceEmrClusterName = this.getEmrClusterName();
String copyEmrClusterName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterName", sourceEmrClusterName), sourceEmrClusterName, (this.emrClusterName!= null)));
copy.setEmrClusterName(copyEmrClusterName);
} else {
if (emrClusterNameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.emrClusterName = null;
}
}
}
{
Boolean stepNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.stepName!= null));
if (stepNameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceStepName;
sourceStepName = this.getStepName();
String copyStepName = ((String) strategy.copy(LocatorUtils.property(locator, "stepName", sourceStepName), sourceStepName, (this.stepName!= null)));
copy.setStepName(copyStepName);
} else {
if (stepNameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.stepName = null;
}
}
}
{
Boolean scriptLocationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.scriptLocation!= null));
if (scriptLocationShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceScriptLocation;
sourceScriptLocation = this.getScriptLocation();
String copyScriptLocation = ((String) strategy.copy(LocatorUtils.property(locator, "scriptLocation", sourceScriptLocation), sourceScriptLocation, (this.scriptLocation!= null)));
copy.setScriptLocation(copyScriptLocation);
} else {
if (scriptLocationShouldBeCopiedAndSet == Boolean.FALSE) {
copy.scriptLocation = null;
}
}
}
{
Boolean scriptArgumentsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.scriptArguments!= null));
if (scriptArgumentsShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceScriptArguments;
sourceScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null);
@SuppressWarnings("unchecked")
List copyScriptArguments = ((List ) strategy.copy(LocatorUtils.property(locator, "scriptArguments", sourceScriptArguments), sourceScriptArguments, (this.scriptArguments!= null)));
copy.scriptArguments = null;
if (copyScriptArguments!= null) {
copy.setScriptArguments(copyScriptArguments);
}
} else {
if (scriptArgumentsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.scriptArguments = null;
}
}
}
{
Boolean continueOnErrorShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.continueOnError!= null));
if (continueOnErrorShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceContinueOnError;
sourceContinueOnError = this.isContinueOnError();
Boolean copyContinueOnError = ((Boolean) strategy.copy(LocatorUtils.property(locator, "continueOnError", sourceContinueOnError), sourceContinueOnError, (this.continueOnError!= null)));
copy.setContinueOnError(copyContinueOnError);
} else {
if (continueOnErrorShouldBeCopiedAndSet == Boolean.FALSE) {
copy.continueOnError = null;
}
}
}
{
Boolean emrClusterIdShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.emrClusterId!= null));
if (emrClusterIdShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceEmrClusterId;
sourceEmrClusterId = this.getEmrClusterId();
String copyEmrClusterId = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterId", sourceEmrClusterId), sourceEmrClusterId, (this.emrClusterId!= null)));
copy.setEmrClusterId(copyEmrClusterId);
} else {
if (emrClusterIdShouldBeCopiedAndSet == Boolean.FALSE) {
copy.emrClusterId = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new EmrPigStep();
}
}