[xmlparser]Code-XMLDocument

package com.xml; /** * @author Administrator * * TODO 要更改此生成的类型注释的模板,请转至 * 窗口 - 首选项 - Java - 代码样式 - 代码模板 */ public class XMLDocument { private Node root; private String docType; private String encoding; private float version; public Node getRoot() { return root; } public String getDocType() { return docType; } public String getEncoding() { return encoding; } public float getVersion() { return version; } public void setRoot(Node root) { this.root = root; } public void setDocType(String docType) { this.docType = docType; } public void setEncoding(String encoding) { this.encoding = encoding; } public void setVersion(float version) { this.version = version; } public void dump(){ System.out.println("version="+version); System.out.println("encoding="+encoding); System.out.println("root="+root); root.dump(0); } }

你可能感兴趣的:(java,String,Class,float,encoding)