All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rapture.common.dp.Step 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.Map;
import java.util.ArrayList;
import java.util.HashMap;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* 
**/
@SuppressWarnings("all")
public class Step  implements RaptureTransferObject, Debugable  {
    /*
    *  Start of field 'name' (String) 
    */
    private String name;

    @JsonProperty("name")
    public String getName() {
       return name;
    }

    @JsonProperty("name")
    public void setName(String name) {
       this.name =  name ;
    }
    /*
    *  end of field 'name' (String) 
    */


    /*
    *  Start of field 'description' (String) 
    */
    private String description;

    @JsonProperty("description")
    public String getDescription() {
       return description;
    }

    @JsonProperty("description")
    public void setDescription(String description) {
       this.description =  description ;
    }
    /*
    *  end of field 'description' (String) 
    */


    /*
    *  Start of field 'executable' (String) 
    */
    private String executable;

    @JsonProperty("executable")
    public String getExecutable() {
       return executable;
    }

    @JsonProperty("executable")
    public void setExecutable(String executable) {
       this.executable =  executable ;
    }
    /*
    *  end of field 'executable' (String) 
    */


    /*
    *  Start of field 'view' (Map) 
    */
    private Map view = new HashMap();

    @JsonProperty("view")
    public Map getView() {
       return view;
    }

    @JsonProperty("view")
    public void setView(Map view) {
       this.view =  view ;
    }
    /*
    *  end of field 'view' (Map) 
    */


    /*
    *  Start of field 'transitions' (List) 
    */
    private List transitions = new ArrayList();

    @JsonProperty("transitions")
    public List getTransitions() {
       return transitions;
    }

    @JsonProperty("transitions")
    public void setTransitions(List transitions) {
       this.transitions =  transitions ;
    }
    /*
    *  end of field 'transitions' (List) 
    */


    /*
    *  Start of field 'categoryOverride' (String) 
    */
    private String categoryOverride;

    @JsonProperty("categoryOverride")
    public String getCategoryOverride() {
       return categoryOverride;
    }

    @JsonProperty("categoryOverride")
    public void setCategoryOverride(String categoryOverride) {
       this.categoryOverride =  categoryOverride ;
    }
    /*
    *  end of field 'categoryOverride' (String) 
    */


    /*
    *  Start of field 'softTimeout' (Integer) 
    */
    private Integer softTimeout = -1;

    @JsonProperty("softTimeout")
    public Integer getSoftTimeout() {
       return softTimeout;
    }

    @JsonProperty("softTimeout")
    public void setSoftTimeout(Integer softTimeout) {
       this.softTimeout =  softTimeout ;
    }
    /*
    *  end of field 'softTimeout' (Integer) 
    */


    /*
    *  Start of field 'jarUriDependencies' (List) 
    */
    private List jarUriDependencies = new ArrayList<>();

    @JsonProperty("jarUriDependencies")
    public List getJarUriDependencies() {
       return jarUriDependencies;
    }

    @JsonProperty("jarUriDependencies")
    public void setJarUriDependencies(List jarUriDependencies) {
       this.jarUriDependencies =  jarUriDependencies ;
    }
    /*
    *  end of field 'jarUriDependencies' (List) 
    */


   

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((view == null) ? 0 : view.hashCode());
        result = prime * result + ((categoryOverride == null) ? 0 : categoryOverride.hashCode());
        result = prime * result + ((name == null) ? 0 : name.hashCode());
        result = prime * result + ((description == null) ? 0 : description.hashCode());
        result = prime * result + ((transitions == null) ? 0 : transitions.hashCode());
        result = prime * result + ((jarUriDependencies == null) ? 0 : jarUriDependencies.hashCode());
        result = prime * result + ((executable == null) ? 0 : executable.hashCode());
        result = prime * result + ((softTimeout == null) ? 0 : softTimeout.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;
        
        Step other = (Step) obj;

        if (view == null) {
            if (other.view != null) {
                return false;
            }
        } else if (!view.equals(other.view)) {
            return false;
        }

        if (categoryOverride == null) {
            if (other.categoryOverride != null) {
                return false;
            }
        } else if (!categoryOverride.equals(other.categoryOverride)) {
            return false;
        }

        if (name == null) {
            if (other.name != null) {
                return false;
            }
        } else if (!name.equals(other.name)) {
            return false;
        }

        if (description == null) {
            if (other.description != null) {
                return false;
            }
        } else if (!description.equals(other.description)) {
            return false;
        }

        if (transitions == null) {
            if (other.transitions != null) {
                return false;
            }
        } else if (!transitions.equals(other.transitions)) {
            return false;
        }

        if (jarUriDependencies == null) {
            if (other.jarUriDependencies != null) {
                return false;
            }
        } else if (!jarUriDependencies.equals(other.jarUriDependencies)) {
            return false;
        }

        if (executable == null) {
            if (other.executable != null) {
                return false;
            }
        } else if (!executable.equals(other.executable)) {
            return false;
        }

        if (softTimeout == null) {
            if (other.softTimeout != null) {
                return false;
            }
        } else if (!softTimeout.equals(other.softTimeout)) {
            return false;
        }

           
        return true;
    }


    /**/
    public String debug() {
        StringBuilder sb = new StringBuilder();
            {
                sb.append(" view= ");
                Object o = view;
                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(" categoryOverride= ");
                Object o = categoryOverride;
                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(" name= ");
                Object o = name;
                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(" description= ");
                Object o = description;
                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(" transitions= ");
                Object o = transitions;
                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(" jarUriDependencies= ");
                Object o = jarUriDependencies;
                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(" executable= ");
                Object o = executable;
                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(" softTimeout= ");
                Object o = softTimeout;
                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