org.finra.herd.model.api.xml.Job 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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import org.eclipse.persistence.oxm.annotations.XmlCDATA;
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 job complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="job">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="status" type="{}jobStatusEnum" minOccurs="0"/>
* <element name="namespace" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="jobName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="startTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="endTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="currentWorkflowStep" type="{}workflowStep" minOccurs="0"/>
* <element name="completedWorkflowSteps" type="{}workflowSteps" minOccurs="0"/>
* <element name="parameters" type="{}parameters" minOccurs="0"/>
* <element name="activitiJobXml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="workflowErrors" type="{}workflowErrors" minOccurs="0"/>
* <element name="deleteReason" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "job", propOrder = {
})
@XmlRootElement(name = "job")
public class Job implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
@XmlElement(required = true)
protected String id;
@XmlSchemaType(name = "string")
protected JobStatusEnum status;
protected String namespace;
protected String jobName;
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar startTime;
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar endTime;
protected WorkflowStep currentWorkflowStep;
@XmlElementWrapper
@XmlElement(name = "workflowStep")
protected List completedWorkflowSteps;
@XmlElementWrapper
@XmlElement(name = "parameter")
protected List parameters;
@XmlCDATA
protected String activitiJobXml;
@XmlElementWrapper
@XmlElement(name = "workflowError")
protected List workflowErrors;
protected String deleteReason;
/**
* Default no-arg constructor
*
*/
public Job() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public Job(final String id, final JobStatusEnum status, final String namespace, final String jobName, final XMLGregorianCalendar startTime, final XMLGregorianCalendar endTime, final WorkflowStep currentWorkflowStep, final List completedWorkflowSteps, final List parameters, final String activitiJobXml, final List workflowErrors, final String deleteReason) {
this.id = id;
this.status = status;
this.namespace = namespace;
this.jobName = jobName;
this.startTime = startTime;
this.endTime = endTime;
this.currentWorkflowStep = currentWorkflowStep;
this.completedWorkflowSteps = completedWorkflowSteps;
this.parameters = parameters;
this.activitiJobXml = activitiJobXml;
this.workflowErrors = workflowErrors;
this.deleteReason = deleteReason;
}
/**
* 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 status property.
*
* @return
* possible object is
* {@link JobStatusEnum }
*
*/
public JobStatusEnum getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link JobStatusEnum }
*
*/
public void setStatus(JobStatusEnum value) {
this.status = 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 jobName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getJobName() {
return jobName;
}
/**
* Sets the value of the jobName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setJobName(String value) {
this.jobName = value;
}
/**
* Gets the value of the startTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getStartTime() {
return startTime;
}
/**
* Sets the value of the startTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setStartTime(XMLGregorianCalendar value) {
this.startTime = value;
}
/**
* Gets the value of the endTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getEndTime() {
return endTime;
}
/**
* Sets the value of the endTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setEndTime(XMLGregorianCalendar value) {
this.endTime = value;
}
/**
* Gets the value of the currentWorkflowStep property.
*
* @return
* possible object is
* {@link WorkflowStep }
*
*/
public WorkflowStep getCurrentWorkflowStep() {
return currentWorkflowStep;
}
/**
* Sets the value of the currentWorkflowStep property.
*
* @param value
* allowed object is
* {@link WorkflowStep }
*
*/
public void setCurrentWorkflowStep(WorkflowStep value) {
this.currentWorkflowStep = value;
}
/**
* Gets the value of the activitiJobXml property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getActivitiJobXml() {
return activitiJobXml;
}
/**
* Sets the value of the activitiJobXml property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setActivitiJobXml(String value) {
this.activitiJobXml = value;
}
/**
* Gets the value of the deleteReason property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDeleteReason() {
return deleteReason;
}
/**
* Sets the value of the deleteReason property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDeleteReason(String value) {
this.deleteReason = value;
}
public List getCompletedWorkflowSteps() {
return completedWorkflowSteps;
}
public void setCompletedWorkflowSteps(List completedWorkflowSteps) {
this.completedWorkflowSteps = completedWorkflowSteps;
}
public List getParameters() {
return parameters;
}
public void setParameters(List parameters) {
this.parameters = parameters;
}
public List getWorkflowErrors() {
return workflowErrors;
}
public void setWorkflowErrors(List workflowErrors) {
this.workflowErrors = workflowErrors;
}
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));
}
{
JobStatusEnum theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
String theNamespace;
theNamespace = this.getNamespace();
strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null));
}
{
String theJobName;
theJobName = this.getJobName();
strategy.appendField(locator, this, "jobName", buffer, theJobName, (this.jobName!= null));
}
{
XMLGregorianCalendar theStartTime;
theStartTime = this.getStartTime();
strategy.appendField(locator, this, "startTime", buffer, theStartTime, (this.startTime!= null));
}
{
XMLGregorianCalendar theEndTime;
theEndTime = this.getEndTime();
strategy.appendField(locator, this, "endTime", buffer, theEndTime, (this.endTime!= null));
}
{
WorkflowStep theCurrentWorkflowStep;
theCurrentWorkflowStep = this.getCurrentWorkflowStep();
strategy.appendField(locator, this, "currentWorkflowStep", buffer, theCurrentWorkflowStep, (this.currentWorkflowStep!= null));
}
{
List theCompletedWorkflowSteps;
theCompletedWorkflowSteps = ((this.completedWorkflowSteps!= null)?this.getCompletedWorkflowSteps():null);
strategy.appendField(locator, this, "completedWorkflowSteps", buffer, theCompletedWorkflowSteps, (this.completedWorkflowSteps!= null));
}
{
List theParameters;
theParameters = ((this.parameters!= null)?this.getParameters():null);
strategy.appendField(locator, this, "parameters", buffer, theParameters, (this.parameters!= null));
}
{
String theActivitiJobXml;
theActivitiJobXml = this.getActivitiJobXml();
strategy.appendField(locator, this, "activitiJobXml", buffer, theActivitiJobXml, (this.activitiJobXml!= null));
}
{
List theWorkflowErrors;
theWorkflowErrors = ((this.workflowErrors!= null)?this.getWorkflowErrors():null);
strategy.appendField(locator, this, "workflowErrors", buffer, theWorkflowErrors, (this.workflowErrors!= null));
}
{
String theDeleteReason;
theDeleteReason = this.getDeleteReason();
strategy.appendField(locator, this, "deleteReason", buffer, theDeleteReason, (this.deleteReason!= 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 Job that = ((Job) 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;
}
}
{
JobStatusEnum lhsStatus;
lhsStatus = this.getStatus();
JobStatusEnum rhsStatus;
rhsStatus = that.getStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= 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 lhsJobName;
lhsJobName = this.getJobName();
String rhsJobName;
rhsJobName = that.getJobName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "jobName", lhsJobName), LocatorUtils.property(thatLocator, "jobName", rhsJobName), lhsJobName, rhsJobName, (this.jobName!= null), (that.jobName!= null))) {
return false;
}
}
{
XMLGregorianCalendar lhsStartTime;
lhsStartTime = this.getStartTime();
XMLGregorianCalendar rhsStartTime;
rhsStartTime = that.getStartTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "startTime", lhsStartTime), LocatorUtils.property(thatLocator, "startTime", rhsStartTime), lhsStartTime, rhsStartTime, (this.startTime!= null), (that.startTime!= null))) {
return false;
}
}
{
XMLGregorianCalendar lhsEndTime;
lhsEndTime = this.getEndTime();
XMLGregorianCalendar rhsEndTime;
rhsEndTime = that.getEndTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "endTime", lhsEndTime), LocatorUtils.property(thatLocator, "endTime", rhsEndTime), lhsEndTime, rhsEndTime, (this.endTime!= null), (that.endTime!= null))) {
return false;
}
}
{
WorkflowStep lhsCurrentWorkflowStep;
lhsCurrentWorkflowStep = this.getCurrentWorkflowStep();
WorkflowStep rhsCurrentWorkflowStep;
rhsCurrentWorkflowStep = that.getCurrentWorkflowStep();
if (!strategy.equals(LocatorUtils.property(thisLocator, "currentWorkflowStep", lhsCurrentWorkflowStep), LocatorUtils.property(thatLocator, "currentWorkflowStep", rhsCurrentWorkflowStep), lhsCurrentWorkflowStep, rhsCurrentWorkflowStep, (this.currentWorkflowStep!= null), (that.currentWorkflowStep!= null))) {
return false;
}
}
{
List lhsCompletedWorkflowSteps;
lhsCompletedWorkflowSteps = ((this.completedWorkflowSteps!= null)?this.getCompletedWorkflowSteps():null);
List rhsCompletedWorkflowSteps;
rhsCompletedWorkflowSteps = ((that.completedWorkflowSteps!= null)?that.getCompletedWorkflowSteps():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "completedWorkflowSteps", lhsCompletedWorkflowSteps), LocatorUtils.property(thatLocator, "completedWorkflowSteps", rhsCompletedWorkflowSteps), lhsCompletedWorkflowSteps, rhsCompletedWorkflowSteps, (this.completedWorkflowSteps!= null), (that.completedWorkflowSteps!= null))) {
return false;
}
}
{
List lhsParameters;
lhsParameters = ((this.parameters!= null)?this.getParameters():null);
List rhsParameters;
rhsParameters = ((that.parameters!= null)?that.getParameters():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "parameters", lhsParameters), LocatorUtils.property(thatLocator, "parameters", rhsParameters), lhsParameters, rhsParameters, (this.parameters!= null), (that.parameters!= null))) {
return false;
}
}
{
String lhsActivitiJobXml;
lhsActivitiJobXml = this.getActivitiJobXml();
String rhsActivitiJobXml;
rhsActivitiJobXml = that.getActivitiJobXml();
if (!strategy.equals(LocatorUtils.property(thisLocator, "activitiJobXml", lhsActivitiJobXml), LocatorUtils.property(thatLocator, "activitiJobXml", rhsActivitiJobXml), lhsActivitiJobXml, rhsActivitiJobXml, (this.activitiJobXml!= null), (that.activitiJobXml!= null))) {
return false;
}
}
{
List lhsWorkflowErrors;
lhsWorkflowErrors = ((this.workflowErrors!= null)?this.getWorkflowErrors():null);
List rhsWorkflowErrors;
rhsWorkflowErrors = ((that.workflowErrors!= null)?that.getWorkflowErrors():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "workflowErrors", lhsWorkflowErrors), LocatorUtils.property(thatLocator, "workflowErrors", rhsWorkflowErrors), lhsWorkflowErrors, rhsWorkflowErrors, (this.workflowErrors!= null), (that.workflowErrors!= null))) {
return false;
}
}
{
String lhsDeleteReason;
lhsDeleteReason = this.getDeleteReason();
String rhsDeleteReason;
rhsDeleteReason = that.getDeleteReason();
if (!strategy.equals(LocatorUtils.property(thisLocator, "deleteReason", lhsDeleteReason), LocatorUtils.property(thatLocator, "deleteReason", rhsDeleteReason), lhsDeleteReason, rhsDeleteReason, (this.deleteReason!= null), (that.deleteReason!= 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));
}
{
JobStatusEnum theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
String theNamespace;
theNamespace = this.getNamespace();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "namespace", theNamespace), currentHashCode, theNamespace, (this.namespace!= null));
}
{
String theJobName;
theJobName = this.getJobName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "jobName", theJobName), currentHashCode, theJobName, (this.jobName!= null));
}
{
XMLGregorianCalendar theStartTime;
theStartTime = this.getStartTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "startTime", theStartTime), currentHashCode, theStartTime, (this.startTime!= null));
}
{
XMLGregorianCalendar theEndTime;
theEndTime = this.getEndTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endTime", theEndTime), currentHashCode, theEndTime, (this.endTime!= null));
}
{
WorkflowStep theCurrentWorkflowStep;
theCurrentWorkflowStep = this.getCurrentWorkflowStep();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentWorkflowStep", theCurrentWorkflowStep), currentHashCode, theCurrentWorkflowStep, (this.currentWorkflowStep!= null));
}
{
List theCompletedWorkflowSteps;
theCompletedWorkflowSteps = ((this.completedWorkflowSteps!= null)?this.getCompletedWorkflowSteps():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "completedWorkflowSteps", theCompletedWorkflowSteps), currentHashCode, theCompletedWorkflowSteps, (this.completedWorkflowSteps!= null));
}
{
List theParameters;
theParameters = ((this.parameters!= null)?this.getParameters():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parameters", theParameters), currentHashCode, theParameters, (this.parameters!= null));
}
{
String theActivitiJobXml;
theActivitiJobXml = this.getActivitiJobXml();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activitiJobXml", theActivitiJobXml), currentHashCode, theActivitiJobXml, (this.activitiJobXml!= null));
}
{
List theWorkflowErrors;
theWorkflowErrors = ((this.workflowErrors!= null)?this.getWorkflowErrors():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "workflowErrors", theWorkflowErrors), currentHashCode, theWorkflowErrors, (this.workflowErrors!= null));
}
{
String theDeleteReason;
theDeleteReason = this.getDeleteReason();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deleteReason", theDeleteReason), currentHashCode, theDeleteReason, (this.deleteReason!= 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 Job) {
final Job copy = ((Job) 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 statusShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.status!= null));
if (statusShouldBeCopiedAndSet == Boolean.TRUE) {
JobStatusEnum sourceStatus;
sourceStatus = this.getStatus();
JobStatusEnum copyStatus = ((JobStatusEnum) strategy.copy(LocatorUtils.property(locator, "status", sourceStatus), sourceStatus, (this.status!= null)));
copy.setStatus(copyStatus);
} else {
if (statusShouldBeCopiedAndSet == Boolean.FALSE) {
copy.status = 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 jobNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.jobName!= null));
if (jobNameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceJobName;
sourceJobName = this.getJobName();
String copyJobName = ((String) strategy.copy(LocatorUtils.property(locator, "jobName", sourceJobName), sourceJobName, (this.jobName!= null)));
copy.setJobName(copyJobName);
} else {
if (jobNameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.jobName = null;
}
}
}
{
Boolean startTimeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.startTime!= null));
if (startTimeShouldBeCopiedAndSet == Boolean.TRUE) {
XMLGregorianCalendar sourceStartTime;
sourceStartTime = this.getStartTime();
XMLGregorianCalendar copyStartTime = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "startTime", sourceStartTime), sourceStartTime, (this.startTime!= null)));
copy.setStartTime(copyStartTime);
} else {
if (startTimeShouldBeCopiedAndSet == Boolean.FALSE) {
copy.startTime = null;
}
}
}
{
Boolean endTimeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.endTime!= null));
if (endTimeShouldBeCopiedAndSet == Boolean.TRUE) {
XMLGregorianCalendar sourceEndTime;
sourceEndTime = this.getEndTime();
XMLGregorianCalendar copyEndTime = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "endTime", sourceEndTime), sourceEndTime, (this.endTime!= null)));
copy.setEndTime(copyEndTime);
} else {
if (endTimeShouldBeCopiedAndSet == Boolean.FALSE) {
copy.endTime = null;
}
}
}
{
Boolean currentWorkflowStepShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.currentWorkflowStep!= null));
if (currentWorkflowStepShouldBeCopiedAndSet == Boolean.TRUE) {
WorkflowStep sourceCurrentWorkflowStep;
sourceCurrentWorkflowStep = this.getCurrentWorkflowStep();
WorkflowStep copyCurrentWorkflowStep = ((WorkflowStep) strategy.copy(LocatorUtils.property(locator, "currentWorkflowStep", sourceCurrentWorkflowStep), sourceCurrentWorkflowStep, (this.currentWorkflowStep!= null)));
copy.setCurrentWorkflowStep(copyCurrentWorkflowStep);
} else {
if (currentWorkflowStepShouldBeCopiedAndSet == Boolean.FALSE) {
copy.currentWorkflowStep = null;
}
}
}
{
Boolean completedWorkflowStepsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.completedWorkflowSteps!= null));
if (completedWorkflowStepsShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceCompletedWorkflowSteps;
sourceCompletedWorkflowSteps = ((this.completedWorkflowSteps!= null)?this.getCompletedWorkflowSteps():null);
@SuppressWarnings("unchecked")
List copyCompletedWorkflowSteps = ((List ) strategy.copy(LocatorUtils.property(locator, "completedWorkflowSteps", sourceCompletedWorkflowSteps), sourceCompletedWorkflowSteps, (this.completedWorkflowSteps!= null)));
copy.completedWorkflowSteps = null;
if (copyCompletedWorkflowSteps!= null) {
copy.setCompletedWorkflowSteps(copyCompletedWorkflowSteps);
}
} else {
if (completedWorkflowStepsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.completedWorkflowSteps = null;
}
}
}
{
Boolean parametersShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.parameters!= null));
if (parametersShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceParameters;
sourceParameters = ((this.parameters!= null)?this.getParameters():null);
@SuppressWarnings("unchecked")
List copyParameters = ((List ) strategy.copy(LocatorUtils.property(locator, "parameters", sourceParameters), sourceParameters, (this.parameters!= null)));
copy.parameters = null;
if (copyParameters!= null) {
copy.setParameters(copyParameters);
}
} else {
if (parametersShouldBeCopiedAndSet == Boolean.FALSE) {
copy.parameters = null;
}
}
}
{
Boolean activitiJobXmlShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.activitiJobXml!= null));
if (activitiJobXmlShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceActivitiJobXml;
sourceActivitiJobXml = this.getActivitiJobXml();
String copyActivitiJobXml = ((String) strategy.copy(LocatorUtils.property(locator, "activitiJobXml", sourceActivitiJobXml), sourceActivitiJobXml, (this.activitiJobXml!= null)));
copy.setActivitiJobXml(copyActivitiJobXml);
} else {
if (activitiJobXmlShouldBeCopiedAndSet == Boolean.FALSE) {
copy.activitiJobXml = null;
}
}
}
{
Boolean workflowErrorsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.workflowErrors!= null));
if (workflowErrorsShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceWorkflowErrors;
sourceWorkflowErrors = ((this.workflowErrors!= null)?this.getWorkflowErrors():null);
@SuppressWarnings("unchecked")
List copyWorkflowErrors = ((List ) strategy.copy(LocatorUtils.property(locator, "workflowErrors", sourceWorkflowErrors), sourceWorkflowErrors, (this.workflowErrors!= null)));
copy.workflowErrors = null;
if (copyWorkflowErrors!= null) {
copy.setWorkflowErrors(copyWorkflowErrors);
}
} else {
if (workflowErrorsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.workflowErrors = null;
}
}
}
{
Boolean deleteReasonShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.deleteReason!= null));
if (deleteReasonShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceDeleteReason;
sourceDeleteReason = this.getDeleteReason();
String copyDeleteReason = ((String) strategy.copy(LocatorUtils.property(locator, "deleteReason", sourceDeleteReason), sourceDeleteReason, (this.deleteReason!= null)));
copy.setDeleteReason(copyDeleteReason);
} else {
if (deleteReasonShouldBeCopiedAndSet == Boolean.FALSE) {
copy.deleteReason = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Job();
}
}