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

rapture.common.dp.WorkflowBoxLayout 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 com.fasterxml.jackson.annotation.JsonProperty;

/**
* 
**/
@SuppressWarnings("all")
public class WorkflowBoxLayout  implements RaptureTransferObject, Debugable  {
    /*
    *  Start of field 'gx' (Integer) 
    */
    private Integer gx;

    @JsonProperty("gx")
    public Integer getGx() {
       return gx;
    }

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


    /*
    *  Start of field 'gy' (Integer) 
    */
    private Integer gy;

    @JsonProperty("gy")
    public Integer getGy() {
       return gy;
    }

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


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

    @JsonProperty("kind")
    public String getKind() {
       return kind;
    }

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


    /*
    *  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 'id' (String) 
    */
    private String id;

    @JsonProperty("id")
    public String getId() {
       return id;
    }

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


    /*
    *  Start of field 'offsetX' (Integer) 
    */
    private Integer offsetX;

    @JsonProperty("offsetX")
    public Integer getOffsetX() {
       return offsetX;
    }

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


    /*
    *  Start of field 'offsetY' (Integer) 
    */
    private Integer offsetY;

    @JsonProperty("offsetY")
    public Integer getOffsetY() {
       return offsetY;
    }

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


   

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((offsetX == null) ? 0 : offsetX.hashCode());
        result = prime * result + ((gx == null) ? 0 : gx.hashCode());
        result = prime * result + ((gy == null) ? 0 : gy.hashCode());
        result = prime * result + ((offsetY == null) ? 0 : offsetY.hashCode());
        result = prime * result + ((kind == null) ? 0 : kind.hashCode());
        result = prime * result + ((name == null) ? 0 : name.hashCode());
        result = prime * result + ((id == null) ? 0 : id.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;
        
        WorkflowBoxLayout other = (WorkflowBoxLayout) obj;

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

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

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

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

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

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

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

           
        return true;
    }


    /**/
    public String debug() {
        StringBuilder sb = new StringBuilder();
            {
                sb.append(" offsetX= ");
                Object o = offsetX;
                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(" gx= ");
                Object o = gx;
                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(" gy= ");
                Object o = gy;
                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(" offsetY= ");
                Object o = offsetY;
                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(" kind= ");
                Object o = kind;
                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(" id= ");
                Object o = id;
                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