public class SOAPDocumentImpl extends Object implements Document, Serializable
Modifier and Type | Field and Description |
---|---|
protected 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 |
---|---|
Node |
appendChild(Node newChild) |
Node |
cloneNode(boolean deep) |
Attr |
createAttribute(String name) |
Attr |
createAttributeNS(String namespaceURI,
String qualifiedName)
Attribute is not particularly dealt with in SAAJ.
|
CDATASection |
createCDATASection(String data)
Creates a
CDATASection node whose value is the specified
string. |
Comment |
createComment(String data)
Creates a
Comment node given the specified string. |
DocumentFragment |
createDocumentFragment()
Creates an empty
DocumentFragment object. |
Element |
createElement(String tagName)
based on the tagName, we will make different kind SOAP Elements Instance
Is really we can determine the Type by the Tagname???
|
Element |
createElementNS(String namespaceURI,
String qualifiedName)
Return SOAPElements (what if they want SOAPEnvelope or Header/Body?)
|
EntityReference |
createEntityReference(String name) |
ProcessingInstruction |
createProcessingInstruction(String target,
String data)
Creates a
ProcessingInstruction node given the specified
name and data strings. |
Text |
createTextNode(String data)
Creates a
Text node given the specified string. |
NamedNodeMap |
getAttributes() |
NodeList |
getChildNodes() |
DocumentType |
getDoctype() |
Element |
getDocumentElement()
should not be called, the method will be handled in SOAPPart
|
Element |
getElementById(String elementId)
Returns the
Element whose ID is given by
elementId . |
NodeList |
getElementsByTagName(String localName)
search the SOAPPart in order of SOAPHeader and SOAPBody for the
requested Element name
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
search the SOAPPart in order of SOAPHeader and SOAPBody for the
requested Element name
|
Node |
getFirstChild()
Do we have to count the Attributes as node ????
|
DOMImplementation |
getImplementation() |
Node |
getLastChild() |
String |
getLocalName() |
String |
getNamespaceURI() |
Node |
getNextSibling() |
String |
getNodeName()
Node Implementation
|
short |
getNodeType()
override it in sub-classes
|
String |
getNodeValue() |
Document |
getOwnerDocument()
we have to have a link to them...
|
Node |
getParentNode() |
String |
getPrefix() |
Node |
getPreviousSibling() |
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
Node |
importNode(Node importedNode,
boolean deep) |
Node |
insertBefore(Node newChild,
Node refChild) |
boolean |
isSupported(String feature,
String version) |
void |
normalize() |
Node |
removeChild(Node oldChild) |
Node |
replaceChild(Node newChild,
Node oldChild) |
void |
setNamespaceURI(String nsURI) |
void |
setNodeValue(String nodeValue) |
void |
setPrefix(String prefix) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adoptNode, getDocumentURI, getDomConfig, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersion
compareDocumentPosition, getBaseURI, getFeature, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
public SOAPDocumentImpl(SOAPPart sp)
sp
- the soap partpublic DocumentType getDoctype()
getDoctype
in interface Document
public DOMImplementation getImplementation()
getImplementation
in interface Document
public Element getDocumentElement()
getDocumentElement
in interface Document
public Element createElement(String tagName) throws DOMException
createElement
in interface Document
tagName
- DOMException
public DocumentFragment createDocumentFragment()
DocumentFragment
object. @todo not
implemented yetcreateDocumentFragment
in interface Document
DocumentFragment
.public Text createTextNode(String data)
Text
node given the specified string.createTextNode
in interface Document
data
- The data for the node.Text
object.public Comment createComment(String data)
Comment
node given the specified string.createComment
in interface Document
data
- The data for the node.Comment
object.public CDATASection createCDATASection(String data) throws DOMException
CDATASection
node whose value is the specified
string.createCDATASection
in interface Document
data
- The data for the CDATASection
contents.CDATASection
object.DOMException
- NOT_SUPPORTED_ERR: Raised if this document is an HTML
document.public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
ProcessingInstruction
node given the specified
name and data strings.createProcessingInstruction
in interface Document
target
- The target part of the processing instruction.data
- The data for the node.ProcessingInstruction
object.DOMException
- INVALID_CHARACTER_ERR: Raised if the specified target
contains an illegal character. public Attr createAttribute(String name) throws DOMException
createAttribute
in interface Document
DOMException
public EntityReference createEntityReference(String name) throws DOMException
createEntityReference
in interface Document
name
- DOMException
public Node importNode(Node importedNode, boolean deep) throws DOMException
importNode
in interface Document
DOMException
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
createElementNS
in interface Document
namespaceURI
- qualifiedName
- DOMException
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
createAttributeNS
in interface Document
DOMException
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Document
public NodeList getElementsByTagName(String localName)
getElementsByTagName
in interface Document
public Element getElementById(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 Document
elementId
- The unique id
value for an element.public String getNodeName()
getNodeName
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
public short getNodeType()
getNodeType
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
public boolean hasChildNodes()
hasChildNodes
in interface Node
public boolean isSupported(String feature, String version)
isSupported
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public void setNamespaceURI(String nsURI)
public String getLocalName()
getLocalName
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
Copyright © The Apache Software Foundation. All Rights Reserved.