public BasicNode createClone () { return new BasicNode (type, value); }
@Override public ProcessingInstruction copy (Node orig) { super.copy (orig); ProcessingInstruction other = (ProcessingInstruction)orig; this.target = other.target; this.text = other.text; this.whitespace = other.whitespace; return this; }
public BasicNode copy () { BasicNode n = createClone (); n.copy (this); return n; } }
@Override public String toString () { return toXML (); }
public XMLParseException (String message, Node node) { super (message); if (node instanceof Element) { setElement ((Element)node); } else if (node instanceof BasicNode) { BasicNode n = (BasicNode)node; setToken (n.getToken ()); } }
/** Append the content of this node to <code>writer</code> */ public BasicNode toXML (XMLWriter writer) throws IOException { writer.write (this, getValue ()); return this; }
/** Convert this node to a string. */ public String toXML () { return toXML (this); }
@Override public ProcessingInstruction copy () { return (ProcessingInstruction)super.copy (); } }
public String toXML () { return BasicNode.toXML (this); }
@Override public Attribute copy () { return (Attribute)super.copy (); } }
@Override public DocType toXML (XMLWriter writer) throws IOException { super.toXML (writer); for (Node n: nodes) n.toXML (writer); return this; }
@Override public BasicNode copy (Node orig) { super.copy (orig); Text other = (Text)orig; this.text = other.text; return this; }
@Override public Text copy () { return (Text)super.copy (); } }
@Override public Entity copy () { return (Entity)super.copy (); } }
@Override public Comment copy () { return (Comment)super.copy (); } }
@Override public Entity copy (Node orig) { super.copy (orig); Entity other = (Entity)orig; this.resolver = other.resolver; return this; }
@Override public Attribute copy (Node orig) { super.copy (orig); Attribute other = (Attribute)orig; this.equalsSpace = other.equalsSpace; this.name = other.name; this.preSpace = other.preSpace; this.quoteChar = other.quoteChar; this.value = other.value; this.rawValue = other.rawValue; return this; }