package com.xt.dsp.common; import java.util.HashMap; import java.util.Map; /** * 树类 * */ public class TreeNode { /** * 树id */ protected String id; /** * 树tid可存放code代码 */ protected String tId; /** * 树名称 */ protected String name; /** * 父节点 */ protected String pId; /** * 是否父节点(父节点存在时,改字段可以不实用) */ protected Long isParent; /** * icon图标 */ protected String iconSkin; /** * 节点是否可以展开 */ protected String open; protected String icon; /** * 自定义属性 */ private Map attributes = new HashMap(); public String getIconSkin() { return this.iconSkin; } public String getId() { return this.id; } public Long getIsParent() { return this.isParent; } public String getName() { return this.name; } public String getOpen() { return this.open; } public String getpId() { return this.pId; } public String gettId() { return this.tId; } public void setIconSkin(String iconSkin) { this.iconSkin = iconSkin; } public void setId(String id) { this.id = id; } public void setIsParent(Long isParent) { this.isParent = isParent; } public void setName(String name) { this.name = name; } public void setOpen(String open) { this.open = open; } public void setpId(String pId) { this.pId = pId; } public void settId(String tId) { this.tId = tId; } public String getIcon() { return icon; } public void setIcon(String icon) { this.icon = icon; } public void addAttribute(String name, String value) { this.attributes.put(name, value); } public String getAttribute(String name) { return this.attributes.get(name); } public Map getAttributes() { return this.attributes; } }