xmlnode.java

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

JAVA
38
字号
package advdb;

import java.util.*;

public class XMLNode extends Node
{
	private Vector<XMLNode> children;
	private Vector<XMLAttribute> attributes;
	
	public XMLNode(){};
	
	public XMLNode(int id, String name, int type, int order, 
					String value, int parent, Vector<XMLNode> children,
					Vector<XMLAttribute> attributes)
	{		
		super(id, name, type, order, value, parent);

		this.children = children;
		this.attributes = attributes;
	}

	public Vector<XMLNode> getChildren() {
		return children;
	}
	
	public void setChildren(Vector<XMLNode> children) {
		this.children = children;
	}
	
	public Vector<XMLAttribute> getAttributes() {
		return attributes;
	}

	public void setAttributes(Vector<XMLAttribute> attributes) {
		this.attributes = attributes;
	}
}

⌨️ 快捷键说明

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