com.sun.xml.messaging.saaj.soap.impl
Class BodyImpl
java.lang.Object
com.sun.org.apache.xerces.internal.dom.NodeImpl
com.sun.org.apache.xerces.internal.dom.ChildNode
com.sun.org.apache.xerces.internal.dom.ParentNode
com.sun.org.apache.xerces.internal.dom.ElementImpl
com.sun.org.apache.xerces.internal.dom.ElementNSImpl
com.sun.xml.messaging.saaj.soap.impl.ElementImpl
com.sun.xml.messaging.saaj.soap.impl.BodyImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, javax.xml.soap.SOAPBody, javax.xml.soap.SOAPBodyElement, javax.xml.soap.SOAPElement, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo
- Direct Known Subclasses:
- Body1_1Impl, Body1_2Impl
public abstract class BodyImpl
- extends ElementImpl
- implements javax.xml.soap.SOAPBody
The implementation of SOAP-ENV:BODY or the SOAPBody abstraction.
- See Also:
- Serialized Form
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl |
localName, namespaceURI |
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl |
attributes, name |
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode |
firstChild, fNodeListCache, ownerDocument |
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE |
Fields inherited from interface org.w3c.dom.Node |
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 |
Fields inherited from interface org.w3c.dom.TypeInfo |
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
Method Summary |
javax.xml.soap.SOAPBodyElement |
addBodyElement(javax.xml.soap.Name name)
|
javax.xml.soap.SOAPBodyElement |
addBodyElement(javax.xml.namespace.QName qname)
|
javax.xml.soap.SOAPBodyElement |
addDocument(org.w3c.dom.Document document)
|
protected javax.xml.soap.SOAPElement |
addElement(javax.xml.soap.Name name)
|
protected javax.xml.soap.SOAPElement |
addElement(javax.xml.namespace.QName name)
|
javax.xml.soap.SOAPFault |
addFault()
|
javax.xml.soap.SOAPFault |
addFault(javax.xml.soap.Name faultCode,
java.lang.String faultString)
|
javax.xml.soap.SOAPFault |
addFault(javax.xml.soap.Name faultCode,
java.lang.String faultString,
java.util.Locale locale)
|
javax.xml.soap.SOAPFault |
addFault(javax.xml.namespace.QName faultCode,
java.lang.String faultString)
|
javax.xml.soap.SOAPFault |
addFault(javax.xml.namespace.QName faultCode,
java.lang.String faultString,
java.util.Locale locale)
|
protected javax.xml.soap.SOAPElement |
convertToSoapElement(org.w3c.dom.Element element)
|
protected abstract javax.xml.soap.SOAPBodyElement |
createBodyElement(javax.xml.soap.Name name)
|
protected abstract javax.xml.soap.SOAPBodyElement |
createBodyElement(javax.xml.namespace.QName name)
|
protected abstract javax.xml.soap.SOAPFault |
createFaultElement()
|
org.w3c.dom.Document |
extractContentAsDocument()
|
protected javax.xml.soap.SOAPElement |
findFault()
|
protected abstract javax.xml.namespace.QName |
getDefaultFaultCode()
|
javax.xml.soap.SOAPFault |
getFault()
|
protected abstract NameImpl |
getFaultName(java.lang.String name)
|
boolean |
hasFault()
|
protected abstract boolean |
isFault(javax.xml.soap.SOAPElement child)
|
javax.xml.soap.SOAPElement |
setElementQName(javax.xml.namespace.QName newName)
|
void |
setParentElement(javax.xml.soap.SOAPElement element)
|
Methods inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl |
addAttribute, addAttribute, addCDATA, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addNode, addText, addTextNode, circumventBug5034339, createElement, createElement, createQName, detachNode, doGetNamespacePrefixes, ensureNamespaceIsDeclared, findChild, findEncodingStyleAttributeName, getAllAttributes, getAllAttributesAsQNames, getAllAttributesFrom, getAttributeValue, getAttributeValue, getAttributeValueFrom, getChildElementNodes, getChildElements, getChildElements, getChildElements, getChildElementsFrom, getElementName, getElementQName, getEncodingStyle, getLocalPart, getNamespaceAttr, getNamespaceAttrFrom, getNamespaceContextNodes, getNamespaceContextNodes, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getOwnerDocument, getParentElement, getPrefix, getQualifiedName, getSOAPNamespace, getValue, getValueNode, getValueNodeStrict, getVisibleNamespacePrefixes, importElement, isNamespaceQualified, isNamespaceQualified, recycleNode, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, replaceElementWithSOAPElement, setAttributeNS, setEncodingStyle, setEncodingStyleNamespace, setValue, tryToFindEncodingStyleAttributeName |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl |
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildren |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.soap.SOAPElement |
addAttribute, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle |
Methods inherited from interface javax.xml.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setValue |
Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
BodyImpl
protected BodyImpl(SOAPDocumentImpl ownerDoc,
NameImpl bodyName)
getFaultName
protected abstract NameImpl getFaultName(java.lang.String name)
isFault
protected abstract boolean isFault(javax.xml.soap.SOAPElement child)
createBodyElement
protected abstract javax.xml.soap.SOAPBodyElement createBodyElement(javax.xml.soap.Name name)
createBodyElement
protected abstract javax.xml.soap.SOAPBodyElement createBodyElement(javax.xml.namespace.QName name)
createFaultElement
protected abstract javax.xml.soap.SOAPFault createFaultElement()
getDefaultFaultCode
protected abstract javax.xml.namespace.QName getDefaultFaultCode()
addFault
public javax.xml.soap.SOAPFault addFault()
throws javax.xml.soap.SOAPException
- Specified by:
addFault
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException
addFault
public javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name faultCode,
java.lang.String faultString,
java.util.Locale locale)
throws javax.xml.soap.SOAPException
- Specified by:
addFault
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException
addFault
public javax.xml.soap.SOAPFault addFault(javax.xml.namespace.QName faultCode,
java.lang.String faultString,
java.util.Locale locale)
throws javax.xml.soap.SOAPException
- Specified by:
addFault
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException
addFault
public javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name faultCode,
java.lang.String faultString)
throws javax.xml.soap.SOAPException
- Specified by:
addFault
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException
addFault
public javax.xml.soap.SOAPFault addFault(javax.xml.namespace.QName faultCode,
java.lang.String faultString)
throws javax.xml.soap.SOAPException
- Specified by:
addFault
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException
findFault
protected javax.xml.soap.SOAPElement findFault()
hasFault
public boolean hasFault()
- Specified by:
hasFault
in interface javax.xml.soap.SOAPBody
getFault
public javax.xml.soap.SOAPFault getFault()
- Specified by:
getFault
in interface javax.xml.soap.SOAPBody
addBodyElement
public javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
- Specified by:
addBodyElement
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException
addBodyElement
public javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.namespace.QName qname)
throws javax.xml.soap.SOAPException
- Specified by:
addBodyElement
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException
setParentElement
public void setParentElement(javax.xml.soap.SOAPElement element)
throws javax.xml.soap.SOAPException
- Overrides:
setParentElement
in class ElementImpl
- Throws:
javax.xml.soap.SOAPException
addElement
protected javax.xml.soap.SOAPElement addElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
- Overrides:
addElement
in class ElementImpl
- Throws:
javax.xml.soap.SOAPException
addElement
protected javax.xml.soap.SOAPElement addElement(javax.xml.namespace.QName name)
throws javax.xml.soap.SOAPException
- Overrides:
addElement
in class ElementImpl
- Throws:
javax.xml.soap.SOAPException
addDocument
public javax.xml.soap.SOAPBodyElement addDocument(org.w3c.dom.Document document)
throws javax.xml.soap.SOAPException
- Specified by:
addDocument
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException
convertToSoapElement
protected javax.xml.soap.SOAPElement convertToSoapElement(org.w3c.dom.Element element)
- Overrides:
convertToSoapElement
in class ElementImpl
setElementQName
public javax.xml.soap.SOAPElement setElementQName(javax.xml.namespace.QName newName)
throws javax.xml.soap.SOAPException
- Specified by:
setElementQName
in interface javax.xml.soap.SOAPElement
- Overrides:
setElementQName
in class ElementImpl
- Throws:
javax.xml.soap.SOAPException
extractContentAsDocument
public org.w3c.dom.Document extractContentAsDocument()
throws javax.xml.soap.SOAPException
- Specified by:
extractContentAsDocument
in interface javax.xml.soap.SOAPBody
- Throws:
javax.xml.soap.SOAPException