|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.axis.message.SOAPDocumentImpl
public class SOAPDocumentImpl
SOAPDcoumentImpl implements the Document API for SOAPPART. At the moment, it again delgate the XERCES DOM Implementation Here is my argument on it: I guess that there is 3 way to implement this. - fully implement the DOM API here myself. => This is too much and duplicated work. - extends XERCES Implementation => this makes we are fixed to one Implementation - choose delgate depends on the user's parser preference => This is the practically best solution I have now
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SOAPDocumentImpl(MessagePart sp)
Construct the Document |
|
| Method Summary | |
|---|---|
Node |
adoptNode(Node source)
|
Node |
appendChild(Node newChild)
|
Node |
cloneNode(boolean deep)
[todo] Study it more.... |
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()
|
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()
[todo] is it OK to simply call the superclass? |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SOAPDocumentImpl(MessagePart sp)
sp - | Method Detail |
|---|
public DocumentType getDoctype()
getDoctype in interface Documentpublic DOMImplementation getImplementation()
getImplementation in interface Documentpublic Element getDocumentElement()
getDocumentElement in interface Document
public Element createElement(String tagName)
throws DOMException
createElement in interface DocumenttagName -
DOMExceptionpublic DocumentFragment createDocumentFragment()
DocumentFragment object. @todo not
implemented yet
createDocumentFragment in interface DocumentDocumentFragment.public Text createTextNode(String data)
Text node given the specified string.
createTextNode in interface Documentdata - The data for the node.
Text object.public Comment createComment(String data)
Comment node given the specified string.
createComment in interface Documentdata - 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 Documentdata - 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 Documenttarget - 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 DocumentDOMException
public EntityReference createEntityReference(String name)
throws DOMException
createEntityReference in interface Documentname -
DOMException
public Node importNode(Node importedNode,
boolean deep)
throws DOMException
importNode in interface DocumentDOMException
public Element createElementNS(String namespaceURI,
String qualifiedName)
throws DOMException
createElementNS in interface DocumentnamespaceURI - qualifiedName -
DOMException
public Attr createAttributeNS(String namespaceURI,
String qualifiedName)
throws DOMException
createAttributeNS in interface DocumentDOMException
public NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
getElementsByTagNameNS in interface Documentpublic NodeList getElementsByTagName(String localName)
getElementsByTagName in interface Documentpublic 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 DocumentelementId - The unique id value for an element.
public String getNodeName()
getNodeName in interface Node
public String getNodeValue()
throws DOMException
getNodeValue in interface NodeDOMException
public void setNodeValue(String nodeValue)
throws DOMException
setNodeValue in interface NodeDOMExceptionpublic short getNodeType()
getNodeType in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic Document getOwnerDocument()
getOwnerDocument in interface Node
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException
insertBefore in interface NodeDOMException
public Node replaceChild(Node newChild,
Node oldChild)
throws DOMException
replaceChild in interface NodeDOMException
public Node removeChild(Node oldChild)
throws DOMException
removeChild in interface NodeDOMException
public Node appendChild(Node newChild)
throws DOMException
appendChild in interface NodeDOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic Node cloneNode(boolean deep)
cloneNode in interface Nodepublic void normalize()
normalize in interface Node
public boolean isSupported(String feature,
String version)
isSupported in interface Nodepublic String getPrefix()
getPrefix in interface Nodepublic void setPrefix(String prefix)
setPrefix in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic void setNamespaceURI(String nsURI)
public String getLocalName()
getLocalName in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic String getInputEncoding()
getInputEncoding in interface Documentpublic String getXmlEncoding()
getXmlEncoding in interface Documentpublic boolean getXmlStandalone()
getXmlStandalone in interface Document
public void setXmlStandalone(boolean xmlStandalone)
throws DOMException
setXmlStandalone in interface DocumentDOMExceptionpublic String getXmlVersion()
getXmlVersion in interface Document
public void setXmlVersion(String xmlVersion)
throws DOMException
setXmlVersion in interface DocumentDOMExceptionpublic boolean getStrictErrorChecking()
getStrictErrorChecking in interface Documentpublic void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking in interface Documentpublic String getDocumentURI()
getDocumentURI in interface Documentpublic void setDocumentURI(String documentURI)
setDocumentURI in interface Document
public Node adoptNode(Node source)
throws DOMException
adoptNode in interface DocumentDOMExceptionpublic DOMConfiguration getDomConfig()
getDomConfig in interface Documentpublic void normalizeDocument()
normalizeDocument in interface Document
public Node renameNode(Node n,
String namespaceURI,
String qualifiedName)
throws DOMException
renameNode in interface DocumentDOMExceptionpublic String getBaseURI()
getBaseURI in interface Node
public short compareDocumentPosition(Node other)
throws DOMException
compareDocumentPosition in interface NodeDOMException
public String getTextContent()
throws DOMException
getTextContent in interface NodeDOMException
public void setTextContent(String textContent)
throws DOMException
setTextContent in interface NodeDOMExceptionpublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface Nodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic boolean isEqualNode(Node arg)
isEqualNode in interface Node
public Object getFeature(String feature,
String version)
getFeature in interface Node
public Object setUserData(String key,
Object data,
UserDataHandler handler)
setUserData in interface Nodepublic Object getUserData(String key)
getUserData in interface Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||