org.apache.axis.message
public class SOAPDocumentImpl extends java.lang.Object implements org.w3c.dom.Document, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected org.w3c.dom.Document |
delegate |
protected SOAPPart |
soapPart |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
SOAPDocumentImpl(SOAPPart sp)
Construct the Document
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node source) |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild) |
org.w3c.dom.Node |
cloneNode(boolean deep) |
short |
compareDocumentPosition(org.w3c.dom.Node other) |
org.w3c.dom.Attr |
createAttribute(java.lang.String name) |
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Attribute is not particularly dealt with in SAAJ.
|
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data)
Creates a
CDATASection node whose value is the specified
string. |
org.w3c.dom.Comment |
createComment(java.lang.String data)
Creates a
Comment node given the specified string. |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
Creates an empty
DocumentFragment object. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
based on the tagName, we will make different kind SOAP Elements Instance
Is really we can determine the Type by the Tagname???
|
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Return SOAPElements (what if they want SOAPEnvelope or Header/Body?)
|
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name) |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Creates a
ProcessingInstruction node given the specified
name and data strings. |
org.w3c.dom.Text |
createTextNode(java.lang.String data)
Creates a
Text node given the specified string. |
org.w3c.dom.NamedNodeMap |
getAttributes() |
java.lang.String |
getBaseURI()
DOM Level 3 stubs
|
org.w3c.dom.NodeList |
getChildNodes() |
org.w3c.dom.DocumentType |
getDoctype() |
org.w3c.dom.Element |
getDocumentElement()
should not be called, the method will be handled in SOAPPart
|
java.lang.String |
getDocumentURI() |
org.w3c.dom.DOMConfiguration |
getDomConfig() |
org.w3c.dom.Element |
getElementById(java.lang.String elementId)
Returns the
Element whose ID is given by
elementId. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String localName)
search the SOAPPart in order of SOAPHeader and SOAPBody for the
requested Element name
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
search the SOAPPart in order of SOAPHeader and SOAPBody for the
requested Element name
|
java.lang.Object |
getFeature(java.lang.String feature,
java.lang.String version) |
org.w3c.dom.Node |
getFirstChild()
Do we have to count the Attributes as node ????
|
org.w3c.dom.DOMImplementation |
getImplementation() |
java.lang.String |
getInputEncoding() |
org.w3c.dom.Node |
getLastChild() |
java.lang.String |
getLocalName() |
java.lang.String |
getNamespaceURI() |
org.w3c.dom.Node |
getNextSibling() |
java.lang.String |
getNodeName()
Node Implementation
|
short |
getNodeType()
override it in sub-classes
|
java.lang.String |
getNodeValue() |
org.w3c.dom.Document |
getOwnerDocument()
we have to have a link to them...
|
org.w3c.dom.Node |
getParentNode() |
java.lang.String |
getPrefix() |
org.w3c.dom.Node |
getPreviousSibling() |
boolean |
getStrictErrorChecking() |
java.lang.String |
getTextContent() |
java.lang.Object |
getUserData(java.lang.String key) |
java.lang.String |
getXmlEncoding() |
boolean |
getXmlStandalone() |
java.lang.String |
getXmlVersion() |
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep) |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild) |
boolean |
isDefaultNamespace(java.lang.String namespaceURI) |
boolean |
isEqualNode(org.w3c.dom.Node arg) |
boolean |
isSameNode(org.w3c.dom.Node other) |
boolean |
isSupported(java.lang.String feature,
java.lang.String version) |
java.lang.String |
lookupNamespaceURI(java.lang.String prefix) |
java.lang.String |
lookupPrefix(java.lang.String namespaceURI) |
void |
normalize() |
void |
normalizeDocument() |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild) |
org.w3c.dom.Node |
renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName) |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild) |
void |
setDocumentURI(java.lang.String documentURI) |
void |
setNamespaceURI(java.lang.String nsURI) |
void |
setNodeValue(java.lang.String nodeValue) |
void |
setPrefix(java.lang.String prefix) |
void |
setStrictErrorChecking(boolean strictErrorChecking) |
void |
setTextContent(java.lang.String textContent) |
java.lang.Object |
setUserData(java.lang.String key,
java.lang.Object data,
org.w3c.dom.UserDataHandler handler) |
void |
setXmlStandalone(boolean xmlStandalone) |
void |
setXmlVersion(java.lang.String xmlVersion) |
protected org.w3c.dom.Document delegate
protected SOAPPart soapPart
public SOAPDocumentImpl(SOAPPart sp)
sp - the soap partpublic org.w3c.dom.DocumentType getDoctype()
getDoctype in interface org.w3c.dom.Documentpublic org.w3c.dom.DOMImplementation getImplementation()
getImplementation in interface org.w3c.dom.Documentpublic org.w3c.dom.Element getDocumentElement()
getDocumentElement in interface org.w3c.dom.Documentpublic org.w3c.dom.Element createElement(java.lang.String tagName)
throws org.w3c.dom.DOMException
createElement in interface org.w3c.dom.DocumenttagName - org.w3c.dom.DOMExceptionpublic org.w3c.dom.DocumentFragment createDocumentFragment()
DocumentFragment object. @todo not
implemented yetcreateDocumentFragment in interface org.w3c.dom.DocumentDocumentFragment.public org.w3c.dom.Text createTextNode(java.lang.String data)
Text node given the specified string.createTextNode in interface org.w3c.dom.Documentdata - The data for the node.Text object.public org.w3c.dom.Comment createComment(java.lang.String data)
Comment node given the specified string.createComment in interface org.w3c.dom.Documentdata - The data for the node.Comment object.public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
throws org.w3c.dom.DOMException
CDATASection node whose value is the specified
string.createCDATASection in interface org.w3c.dom.Documentdata - The data for the CDATASection contents.CDATASection object.org.w3c.dom.DOMException - NOT_SUPPORTED_ERR: Raised if this document is an HTML
document.public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws org.w3c.dom.DOMException
ProcessingInstruction node given the specified
name and data strings.createProcessingInstruction in interface org.w3c.dom.Documenttarget - The target part of the processing instruction.data - The data for the node.ProcessingInstruction object.org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified target
contains an illegal character. public org.w3c.dom.Attr createAttribute(java.lang.String name)
throws org.w3c.dom.DOMException
createAttribute in interface org.w3c.dom.Documentorg.w3c.dom.DOMExceptionpublic org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
throws org.w3c.dom.DOMException
createEntityReference in interface org.w3c.dom.Documentname - org.w3c.dom.DOMExceptionpublic org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
boolean deep)
throws org.w3c.dom.DOMException
importNode in interface org.w3c.dom.Documentorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
createElementNS in interface org.w3c.dom.DocumentnamespaceURI - qualifiedName - org.w3c.dom.DOMExceptionpublic org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
createAttributeNS in interface org.w3c.dom.Documentorg.w3c.dom.DOMExceptionpublic org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
getElementsByTagNameNS in interface org.w3c.dom.Documentpublic org.w3c.dom.NodeList getElementsByTagName(java.lang.String localName)
getElementsByTagName in interface org.w3c.dom.Documentpublic org.w3c.dom.Element getElementById(java.lang.String elementId)
Element whose ID is given by
elementId. If no such element exists, returns null.
Behavior is not defined if more than one element has this ID.
The DOM implementation must have information that says which attributes
are of type ID. Attributes with the name "ID" are not of type ID unless
so defined. Implementations that do not know whether attributes are of
type ID or not are expected to return null.getElementById in interface org.w3c.dom.DocumentelementId - The unique id value for an element.public java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic java.lang.String getNodeValue()
throws org.w3c.dom.DOMException
getNodeValue in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic void setNodeValue(java.lang.String nodeValue)
throws org.w3c.dom.DOMException
setNodeValue in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic short getNodeType()
getNodeType in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getParentNode()
getParentNode in interface org.w3c.dom.Nodepublic org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getFirstChild()
getFirstChild in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getLastChild()
getLastChild in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.NamedNodeMap getAttributes()
getAttributes in interface org.w3c.dom.Nodepublic org.w3c.dom.Document getOwnerDocument()
getOwnerDocument in interface org.w3c.dom.Nodepublic org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
insertBefore in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
replaceChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
removeChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
appendChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.Nodepublic org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.Nodepublic void normalize()
normalize in interface org.w3c.dom.Nodepublic boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface org.w3c.dom.Nodepublic java.lang.String getPrefix()
getPrefix in interface org.w3c.dom.Nodepublic void setPrefix(java.lang.String prefix)
setPrefix in interface org.w3c.dom.Nodepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface org.w3c.dom.Nodepublic void setNamespaceURI(java.lang.String nsURI)
public java.lang.String getLocalName()
getLocalName in interface org.w3c.dom.Nodepublic boolean hasAttributes()
hasAttributes in interface org.w3c.dom.Nodepublic java.lang.String getBaseURI()
getBaseURI in interface org.w3c.dom.Nodepublic boolean getXmlStandalone()
getXmlStandalone in interface org.w3c.dom.Documentpublic boolean getStrictErrorChecking()
getStrictErrorChecking in interface org.w3c.dom.Documentpublic void setXmlStandalone(boolean xmlStandalone)
setXmlStandalone in interface org.w3c.dom.Documentpublic org.w3c.dom.Node renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
renameNode in interface org.w3c.dom.Documentpublic void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking in interface org.w3c.dom.Documentpublic java.lang.Object setUserData(java.lang.String key,
java.lang.Object data,
org.w3c.dom.UserDataHandler handler)
setUserData in interface org.w3c.dom.Nodepublic java.lang.String getInputEncoding()
getInputEncoding in interface org.w3c.dom.Documentpublic java.lang.String getXmlEncoding()
getXmlEncoding in interface org.w3c.dom.Documentpublic void setTextContent(java.lang.String textContent)
setTextContent in interface org.w3c.dom.Nodepublic boolean isSameNode(org.w3c.dom.Node other)
isSameNode in interface org.w3c.dom.Nodepublic java.lang.String getDocumentURI()
getDocumentURI in interface org.w3c.dom.Documentpublic void setDocumentURI(java.lang.String documentURI)
setDocumentURI in interface org.w3c.dom.Documentpublic java.lang.Object getFeature(java.lang.String feature,
java.lang.String version)
getFeature in interface org.w3c.dom.Nodepublic org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
adoptNode in interface org.w3c.dom.Documentpublic boolean isDefaultNamespace(java.lang.String namespaceURI)
isDefaultNamespace in interface org.w3c.dom.Nodepublic boolean isEqualNode(org.w3c.dom.Node arg)
isEqualNode in interface org.w3c.dom.Nodepublic void setXmlVersion(java.lang.String xmlVersion)
setXmlVersion in interface org.w3c.dom.Documentpublic java.lang.String getXmlVersion()
getXmlVersion in interface org.w3c.dom.Documentpublic java.lang.String lookupPrefix(java.lang.String namespaceURI)
lookupPrefix in interface org.w3c.dom.Nodepublic java.lang.Object getUserData(java.lang.String key)
getUserData in interface org.w3c.dom.Nodepublic java.lang.String getTextContent()
getTextContent in interface org.w3c.dom.Nodepublic void normalizeDocument()
normalizeDocument in interface org.w3c.dom.Documentpublic java.lang.String lookupNamespaceURI(java.lang.String prefix)
lookupNamespaceURI in interface org.w3c.dom.Nodepublic org.w3c.dom.DOMConfiguration getDomConfig()
getDomConfig in interface org.w3c.dom.Documentpublic short compareDocumentPosition(org.w3c.dom.Node other)
compareDocumentPosition in interface org.w3c.dom.NodeCopyright ? 2005 Apache Web Services Project. All Rights Reserved.