1 package net.sf.saxon.tree; 2 import net.sf.saxon.event.Receiver; 3 import net.sf.saxon.trans.XPathException; 4 import net.sf.saxon.type.Type; 5 6 10 11 final class TextImpl extends NodeImpl { 12 13 private String content; 14 15 public TextImpl(ParentNodeImpl parent, String content) { 16 this.parent = parent; 17 this.content = content; 18 } 19 20 24 25 public String getStringValue() { 26 return content; 27 } 28 29 33 34 public final int getNodeKind() { 35 return Type.TEXT; 36 } 37 38 41 42 public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException { 43 out.characters(content, locationId, 0); 44 } 45 46 49 50 54 } 55 56 | Popular Tags |