1 16 17 package de.gulden.util.javasource; 18 19 import de.gulden.util.xml.XMLToolbox; 20 import org.w3c.dom.*; 21 import java.io.*; 22 import java.util.*; 23 24 30 public class DocumentationTagged extends Documentation { 31 32 38 public Vector myDocumentationDeclared; 39 40 43 protected String tag; 44 45 48 protected String item; 49 50 51 57 public String getTag() { 58 return tag; 59 } 60 61 64 public void setTag(String tag) { 65 this.tag=tag; 66 } 67 68 71 public String getItem() { 72 return item; 73 } 74 75 78 public void setItem(String item) { 79 this.item=item; 80 } 81 82 88 public Element buildXML(Document d) { 89 Element e=d.createElement("tag"); 90 e.setAttribute("type",getTag()); 91 e.appendChild(d.createTextNode(getText())); 92 return e; 93 } 94 95 101 public void initFromXML(Element element) throws IOException { 102 String type=element.getAttribute("type"); 103 String item=element.getAttribute("item"); 104 String text=XMLToolbox.getText(element); 105 setTag(type); 106 setItem(item); setText(text); 108 } 109 110 } | Popular Tags |