You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@locus.apache.org on 2000/08/09 20:25:43 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/lib/sql StreamableNode.java
sboag 00/08/09 11:25:43
Modified: java/src/org/apache/xalan/lib/sql StreamableNode.java
Log:
Implement NamedNodeMap and getAttributes.
Revision Changes Path
1.2 +57 -1 xml-xalan/java/src/org/apache/xalan/lib/sql/StreamableNode.java
Index: StreamableNode.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/lib/sql/StreamableNode.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- StreamableNode.java 2000/08/07 02:48:12 1.1
+++ StreamableNode.java 2000/08/09 18:25:42 1.2
@@ -2,15 +2,18 @@
import org.w3c.dom.Node;
import org.w3c.dom.Document;
+import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.DOMException;
import org.apache.xalan.utils.UnImplNode;
import org.apache.xpath.patterns.NodeTestFilter;
import org.apache.xpath.patterns.NodeTest;
+import org.apache.xalan.res.XSLTErrorResources;
/**
* This is the superclass for all nodes in the Xalan sql package.
*/
-public class StreamableNode extends UnImplNode implements NodeTestFilter
+public class StreamableNode extends UnImplNode
+ implements NodeTestFilter, NamedNodeMap
{
private XStatement m_statement;
@@ -70,6 +73,59 @@
{
return null;
}
+
+ public NamedNodeMap getAttributes()
+ {
+ return this;
+ }
+
+ public Node getNamedItem(String name)
+ {
+ return null;
+ }
+
+ public Node item(int index)
+ {
+ return null;
+ }
+ public int getLength()
+ {
+ return 0;
+ }
+ public Node getNamedItemNS(String namespaceURI,
+ String localName)
+ {
+ return null;
+ }
+
+ public Node setNamedItem(Node arg)
+ throws DOMException
+ {
+ error(XSLTErrorResources.ER_FUNCTION_NOT_SUPPORTED);
+ return null;
+ }
+
+ public Node removeNamedItem(String name)
+ throws DOMException
+ {
+ error(XSLTErrorResources.ER_FUNCTION_NOT_SUPPORTED);
+ return null;
+ }
+
+ public Node setNamedItemNS(Node arg)
+ throws DOMException
+ {
+ error(XSLTErrorResources.ER_FUNCTION_NOT_SUPPORTED);
+ return null;
+ }
+
+ public Node removeNamedItemNS(String namespaceURI,
+ String localName)
+ throws DOMException
+ {
+ error(XSLTErrorResources.ER_FUNCTION_NOT_SUPPORTED);
+ return null;
+ }
}