vgritsenko 2005/03/31 18:42:40
Modified: java/src/org/apache/xindice/xml/dom DocumentImpl.java NodeImpl.java NodeListImpl.java Log: add toString implementation to the Node Revision Changes Path 1.19 +12 -11 xml-xindice/java/src/org/apache/xindice/xml/dom/DocumentImpl.java Index: DocumentImpl.java =================================================================== RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/xml/dom/DocumentImpl.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- DocumentImpl.java 20 Jul 2004 20:34:35 -0000 1.18 +++ DocumentImpl.java 1 Apr 2005 02:42:40 -0000 1.19 @@ -54,18 +54,19 @@ * * @version CVS $Revision$, $Date$ */ -public final class DocumentImpl extends ContainerNodeImpl implements CompressedDocument, DBDocument, DocumentTraversal { +public final class DocumentImpl extends ContainerNodeImpl + implements CompressedDocument, DBDocument, DocumentTraversal { private static final Log log = LogFactory.getLog(DocumentImpl.class); - private DocumentType docType = null; - private String version = null; - private String actualEncoding = null; - private String encoding = null; - private boolean standalone = false; - private boolean strictErrorChecking = false; - private SymbolTable symbols = null; - private boolean readOnly = false; + private DocumentType docType; + private String version; + private String actualEncoding; + private String encoding; + private boolean standalone; + private boolean strictErrorChecking; + private SymbolTable symbols; + private boolean readOnly; public DocumentImpl() { 1.14 +10 -2 xml-xindice/java/src/org/apache/xindice/xml/dom/NodeImpl.java Index: NodeImpl.java =================================================================== RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/xml/dom/NodeImpl.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- NodeImpl.java 8 Feb 2004 03:11:56 -0000 1.13 +++ NodeImpl.java 1 Apr 2005 02:42:40 -0000 1.14 @@ -21,6 +21,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.xindice.xml.NodeSource; +import org.apache.xindice.xml.TextWriter; import org.w3c.dom.Attr; import org.w3c.dom.DOMException; @@ -912,4 +913,11 @@ } return key; } + + /** + * Converts this node into its textual representation. + */ + public String toString() { + return TextWriter.toString(this); + } } 1.8 +3 -2 xml-xindice/java/src/org/apache/xindice/xml/dom/NodeListImpl.java Index: NodeListImpl.java =================================================================== RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/xml/dom/NodeListImpl.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- NodeListImpl.java 31 Mar 2005 03:46:02 -0000 1.7 +++ NodeListImpl.java 1 Apr 2005 02:42:40 -0000 1.8 @@ -15,6 +15,7 @@ * * CVS $Id$ */ + package org.apache.xindice.xml.dom; import org.w3c.dom.Node;