You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by er...@apache.org on 2004/03/13 02:16:28 UTC
cvs commit: xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2 Cur.java DomImpl.java Locale.java
ericvas 2004/03/12 17:16:28
Modified: v2/src/newstore2/org/apache/xmlbeans/impl/newstore2 Cur.java
DomImpl.java Locale.java
Log:
Stub out DOM level 3 methods for 1.5
Revision Changes Path
1.18 +75 -1 xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cur.java
Index: Cur.java
===================================================================
RCS file: /home/cvs/xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cur.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- Cur.java 12 Mar 2004 21:18:18 -0000 1.17
+++ Cur.java 13 Mar 2004 01:16:28 -0000 1.18
@@ -32,6 +32,9 @@
import org.w3c.dom.ProcessingInstruction;
import org.w3c.dom.Text;
import org.w3c.dom.DOMImplementation;
+import org.w3c.dom.UserDataHandler;
+import org.w3c.dom.DOMConfiguration;
+import org.w3c.dom.TypeInfo;
import javax.xml.soap.Detail;
import javax.xml.soap.DetailEntry;
@@ -1947,6 +1950,20 @@
public Node replaceChild ( Node newChild, Node oldChild ) { return DomImpl._node_replaceChild( this, newChild, oldChild ); }
public void setNodeValue ( String nodeValue ) { DomImpl._node_setNodeValue( this, nodeValue ); }
public void setPrefix ( String prefix ) { DomImpl._node_setPrefix( this, prefix ); }
+
+ // Level 3
+ public Object getUserData ( String key ) { return DomImpl._node_getUserData( this, key ); }
+ public Object setUserData ( String key, Object data, UserDataHandler handler ) { return DomImpl._node_setUserData( this, key, data, handler ); }
+ public Object getFeature ( String feature, String version ) { return DomImpl._node_getFeature( this, feature, version ); }
+ public boolean isEqualNode ( Node arg ) { return DomImpl._node_isEqualNode( this, arg ); }
+ public boolean isSameNode ( Node arg ) { return DomImpl._node_isSameNode( this, arg ); }
+ public String lookupNamespaceURI ( String prefix ) { return DomImpl._node_lookupNamespaceURI( this, prefix ); }
+ public String lookupPrefix ( String namespaceURI ) { return DomImpl._node_lookupPrefix( this, namespaceURI ); }
+ public boolean isDefaultNamespace ( String namespaceURI ) { return DomImpl._node_isDefaultNamespace( this, namespaceURI ); }
+ public void setTextContent ( String textContent ) { DomImpl._node_setTextContent( this, textContent ); }
+ public String getTextContent ( ) { return DomImpl._node_getTextContent( this ); }
+ public short compareDocumentPosition ( Node other ) { return DomImpl._node_compareDocumentPosition( this, other ); }
+ public String getBaseURI ( ) { return DomImpl._node_getBaseURI( this ); }
}
private final static class DocumentXobj extends NodeXobj implements Document
@@ -1979,6 +1996,22 @@
public NodeList getElementsByTagNameNS ( String namespaceURI, String localName ) { return DomImpl._document_getElementsByTagNameNS( this, namespaceURI, localName ); }
public DOMImplementation getImplementation ( ) { return DomImpl._document_getImplementation( this ); }
public Node importNode ( Node importedNode, boolean deep ) { return DomImpl._document_importNode( this, importedNode, deep ); }
+
+ // DOM Level 3
+ public Node adoptNode ( Node source ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public String getDocumentURI ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public DOMConfiguration getDomConfig ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public String getInputEncoding ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public boolean getStrictErrorChecking ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public String getXmlEncoding ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public boolean getXmlStandalone ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public String getXmlVersion ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void normalizeDocument ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public Node renameNode ( Node n, String namespaceURI, String qualifiedName ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setDocumentURI ( String documentURI ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setStrictErrorChecking ( boolean strictErrorChecking ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setXmlStandalone ( boolean xmlStandalone ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setXmlVersion ( String xmlVersion ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
}
private static class DocumentFragXobj extends NodeXobj implements DocumentFragment
@@ -2046,6 +2079,12 @@
public Attr setAttributeNodeNS ( Attr newAttr ) { return DomImpl._element_setAttributeNodeNS( this, newAttr ); }
public void setAttributeNS ( String namespaceURI, String qualifiedName, String value ) { DomImpl._element_setAttributeNS( this, namespaceURI, qualifiedName, value ); }
+ // DOM Level 3
+ public TypeInfo getSchemaTypeInfo ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setIdAttribute ( String name, boolean isId ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setIdAttributeNS ( String namespaceURI, String localName, boolean isId ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setIdAttributeNode ( Attr idAttr, boolean isId ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+
private ElementAttributes _attributes;
}
@@ -2068,6 +2107,10 @@
public boolean getSpecified ( ) { return DomImpl._attr_getSpecified( this ); }
public String getValue ( ) { return DomImpl._node_getNodeValue( this ); }
public void setValue ( String value ) { DomImpl._node_setNodeValue( this, value ); }
+
+ // DOM Level 3
+ public TypeInfo getSchemaTypeInfo ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public boolean isId ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
}
private static class CommentXobj extends NodeXobj implements Comment
@@ -2166,6 +2209,34 @@
public void setNodeValue ( String nodeValue ) { DomImpl._node_setNodeValue( this, nodeValue ); }
public void setPrefix ( String prefix ) { DomImpl._node_setPrefix( this, prefix ); }
+ // Level 3
+ public Object getUserData ( String key ) { return DomImpl._node_getUserData( this, key ); }
+ public Object setUserData ( String key, Object data, UserDataHandler handler ) { return DomImpl._node_setUserData( this, key, data, handler ); }
+ public Object getFeature ( String feature, String version ) { return DomImpl._node_getFeature( this, feature, version ); }
+ public boolean isEqualNode ( Node arg ) { return DomImpl._node_isEqualNode( this, arg ); }
+ public boolean isSameNode ( Node arg ) { return DomImpl._node_isSameNode( this, arg ); }
+ public String lookupNamespaceURI ( String prefix ) { return DomImpl._node_lookupNamespaceURI( this, prefix ); }
+ public String lookupPrefix ( String namespaceURI ) { return DomImpl._node_lookupPrefix( this, namespaceURI ); }
+ public boolean isDefaultNamespace ( String namespaceURI ) { return DomImpl._node_isDefaultNamespace( this, namespaceURI ); }
+ public void setTextContent ( String textContent ) { DomImpl._node_setTextContent( this, textContent ); }
+ public String getTextContent ( ) { return DomImpl._node_getTextContent( this ); }
+ public short compareDocumentPosition ( Node other ) { return DomImpl._node_compareDocumentPosition( this, other ); }
+ public String getBaseURI ( ) { return DomImpl._node_getBaseURI( this ); }
+ public Node adoptNode ( Node source ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public String getDocumentURI ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public DOMConfiguration getDomConfig ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public String getInputEncoding ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public boolean getStrictErrorChecking ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public String getXmlEncoding ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public boolean getXmlStandalone ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public String getXmlVersion ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void normalizeDocument ( ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public Node renameNode ( Node n, String namespaceURI, String qualifiedName ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setDocumentURI ( String documentURI ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setStrictErrorChecking ( boolean strictErrorChecking ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setXmlStandalone ( boolean xmlStandalone ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+ public void setXmlVersion ( String xmlVersion ) { throw new RuntimeException( "DOM Level 3 Not implemented" ); }
+
public Attr createAttribute ( String name ) { return DomImpl._document_createAttribute( this, name ); }
public Attr createAttributeNS ( String namespaceURI, String qualifiedName ) { return DomImpl._document_createAttributeNS( this, namespaceURI, qualifiedName ); }
public CDATASection createCDATASection ( String data ) { return DomImpl._document_createCDATASection( this, data ); }
@@ -2183,7 +2254,7 @@
public NodeList getElementsByTagNameNS ( String namespaceURI, String localName ) { return DomImpl._document_getElementsByTagNameNS( this, namespaceURI, localName ); }
public DOMImplementation getImplementation ( ) { return DomImpl._document_getImplementation( this ); }
public Node importNode ( Node importedNode, boolean deep ) { return DomImpl._document_importNode( this, importedNode, deep ); }
-
+
public int getLength ( ) { return DomImpl._childNodes_getLength( this ); }
public Node item ( int i ) { return DomImpl._childNodes_item( this, i ); }
@@ -2352,6 +2423,9 @@
Xobj newNode ( ) { return new SaajCommentXobj( _locale ); }
public Text splitText ( int offset ) { throw new IllegalStateException(); }
+ public String getWholeText ( ) { throw new IllegalStateException(); }
+ public boolean isElementContentWhitespace ( ) { throw new IllegalStateException(); }
+ public Text replaceWholeText ( String content ) { throw new IllegalStateException(); }
public boolean isComment ( ) { return true; }
1.19 +153 -0 xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/DomImpl.java
Index: DomImpl.java
===================================================================
RCS file: /home/cvs/xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/DomImpl.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- DomImpl.java 10 Mar 2004 08:52:01 -0000 1.18
+++ DomImpl.java 13 Mar 2004 01:16:28 -0000 1.19
@@ -32,6 +32,7 @@
import org.w3c.dom.ProcessingInstruction;
import org.w3c.dom.Text;
import org.w3c.dom.DOMImplementation;
+import org.w3c.dom.UserDataHandler;
import javax.xml.soap.Detail;
import javax.xml.soap.DetailEntry;
@@ -2222,6 +2223,114 @@
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
+ public static Object _node_getUserData ( Dom n, String key )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static Object _node_setUserData ( Dom n, String key, Object data, UserDataHandler handler )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static Object _node_getFeature ( Dom n, String feature, String version )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static boolean _node_isEqualNode ( Dom n, Node arg )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static boolean _node_isSameNode ( Dom n, Node arg )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static String _node_lookupNamespaceURI ( Dom n, String prefix )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static boolean _node_isDefaultNamespace ( Dom n, String namespaceURI )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static String _node_lookupPrefix ( Dom n, String namespaceURI )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static void _node_setTextContent ( Dom n, String textContent )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static String _node_getTextContent ( Dom n )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static short _node_compareDocumentPosition ( Dom n, Node other )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static String _node_getBaseURI ( Dom n )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
public static Node _childNodes_item ( Dom n, int i )
{
Locale l = n.locale();
@@ -3211,6 +3320,33 @@
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
+ public static String _text_getWholeText ( Dom t )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static boolean _text_isElementContentWhitespace ( Dom t )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
+ public static Text _text_replaceWholeText ( Dom t, String content )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+ //////////////////////////////////////////////////////////////////////////////////////
+
public static XMLStreamReader _getXmlStreamReader ( Dom n )
{
Locale l = n.locale();
@@ -3500,6 +3636,20 @@
public void setNodeValue ( String nodeValue ) { DomImpl._node_setNodeValue( this, nodeValue ); }
public void setPrefix ( String prefix ) { DomImpl._node_setPrefix( this, prefix ); }
+ // Level 3
+ public Object getUserData ( String key ) { return DomImpl._node_getUserData( this, key ); }
+ public Object setUserData ( String key, Object data, UserDataHandler handler ) { return DomImpl._node_setUserData( this, key, data, handler ); }
+ public Object getFeature ( String feature, String version ) { return DomImpl._node_getFeature( this, feature, version ); }
+ public boolean isEqualNode ( Node arg ) { return DomImpl._node_isEqualNode( this, arg ); }
+ public boolean isSameNode ( Node arg ) { return DomImpl._node_isSameNode( this, arg ); }
+ public String lookupNamespaceURI ( String prefix ) { return DomImpl._node_lookupNamespaceURI( this, prefix ); }
+ public String lookupPrefix ( String namespaceURI ) { return DomImpl._node_lookupPrefix( this, namespaceURI ); }
+ public boolean isDefaultNamespace ( String namespaceURI ) { return DomImpl._node_isDefaultNamespace( this, namespaceURI ); }
+ public void setTextContent ( String textContent ) { DomImpl._node_setTextContent( this, textContent ); }
+ public String getTextContent ( ) { return DomImpl._node_getTextContent( this ); }
+ public short compareDocumentPosition ( Node other ) { return DomImpl._node_compareDocumentPosition( this, other ); }
+ public String getBaseURI ( ) { return DomImpl._node_getBaseURI( this ); }
+
public void appendData ( String arg ) { DomImpl._characterData_appendData( this, arg ); }
public void deleteData ( int offset, int count ) { DomImpl._characterData_deleteData( this, offset, count ); }
public String getData ( ) { return DomImpl._characterData_getData( this ); }
@@ -3531,6 +3681,9 @@
public String name ( ) { return "#text"; }
public Text splitText ( int offset ) { return DomImpl._text_splitText ( this, offset ); }
+ public String getWholeText ( ) { return DomImpl._text_getWholeText( this ); }
+ public boolean isElementContentWhitespace ( ) { return DomImpl._text_isElementContentWhitespace( this ); }
+ public Text replaceWholeText ( String content ) { return DomImpl._text_replaceWholeText( this, content ); }
}
static class CdataNode extends TextNode implements CDATASection
1.10 +6 -0 xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Locale.java
Index: Locale.java
===================================================================
RCS file: /home/cvs/xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Locale.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Locale.java 11 Mar 2004 19:50:29 -0000 1.9
+++ Locale.java 13 Mar 2004 01:16:28 -0000 1.10
@@ -757,6 +757,12 @@
// return DomImpl._domImplementation_hasFeature( this, feature, version );
}
+ public Object getFeature ( String feature, String version )
+ {
+ throw new RuntimeException( "DOM Level 3 Not implemented" );
+ }
+
+
//
// SaajCallback methods
//
---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org