com.ppcxy.common.extend.dto.ZTree.java Source code

Java tutorial

Introduction

Here is the source code for com.ppcxy.common.extend.dto.ZTree.java

Source

/**
 * Copyright (c) 2005-2012 https://www.tx.com
 * <p/>
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.ppcxy.common.extend.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * ztree
 * @param <ID>
 */
public class ZTree<ID extends Serializable> implements Serializable {
    private ID id;
    private ID pId;
    private String name;
    private String iconSkin;
    private boolean open;
    private boolean root;
    private boolean isParent;
    private boolean nocheck = false;

    public ID getId() {
        return id;
    }

    public void setId(ID id) {
        this.id = id;
    }

    public ID getpId() {
        return pId;
    }

    public void setpId(ID pId) {
        this.pId = pId;
    }

    @JsonProperty(value = "pId")
    public ID getPid() {
        return pId;
    }

    public boolean isParent() {
        return isParent;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIconSkin() {
        return iconSkin;
    }

    public void setIconSkin(String iconSkin) {
        this.iconSkin = iconSkin;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public boolean isRoot() {
        return root;
    }

    public void setRoot(boolean root) {
        this.root = root;
    }

    public boolean isIsParent() {
        return isParent;
    }

    public void setIsParent(boolean isParent) {
        this.isParent = isParent;
    }

    public boolean isNocheck() {
        return nocheck;
    }

    public void setNocheck(boolean nocheck) {
        this.nocheck = nocheck;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

}