rapture.common.dp.WorkOrderDebug Maven / Gradle / Ivy
/**
* The MIT License (MIT)
*
* Copyright (C) 2011-2016 Incapture Technologies LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* This file is autogenerated and any changes will be overwritten.
*/
package rapture.common.dp;
import rapture.common.*;
import rapture.object.Searchable;
import rapture.object.Storable;
import rapture.object.Debugable;
import rapture.common.version.ApiVersion;
import rapture.common.impl.jackson.JacksonUtil;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class WorkOrderDebug implements RaptureTransferObject, Debugable {
/*
* Start of field 'order' (WorkOrder)
*/
private WorkOrder order;
@JsonProperty("order")
public WorkOrder getOrder() {
return order;
}
@JsonProperty("order")
public void setOrder(WorkOrder order) {
this.order = order ;
}
/*
* end of field 'order' (WorkOrder)
*/
/*
* Start of field 'workerDebugs' (List)
*/
private List workerDebugs = new ArrayList();
@JsonProperty("workerDebugs")
public List getWorkerDebugs() {
return workerDebugs;
}
@JsonProperty("workerDebugs")
public void setWorkerDebugs(List workerDebugs) {
this.workerDebugs = workerDebugs ;
}
/*
* end of field 'workerDebugs' (List)
*/
/*
* Start of field 'passedArguments' (List)
*/
private List passedArguments = new ArrayList();
@JsonProperty("passedArguments")
public List getPassedArguments() {
return passedArguments;
}
@JsonProperty("passedArguments")
public void setPassedArguments(List passedArguments) {
this.passedArguments = passedArguments ;
}
/*
* end of field 'passedArguments' (List)
*/
/*
* Start of field 'context' (ExecutionContext)
*/
private ExecutionContext context;
@JsonProperty("context")
public ExecutionContext getContext() {
return context;
}
@JsonProperty("context")
public void setContext(ExecutionContext context) {
this.context = context ;
}
/*
* end of field 'context' (ExecutionContext)
*/
/*
* Start of field 'logURI' (String)
*/
private String logURI;
@JsonProperty("logURI")
public String getLogURI() {
return logURI;
}
@JsonProperty("logURI")
public void setLogURI(String logURI) {
this.logURI = logURI ;
}
/*
* end of field 'logURI' (String)
*/
/*
* Start of field 'argsHashValue' (String)
*/
private String argsHashValue;
@JsonProperty("argsHashValue")
public String getArgsHashValue() {
return argsHashValue;
}
@JsonProperty("argsHashValue")
public void setArgsHashValue(String argsHashValue) {
this.argsHashValue = argsHashValue ;
}
/*
* end of field 'argsHashValue' (String)
*/
/*
* Start of field 'parentJobURI' (String)
*/
private String parentJobURI;
@JsonProperty("parentJobURI")
public String getParentJobURI() {
return parentJobURI;
}
@JsonProperty("parentJobURI")
public void setParentJobURI(String parentJobURI) {
this.parentJobURI = parentJobURI ;
}
/*
* end of field 'parentJobURI' (String)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((parentJobURI == null) ? 0 : parentJobURI.hashCode());
result = prime * result + ((argsHashValue == null) ? 0 : argsHashValue.hashCode());
result = prime * result + ((context == null) ? 0 : context.hashCode());
result = prime * result + ((passedArguments == null) ? 0 : passedArguments.hashCode());
result = prime * result + ((workerDebugs == null) ? 0 : workerDebugs.hashCode());
result = prime * result + ((order == null) ? 0 : order.hashCode());
result = prime * result + ((logURI == null) ? 0 : logURI.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
WorkOrderDebug other = (WorkOrderDebug) obj;
if (parentJobURI == null) {
if (other.parentJobURI != null) {
return false;
}
} else if (!parentJobURI.equals(other.parentJobURI)) {
return false;
}
if (argsHashValue == null) {
if (other.argsHashValue != null) {
return false;
}
} else if (!argsHashValue.equals(other.argsHashValue)) {
return false;
}
if (context == null) {
if (other.context != null) {
return false;
}
} else if (!context.equals(other.context)) {
return false;
}
if (passedArguments == null) {
if (other.passedArguments != null) {
return false;
}
} else if (!passedArguments.equals(other.passedArguments)) {
return false;
}
if (workerDebugs == null) {
if (other.workerDebugs != null) {
return false;
}
} else if (!workerDebugs.equals(other.workerDebugs)) {
return false;
}
if (order == null) {
if (other.order != null) {
return false;
}
} else if (!order.equals(other.order)) {
return false;
}
if (logURI == null) {
if (other.logURI != null) {
return false;
}
} else if (!logURI.equals(other.logURI)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" parentJobURI= ");
Object o = parentJobURI;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" argsHashValue= ");
Object o = argsHashValue;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" context= ");
Object o = context;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" passedArguments= ");
Object o = passedArguments;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" workerDebugs= ");
Object o = workerDebugs;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" order= ");
Object o = order;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" logURI= ");
Object o = logURI;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
return sb.append("\n").toString();
}
@Override
public String toString() {
return JacksonUtil.jsonFromObject(this);
}
private ApiVersion _raptureVersion;
@JsonProperty("_raptureVersion")
public ApiVersion get_raptureVersion() {
return _raptureVersion;
}
@JsonProperty("_raptureVersion")
public void set_raptureVersion(ApiVersion _raptureVersion) {
this._raptureVersion = _raptureVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy