1 16 17 package de.gulden.util.javasource; 18 19 import de.gulden.util.javasource.jjt.Node; 20 import de.gulden.util.javasource.jjt.*; 21 import javax.xml.parsers.*; 22 import org.w3c.dom.*; 23 import java.util.*; 24 25 31 public abstract class Documentation extends Implementation implements ParserTreeConstants { 32 33 39 protected String text; 40 41 42 48 public Documentation() { 49 50 } 51 52 53 59 public String getText() { 60 return text; 61 } 62 63 66 public void setText(String s) { 67 text=s; 68 } 69 70 76 public Element buildXML(Document d) { 77 Element e=d.createElement("documentation"); 78 e.appendChild(d.createTextNode(getText())); 79 return e; 80 } 81 82 public String toString() { 83 return "documentation "+getText(); 84 } 85 86 } | Popular Tags |