org.apache.axis.message
public class SOAPDocumentImpl extends Object implements Document, Serializable
Field Summary | |
---|---|
protected Document | delegate |
protected SOAPPart | soapPart |
Constructor Summary | |
---|---|
SOAPDocumentImpl(SOAPPart sp)
Construct the Document
|
Method Summary | |
---|---|
Node | adoptNode(Node source) |
Node | appendChild(Node newChild) |
Node | cloneNode(boolean deep) |
short | compareDocumentPosition(Node other) |
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() |
String | getBaseURI()
DOM Level 3 stubs |
NodeList | getChildNodes() |
DocumentType | getDoctype() |
Element | getDocumentElement()
should not be called, the method will be handled in SOAPPart
|
String | getDocumentURI() |
DOMConfiguration | getDomConfig() |
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
|
Object | getFeature(String feature, String version) |
Node | getFirstChild()
Do we have to count the Attributes as node ? |
DOMImplementation | getImplementation() |
String | getInputEncoding() |
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 | getStrictErrorChecking() |
String | getTextContent() |
Object | getUserData(String key) |
String | getXmlEncoding() |
boolean | getXmlStandalone() |
String | getXmlVersion() |
boolean | hasAttributes() |
boolean | hasChildNodes() |
Node | importNode(Node importedNode, boolean deep) |
Node | insertBefore(Node newChild, Node refChild) |
boolean | isDefaultNamespace(String namespaceURI) |
boolean | isEqualNode(Node arg) |
boolean | isSameNode(Node other) |
boolean | isSupported(String feature, String version) |
String | lookupNamespaceURI(String prefix) |
String | lookupPrefix(String namespaceURI) |
void | normalize() |
void | normalizeDocument() |
Node | removeChild(Node oldChild) |
Node | renameNode(Node n, String namespaceURI, String qualifiedName) |
Node | replaceChild(Node newChild, Node oldChild) |
void | setDocumentURI(String documentURI) |
void | setNamespaceURI(String nsURI) |
void | setNodeValue(String nodeValue) |
void | setPrefix(String prefix) |
void | setStrictErrorChecking(boolean strictErrorChecking) |
void | setTextContent(String textContent) |
Object | setUserData(String key, Object data, UserDataHandler handler) |
void | setXmlStandalone(boolean xmlStandalone) |
void | setXmlVersion(String xmlVersion) |
Parameters: sp the soap part
UNKNOWN: Study it more.... to implement the deep mode correctly.
UNKNOWN: How Axis will maintain the Attribute representation ?
CDATASection
node whose value is the specified
string.
Parameters: data
The data for the CDATASection
contents.
Returns: The new CDATASection
object.
Throws: DOMException NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
Comment
node given the specified string.
Parameters: data The data for the node.
Returns: The new Comment
object.
DocumentFragment
object. @todo not
implemented yet
Returns: A new DocumentFragment
.
Parameters: tagName
Returns: @throws DOMException
UNKNOWN: : verify this method
Parameters: namespaceURI qualifiedName
Returns: @throws DOMException
Parameters: name
Returns: @throws DOMException
ProcessingInstruction
node given the specified
name and data strings.
Parameters: target The target part of the processing instruction. data The data for the node.
Returns: The new ProcessingInstruction
object.
Throws: DOMException
INVALID_CHARACTER_ERR: Raised if the specified target
contains an illegal character.
NOT_SUPPORTED_ERR:
Raised if this document is an HTML document.
Text
node given the specified string.
Parameters: data The data for the node.
Returns: The new Text
object.
Returns:
UNKNOWN: : link with SOAP
Returns:
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
.
Parameters: elementId
The unique id
value for an element.
Returns: The matching element.
Since: DOM Level 2
Returns:
Returns:
Returns:
UNKNOWN: is it OK to simply call the superclass?