Author: darran.lofthouse(a)jboss.com
Date: 2010-05-19 12:25:37 -0400 (Wed, 19 May 2010)
New Revision: 12278
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/NodeImpl.java
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java
Log:
[JBPAPP-3960] Implement unimplemented DOM related methods in JBossWS SAAJ Implementation
.
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/NodeImpl.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/NodeImpl.java 2010-05-19
15:53:59 UTC (rev 12277)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/NodeImpl.java 2010-05-19
16:25:37 UTC (rev 12278)
@@ -31,7 +31,6 @@
import javax.xml.soap.SOAPException;
import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
import org.jboss.ws.WSException;
import org.jboss.wsf.common.DOMUtils;
import org.jboss.wsf.common.DOMWriter;
@@ -596,20 +595,17 @@
public short compareDocumentPosition(Node other) throws DOMException
{
- // FIXME compareDocumentPosition
- throw new NotImplementedException("compareDocumentPosition");
+ return this.domNode.compareDocumentPosition(other);
}
public String getBaseURI()
{
- // FIXME getBaseURI
- throw new NotImplementedException("getBaseURI");
+ return this.domNode.getBaseURI();
}
public Object getFeature(String feature, String version)
{
- // FIXME getFeature
- throw new NotImplementedException("getFeature");
+ return this.domNode.getFeature(feature, version);
}
public String getTextContent() throws DOMException
@@ -628,8 +624,7 @@
public boolean isDefaultNamespace(String namespaceURI)
{
- // FIXME isDefaultNamespace
- throw new NotImplementedException("isDefaultNamespace");
+ return this.domNode.isDefaultNamespace(namespaceURI);
}
public boolean isEqualNode(Node arg)
@@ -639,20 +634,17 @@
public boolean isSameNode(Node other)
{
- // FIXME isSameNode
- throw new NotImplementedException("isSameNode");
+ return this.domNode.isSameNode(other);
}
public String lookupNamespaceURI(String prefix)
{
- // FIXME lookupNamespaceURI
- throw new NotImplementedException("lookupNamespaceURI");
+ return this.domNode.lookupNamespaceURI(prefix);
}
public String lookupPrefix(String namespaceURI)
{
- // FIXME lookupPrefix
- throw new NotImplementedException("lookupPrefix");
+ return this.domNode.lookupPrefix(namespaceURI);
}
public void setTextContent(String textContent) throws DOMException
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java 2010-05-19
15:53:59 UTC (rev 12277)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java 2010-05-19
16:25:37 UTC (rev 12278)
@@ -21,6 +21,7 @@
*/
package org.jboss.ws.core.soap;
+import org.apache.xerces.dom.DocumentImpl;
import org.jboss.wsf.common.DOMUtils;
import org.w3c.dom.Attr;
import org.w3c.dom.CDATASection;
@@ -46,10 +47,11 @@
* enscapsulates a single ThreadLocal Document object.
*
* @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
-public class SOAPDocument implements Document
+@SuppressWarnings("serial")
+public class SOAPDocument extends DocumentImpl implements Document
{
- // TODO Revisit methods that are restricted or not implemented.
private Document doc = DOMUtils.getOwnerDocument();
@@ -57,18 +59,17 @@
public DocumentType getDoctype()
{
- return doc.getDoctype();
+ return null;
}
public DOMImplementation getImplementation()
{
- // Should this be allowed?
- return doc.getImplementation();
+ return this.doc.getImplementation();
}
public Element getDocumentElement()
{
- // The base SOAPDocument does not have an element, only SOAPPart will
+ // The base SOAPDocument does not have an element, only SOAPPart will have
return null;
}
@@ -79,50 +80,47 @@
public DocumentFragment createDocumentFragment()
{
- return doc.createDocumentFragment();
+ return this.doc.createDocumentFragment();
}
public Text createTextNode(String data)
{
- return doc.createTextNode(data);
+ return this.doc.createTextNode(data);
}
public Comment createComment(String data)
{
- return doc.createComment(data);
+ return this.doc.createComment(data);
}
public CDATASection createCDATASection(String data) throws DOMException
{
- return doc.createCDATASection(data);
+ return this.doc.createCDATASection(data);
}
public ProcessingInstruction createProcessingInstruction(String target, String data)
throws DOMException
{
- return doc.createProcessingInstruction(target, data);
+ return this.doc.createProcessingInstruction(target, data);
}
public Attr createAttribute(String name) throws DOMException
{
- return doc.createAttribute(name);
+ return this.doc.createAttribute(name);
}
public EntityReference createEntityReference(String name) throws DOMException
{
- // Not allowed
- return null;
+ throw new UnsupportedOperationException("Entity References are not allowed in
SOAP documents");
}
public NodeList getElementsByTagName(String tagname)
{
- // The base SOAPDocument does not have an element, only SOAPPart will
- return null;
+ return this.doc.getElementsByTagName(tagname);
}
public Node importNode(Node importedNode, boolean deep) throws DOMException
{
- // This should never be needed
- return doc.importNode(importedNode, deep);
+ return this.doc.importNode(importedNode, deep);
}
public Element createElementNS(String namespaceURI, String qualifiedName) throws
DOMException
@@ -140,300 +138,270 @@
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws
DOMException
{
- return doc.createAttributeNS(namespaceURI, qualifiedName);
+ return this.doc.createAttributeNS(namespaceURI, qualifiedName);
}
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
{
- // The base SOAPDocument does not have an element, only SOAPPart will
- return null;
+ return this.doc.getElementsByTagNameNS(namespaceURI, localName);
}
- public Element getElementById(String elementId)
- {
- // The base SOAPDocument does not have an element, only SOAPPart will
- return null;
- }
-
// Node methods
public String getNodeName()
{
- return doc.getNodeName();
+ return this.doc.getNodeName();
}
public String getNodeValue() throws DOMException
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getNodeValue();
}
public void setNodeValue(String nodeValue) throws DOMException
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ this.doc.setNodeValue(nodeValue);
}
public short getNodeType()
{
- return doc.getNodeType();
+ return this.doc.getNodeType();
}
public Node getParentNode()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getParentNode();
}
public NodeList getChildNodes()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getChildNodes();
}
public Node getFirstChild()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getFirstChild();
}
public Node getLastChild()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getLastChild();
}
public Node getPreviousSibling()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getPreviousSibling();
}
public Node getNextSibling()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getNextSibling();
}
public NamedNodeMap getAttributes()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getAttributes();
}
- public Document getOwnerDocument()
- {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
- }
-
public Node insertBefore(Node newChild, Node refChild) throws DOMException
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.insertBefore(newChild, refChild);
}
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.replaceChild(newChild, oldChild);
}
public Node removeChild(Node oldChild) throws DOMException
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.removeChild(oldChild);
}
public Node appendChild(Node newChild) throws DOMException
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.appendChild(newChild);
}
public boolean hasChildNodes()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.hasChildNodes();
}
public Node cloneNode(boolean deep)
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.cloneNode(deep);
}
public void normalize()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ this.doc.normalize();
}
public boolean isSupported(String feature, String version)
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.isSupported(feature, version);
}
public String getNamespaceURI()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getNamespaceURI();
}
public String getPrefix()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getPrefix();
}
public void setPrefix(String prefix) throws DOMException
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ this.doc.setPrefix(prefix);
}
public String getLocalName()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.getLocalName();
}
public boolean hasAttributes()
{
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not
allowed on SOAPDocument");
+ return this.doc.hasAttributes();
}
// DOM3 methods
public String getInputEncoding()
{
- // FIXME getInputEncoding
- return null;
+ return this.doc.getInputEncoding();
}
public String getXmlEncoding()
{
- // FIXME getXmlEncoding
- return null;
+ return this.doc.getXmlEncoding();
}
public boolean getXmlStandalone()
{
- // FIXME getXmlStandalone
- return false;
+ return this.doc.getXmlStandalone();
}
- public void setXmlStandalone(boolean arg0) throws DOMException
+ public void setXmlStandalone(boolean xmlStandalone) throws DOMException
{
- // FIXME setXmlStandalone
+ this.doc.setXmlStandalone(xmlStandalone);
}
public String getXmlVersion()
{
- // FIXME getXmlVersion
- return null;
+ return this.doc.getXmlVersion();
}
- public void setXmlVersion(String arg0) throws DOMException
+ public void setXmlVersion(String xmlVersion) throws DOMException
{
- // FIXME setXmlVersion
+ this.doc.setXmlVersion(xmlVersion);
}
public boolean getStrictErrorChecking()
{
- // FIXME getStrictErrorChecking
- return false;
+ return this.doc.getStrictErrorChecking();
}
- public void setStrictErrorChecking(boolean arg0)
+ public void setStrictErrorChecking(boolean strictErrorChecking)
{
- // FIXME setStrictErrorChecking
-
+ this.doc.setStrictErrorChecking(strictErrorChecking);
}
public String getDocumentURI()
{
- // FIXME getDocumentURI
- return null;
+ return this.doc.getDocumentURI();
}
- public void setDocumentURI(String arg0)
+ public void setDocumentURI(String documentURI)
{
- // FIXME setDocumentURI
-
+ this.doc.setDocumentURI(documentURI);
}
- public Node adoptNode(Node arg0) throws DOMException
+ public Node adoptNode(Node source) throws DOMException
{
- // FIXME adoptNode
- return null;
+ return this.doc.adoptNode(source);
}
public DOMConfiguration getDomConfig()
{
- // FIXME getDomConfig
- return null;
+ return this.doc.getDomConfig();
}
public void normalizeDocument()
{
- // FIXME normalizeDocument
-
+ this.doc.normalizeDocument();
}
- public Node renameNode(Node arg0, String arg1, String arg2) throws DOMException
+ public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws
DOMException
{
- // FIXME renameNode
- return null;
+ return this.doc.renameNode(n, namespaceURI, qualifiedName);
}
public String getBaseURI()
{
- // FIXME getBaseURI
- return null;
+ return this.doc.getBaseURI();
}
- public short compareDocumentPosition(Node arg0) throws DOMException
+ public short compareDocumentPosition(Node other) throws DOMException
{
- // FIXME compareDocumentPosition
- return 0;
+ return this.doc.compareDocumentPosition(other);
}
public String getTextContent() throws DOMException
{
- // FIXME getTextContent
- return null;
+ return this.doc.getTextContent();
}
- public void setTextContent(String arg0) throws DOMException
+ public void setTextContent(String textContent) throws DOMException
{
- // FIXME setTextContent
-
+ this.doc.setTextContent(textContent);
}
- public boolean isSameNode(Node arg0)
+ public boolean isSameNode(Node other)
{
- // FIXME isSameNode
- return false;
+ return this.doc.isSameNode(other);
}
- public String lookupPrefix(String arg0)
+ public String lookupPrefix(String namespaceURI)
{
- // FIXME lookupPrefix
- return null;
+ return this.doc.lookupPrefix(namespaceURI);
}
- public boolean isDefaultNamespace(String arg0)
+ public boolean isDefaultNamespace(String namespaceURI)
{
- // FIXME isDefaultNamespace
- return false;
+ return this.doc.isDefaultNamespace(namespaceURI);
}
- public String lookupNamespaceURI(String arg0)
+ public String lookupNamespaceURI(String prefix)
{
- // FIXME lookupNamespaceURI
- return null;
+ return this.doc.lookupNamespaceURI(prefix);
}
- public boolean isEqualNode(Node arg0)
+ public boolean isEqualNode(Node arg)
{
- // FIXME isEqualNode
- return false;
+ return this.doc.isEqualNode(arg);
}
- public Object getFeature(String arg0, String arg1)
+ public Object getFeature(String feature, String version)
{
- // FIXME hasFeature
- return null;
+ return this.doc.getFeature(feature, version);
}
- public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)
+ public Object setUserData(String key, Object data, UserDataHandler handler)
{
- // FIXME setUserData
- return null;
+ return this.doc.setUserData(key, data, handler);
}
public Object getUserData(String arg0)
{
- // FIXME getUserData
- return null;
+ return this.doc.getUserData(arg0);
}
+
+ public Element getElementById(String elementId)
+ {
+ return this.doc.getElementById(elementId);
+ }
+
}
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java 2010-05-19
15:53:59 UTC (rev 12277)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java 2010-05-19
16:25:37 UTC (rev 12278)
@@ -37,7 +37,6 @@
import javax.xml.soap.Text;
import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
import org.jboss.wsf.common.DOMUtils;
@@ -807,22 +806,22 @@
public TypeInfo getSchemaTypeInfo()
{
- throw new NotImplementedException("getSchemaTypeInfo");
+ return this.element.getSchemaTypeInfo();
}
public void setIdAttribute(String name, boolean isId) throws DOMException
{
- throw new NotImplementedException("setIdAttribute");
+ this.element.setIdAttribute(name, isId);
}
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
{
- throw new NotImplementedException("setIdAttributeNode");
+ this.element.setIdAttributeNode(idAttr, isId);
}
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
throws DOMException
{
- throw new NotImplementedException("setIdAttributeNS");
+ this.element.setIdAttributeNS(namespaceURI, localName, isId);
}
public void accept(SAAJVisitor visitor)
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java 2010-05-19
15:53:59 UTC (rev 12277)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPPartImpl.java 2010-05-19
16:25:37 UTC (rev 12278)
@@ -39,7 +39,6 @@
import javax.xml.transform.stream.StreamSource;
import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
import org.jboss.wsf.spi.util.ServiceLoader;
import org.w3c.dom.Attr;
import org.w3c.dom.CDATASection;
@@ -61,8 +60,8 @@
/** An implementation of SOAPPart.
*
- *
* @author Thomas.Diesler(a)jboss.org
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
public class SOAPPartImpl extends SOAPPart
{
@@ -208,104 +207,104 @@
public DOMImplementation getImplementation()
{
- return doc.getImplementation();
+ return this.doc.getImplementation();
}
public DocumentFragment createDocumentFragment()
{
- return doc.createDocumentFragment();
+ return this.doc.createDocumentFragment();
}
public DocumentType getDoctype()
{
- return doc.getDoctype();
+ return this.doc.getDoctype();
}
public Element getDocumentElement()
{
- return soapEnvelope;
+ return this.soapEnvelope;
}
public Attr createAttribute(String name) throws DOMException
{
- return doc.createAttribute(name);
+ return this.doc.createAttribute(name);
}
public CDATASection createCDATASection(String data) throws DOMException
{
- return doc.createCDATASection(data);
+ return this.doc.createCDATASection(data);
}
public Comment createComment(String data)
{
- return doc.createComment(data);
+ return this.doc.createComment(data);
}
public Element createElement(String tagName) throws DOMException
{
- return doc.createElement(tagName);
+ return this.doc.createElement(tagName);
}
public Element getElementById(String elementId)
{
- return doc.getElementById(elementId);
+ return this.doc.getElementById(elementId);
}
public EntityReference createEntityReference(String name) throws DOMException
{
- return doc.createEntityReference(name);
+ return this.doc.createEntityReference(name);
}
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws
DOMException
{
- return doc.importNode(importedNode, deep);
+ return this.doc.importNode(importedNode, deep);
}
public NodeList getElementsByTagName(String tagname)
{
- return doc.getElementsByTagName(tagname);
+ return this.doc.getElementsByTagName(tagname);
}
public Text createTextNode(String data)
{
- return doc.createTextNode(data);
+ return this.doc.createTextNode(data);
}
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws
DOMException
{
- return doc.createAttributeNS(namespaceURI, qualifiedName);
+ return this.doc.createAttributeNS(namespaceURI, qualifiedName);
}
public Element createElementNS(String namespaceURI, String qualifiedName) throws
DOMException
{
- return doc.createElementNS(namespaceURI, qualifiedName);
+ return this.doc.createElementNS(namespaceURI, qualifiedName);
}
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
{
- return doc.getElementsByTagNameNS(namespaceURI, localName);
+ return this.doc.getElementsByTagNameNS(namespaceURI, localName);
}
public ProcessingInstruction createProcessingInstruction(String target, String data)
throws DOMException
{
- return doc.createProcessingInstruction(target, data);
+ return this.doc.createProcessingInstruction(target, data);
}
// Node
*********************************************************************************************************
- public org.w3c.dom.Node appendChild(org.w3c.dom.Node node) throws DOMException
+ public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws DOMException
{
- throw new NotImplementedException();
+ return this.doc.appendChild(newChild);
}
- public org.w3c.dom.Node cloneNode(boolean b)
+ public org.w3c.dom.Node cloneNode(boolean deep)
{
- throw new NotImplementedException();
+ return this.doc.cloneNode(deep);
}
public NamedNodeMap getAttributes()
{
- throw new NotImplementedException();
+ return this.doc.getAttributes();
}
public NodeList getChildNodes()
@@ -330,17 +329,17 @@
public String getLocalName()
{
- throw new NotImplementedException();
+ return this.doc.getLocalName();
}
public String getNamespaceURI()
{
- throw new NotImplementedException();
+ return this.doc.getNamespaceURI();
}
public org.w3c.dom.Node getNextSibling()
{
- throw new NotImplementedException();
+ return this.doc.getNextSibling();
}
public String getNodeName()
@@ -355,237 +354,232 @@
public String getNodeValue() throws DOMException
{
- throw new NotImplementedException();
+ return this.doc.getNodeValue();
}
public Document getOwnerDocument()
{
- return doc;
+ return this.doc;
}
public org.w3c.dom.Node getParentNode()
{
- throw new NotImplementedException();
+ return this.doc.getParentNode();
}
public String getPrefix()
{
- throw new NotImplementedException();
+ return this.doc.getPrefix();
}
public org.w3c.dom.Node getPreviousSibling()
{
- throw new NotImplementedException();
+ return this.doc.getPreviousSibling();
}
public boolean hasAttributes()
{
- throw new NotImplementedException();
+ return this.doc.hasAttributes();
}
public boolean hasChildNodes()
{
- throw new NotImplementedException();
+ return this.doc.hasChildNodes();
}
- public org.w3c.dom.Node insertBefore(org.w3c.dom.Node node, org.w3c.dom.Node node1)
throws DOMException
+ public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node
refChild) throws DOMException
{
- throw new NotImplementedException();
+ return this.doc.insertBefore(newChild, refChild);
}
- public boolean isSupported(String s, String s1)
+ public boolean isSupported(String feature, String version)
{
- throw new NotImplementedException();
+ return this.doc.isSupported(feature, version);
}
public void normalize()
{
- throw new NotImplementedException();
+ this.doc.normalize();
}
- public org.w3c.dom.Node removeChild(org.w3c.dom.Node node) throws DOMException
+ public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws DOMException
{
- throw new NotImplementedException();
+ return this.doc.removeChild(oldChild);
}
- public org.w3c.dom.Node replaceChild(org.w3c.dom.Node node, org.w3c.dom.Node node1)
throws DOMException
+ public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node
oldChild) throws DOMException
{
- throw new NotImplementedException();
+ return this.doc.replaceChild(newChild, oldChild);
}
- public void setNodeValue(String s) throws DOMException
+ public void setNodeValue(String nodeValue) throws DOMException
{
- throw new NotImplementedException();
+ this.doc.setNodeValue(nodeValue);
}
public void setPrefix(String s) throws DOMException
{
- throw new NotImplementedException();
+ this.doc.setPrefix(s);
}
public Node adoptNode(Node source) throws DOMException
{
- throw new NotImplementedException("adoptNode");
+ return this.doc.adoptNode(source);
}
public String getDocumentURI()
{
- throw new NotImplementedException("getDocumentURI");
+ return this.doc.getDocumentURI();
}
public DOMConfiguration getDomConfig()
{
- throw new NotImplementedException("getDomConfig");
+ return this.doc.getDomConfig();
}
public String getInputEncoding()
{
- throw new NotImplementedException("getInputEncoding");
+ return this.doc.getInputEncoding();
}
public boolean getStrictErrorChecking()
{
- throw new NotImplementedException("getStrictErrorChecking");
+ return this.doc.getStrictErrorChecking();
}
public String getXmlEncoding()
{
- throw new NotImplementedException("getXmlEncoding");
+ return this.doc.getXmlEncoding();
}
public boolean getXmlStandalone()
{
- throw new NotImplementedException("getXmlStandalone");
+ return this.doc.getXmlStandalone();
}
public String getXmlVersion()
{
- throw new NotImplementedException("getXmlVersion");
+ return this.doc.getXmlVersion();
}
public void normalizeDocument()
{
- throw new NotImplementedException("normalizeDocument");
+ this.doc.normalizeDocument();
}
public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws
DOMException
{
- throw new NotImplementedException("renameNode");
+ return this.doc.renameNode(n, namespaceURI, qualifiedName);
}
public void setDocumentURI(String documentURI)
{
- throw new NotImplementedException("setDocumentURI");
+ this.doc.setDocumentURI(documentURI);
}
public void setStrictErrorChecking(boolean strictErrorChecking)
{
- throw new NotImplementedException("setStrictErrorChecking");
+ this.doc.setStrictErrorChecking(strictErrorChecking);
}
public void setXmlStandalone(boolean xmlStandalone) throws DOMException
{
- throw new NotImplementedException("setXmlStandalone");
+ this.doc.setXmlStandalone(xmlStandalone);
}
public void setXmlVersion(String xmlVersion) throws DOMException
{
- throw new NotImplementedException("setXmlVersion");
+ this.doc.setXmlVersion(xmlVersion);
}
public short compareDocumentPosition(Node other) throws DOMException
{
- throw new NotImplementedException("compareDocumentPosition");
+ return this.doc.compareDocumentPosition(other);
}
public String getBaseURI()
{
- throw new NotImplementedException("getBaseURI");
+ return this.doc.getBaseURI();
}
public Object getFeature(String feature, String version)
{
- throw new NotImplementedException("getFeature");
+ return this.doc.getFeature(feature, version);
}
public String getTextContent() throws DOMException
{
- throw new NotImplementedException("getTextContent");
+ return this.doc.getTextContent();
}
public Object getUserData(String key)
{
- throw new NotImplementedException("getUserData");
+ return this.doc.getUserData(key);
}
public boolean isDefaultNamespace(String namespaceURI)
{
- throw new NotImplementedException("isDefaultNamespace");
+ return this.doc.isDefaultNamespace(namespaceURI);
}
public boolean isEqualNode(Node arg)
{
- throw new NotImplementedException("isEqualNode");
+ return this.doc.isEqualNode(arg);
}
public boolean isSameNode(Node other)
{
- throw new NotImplementedException("isSameNode");
+ return this.doc.isSameNode(other);
}
public String lookupNamespaceURI(String prefix)
{
- throw new NotImplementedException("lookupNamespaceURI");
+ return this.doc.lookupNamespaceURI(prefix);
}
public String lookupPrefix(String namespaceURI)
{
- throw new NotImplementedException("lookupPrefix");
+ return this.doc.lookupPrefix(namespaceURI);
}
public void setTextContent(String textContent) throws DOMException
{
- throw new NotImplementedException("setTextContent");
+ this.doc.setTextContent(textContent);
}
public Object setUserData(String key, Object data, UserDataHandler handler)
{
- throw new NotImplementedException("setUserData");
+ return this.doc.setUserData(key, data, handler);
}
public void detachNode()
{
- //TODO: SAAJ 1.3
- throw new NotImplementedException();
+ // does nothing
}
public SOAPElement getParentElement()
{
- //TODO: SAAJ 1.3
- throw new NotImplementedException();
+ return null;
}
public String getValue()
{
- //TODO: SAAJ 1.3
- throw new NotImplementedException();
+ return null;
}
public void recycleNode()
{
- //TODO: SAAJ 1.3
- throw new NotImplementedException();
+ // does nothing
}
public void setParentElement(SOAPElement parent) throws SOAPException
{
- //TODO: SAAJ 1.3
- throw new NotImplementedException();
+ throw new SOAPException("The parent element of a soap part is not
defined");
}
public void setValue(String value)
{
- //TODO: SAAJ 1.3
- throw new NotImplementedException();
+ throw new IllegalStateException("Setting value of a soap part is not
defined");
}
+
}