1 4 package gnu.kawa.xml; 5 import gnu.xml.*; 6 7 9 10 public class KText extends KCharacterData 11 12 14 { 15 public KText (NodeTree seq, int ipos) 16 { 17 super(seq, ipos); 18 } 19 20 public static KText make (String text) 21 { 22 NodeTree tree = new NodeTree(); 23 tree.append(text); 24 return new KText(tree, 0); 25 } 26 27 28 30 31 public String getNodeName() 32 { 33 return "#text"; 34 } 35 36 37 44 45 public String getWholeText () 46 { 47 throw new UnsupportedOperationException ("getWholeText not implemented yet"); 48 } 49 50 51 58 59 public boolean hasAttributes () 60 { 61 return false; 62 } 63 64 public boolean isElementContentWhitespace () 65 { 66 return false; 67 } 68 } 69 | Popular Tags |