elena 2002/12/30 13:21:09
Modified: java/src/org/apache/xerces/impl/xs/opti DefaultDocument.java
DefaultNode.java
Log:
fixing DOM Level 3 built that was broken (impl/xs/opti)
Revision Changes Path
1.3 +148 -3
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/DefaultDocument.java
Index: DefaultDocument.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/opti/DefaultDocument.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultDocument.java 13 Dec 2002 17:23:24 -0000 1.2
+++ DefaultDocument.java 30 Dec 2002 21:21:08 -0000 1.3
@@ -57,6 +57,7 @@
package org.apache.xerces.impl.xs.opti;
+import org.apache.xerces.dom3.DOMConfiguration;
import org.w3c.dom.Attr;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
@@ -139,11 +140,10 @@
return null;
}
-
public Comment createComment(String data) {
return null;
}
-
+
public CDATASection createCDATASection(String data) throws DOMException {
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
@@ -173,5 +173,150 @@
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws
DOMException {
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
+
+ // DOM Level 3 methods.
+
+ public String getActualEncoding(){
+ return null;
+ }
+
+ public void setActualEncoding(String actualEncoding){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ public String getEncoding(){
+ return null;
+ }
+
+
+ /**
+ * An attribute specifying, as part of the XML declaration, the encoding
+ * of this document. This is <code>null</code> when unspecified.
+ * @since DOM Level 3
+ */
+ public void setEncoding(String encoding){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ /**
+ * An attribute specifying, as part of the XML declaration, whether this
+ * document is standalone.
+ * <br> This attribute represents the property [standalone] defined in .
+ * @since DOM Level 3
+ */
+ public boolean getStandalone(){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+ /**
+ * An attribute specifying, as part of the XML declaration, whether this
+ * document is standalone.
+ * <br> This attribute represents the property [standalone] defined in .
+ * @since DOM Level 3
+ */
+ public void setStandalone(boolean standalone){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ /**
+ * An attribute specifying, as part of the XML declaration, the version
+ * number of this document. This is <code>null</code> when unspecified.
+ * <br> This attribute represents the property [version] defined in .
+ * @exception DOMException
+ * NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
+ * not supported by this <code>Document</code>.
+ * @since DOM Level 3
+ */
+ public String getVersion(){
+ return null;
+ }
+ /**
+ * An attribute specifying, as part of the XML declaration, the version
+ * number of this document. This is <code>null</code> when unspecified.
+ * <br> This attribute represents the property [version] defined in .
+ * @exception DOMException
+ * NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
+ * not supported by this <code>Document</code>.
+ * @since DOM Level 3
+ */
+ public void setVersion(String version) throws DOMException{
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ /**
+ * An attribute specifying whether errors checking is enforced or not.
+ * When set to <code>false</code>, the implementation is free to not
+ * test every possible error case normally defined on DOM operations,
+ * and not raise any <code>DOMException</code>. In case of error, the
+ * behavior is undefined. This attribute is <code>true</code> by
+ * defaults.
+ * @since DOM Level 3
+ */
+ public boolean getStrictErrorChecking(){
+ return false;
+ }
+ /**
+ * An attribute specifying whether errors checking is enforced or not.
+ * When set to <code>false</code>, the implementation is free to not
+ * test every possible error case normally defined on DOM operations,
+ * and not raise any <code>DOMException</code>. In case of error, the
+ * behavior is undefined. This attribute is <code>true</code> by
+ * defaults.
+ * @since DOM Level 3
+ */
+ public void setStrictErrorChecking(boolean strictErrorChecking){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ /**
+ * The location of the document or <code>null</code> if undefined.
+ * <br>Beware that when the <code>Document</code> supports the feature
+ * "HTML" , the href attribute of the HTML BASE element takes precedence
+ * over this attribute.
+ * @since DOM Level 3
+ */
+ public String getDocumentURI(){
+ return null;
+ }
+ /**
+ * The location of the document or <code>null</code> if undefined.
+ * <br>Beware that when the <code>Document</code> supports the feature
+ * "HTML" , the href attribute of the HTML BASE element takes precedence
+ * over this attribute.
+ * @since DOM Level 3
+ */
+ public void setDocumentURI(String documentURI){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ /** DOM Level 3*/
+ public Node adoptNode(Node source) throws DOMException{
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ /** DOM Level 3*/
+ public void normalizeDocument(){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ /**
+ * The configuration used when <code>Document.normalizeDocument</code> is
+ * invoked.
+ * @since DOM Level 3
+ */
+ public DOMConfiguration getConfig(){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ /** DOM Level 3*/
+ public Node renameNode(Node n,String namespaceURI, String name) throws
DOMException{
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+
+
+
+
+
+
}
1.3 +49 -1
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/DefaultNode.java
Index: DefaultNode.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/opti/DefaultNode.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultNode.java 13 Dec 2002 17:23:24 -0000 1.2
+++ DefaultNode.java 30 Dec 2002 21:21:09 -0000 1.3
@@ -57,6 +57,7 @@
package org.apache.xerces.impl.xs.opti;
+import org.apache.xerces.dom3.UserDataHandler;
import org.w3c.dom.Node;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
@@ -168,6 +169,11 @@
public String getLocalName() {
return null;
}
+ /** DOM Level 3*/
+ public String getBaseURI(){
+ return null;
+ }
+
public boolean hasAttributes() {
@@ -203,6 +209,48 @@
public void setPrefix(String prefix) throws DOMException {
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
+
+ public short compareTreePosition(Node other){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ public String getTextContent() throws DOMException{
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+ public void setTextContent(String textContent)throws DOMException{
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+ public boolean isSameNode(Node other){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+
+ }
+ public String lookupNamespacePrefix(String namespaceURI,
+ boolean useDefault){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+ public boolean isDefaultNamespace(String namespaceURI){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ public String lookupNamespaceURI(String prefix){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+
+ public boolean isEqualNode(Node arg){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+
+ }
+
+ public Node getInterface(String feature){
+ return null;
+ }
+ public Object setUserData(String key, Object data, UserDataHandler handler){
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not
supported");
+ }
+ public Object getUserData(String key){
+ return null;
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]