node.java

来自「本人写的另一个XML实例化小程序」· Java 代码 · 共 74 行

JAVA
74
字号
package advdb;

public class Node {
	public final static int NodeTypeElement 	= 0;
	public final static int NodeTypeAttribute 	= 1;
	
	private int id;
	private int parentId;
	private int order;
	private String name;
	private String value;
	private int type;

	public Node(){}

	public Node(int id, String name, int type, int order, 
			String value, int parent) {
		this.id = id;
		this.name = name;
		this.type = type;
		this.order = order;
		this.value = value;
		this.parentId = parent;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public int getParentId() {
		return this.parentId;
	}
	
	public void setParentId(int parent) {
		this.parentId = parent;
	}

	public int getId() {
		return this.id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getOrder() {
		return order;
	}
	
	public void setOrder(int order) {
		this.order = order;
	}
	
	public int getType() {
		return type;
	}
	
	public void setType(int type) {
		this.type = type;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?