Class BodyImpl
- java.lang.Object
-
- com.sun.xml.messaging.saaj.soap.impl.ElementImpl
-
- com.sun.xml.messaging.saaj.soap.impl.BodyImpl
-
- All Implemented Interfaces:
javax.xml.soap.Node,javax.xml.soap.SOAPBody,javax.xml.soap.SOAPBodyElement,javax.xml.soap.SOAPElement,Element,Node
- 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.- Author:
- Anil Vijendran (anil@sun.com)
-
-
Field Summary
-
Fields inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
DSIG_NS, elementQName, log, WSU_NS, XENC_NS, XML_URI, XMLNS_URI
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBodyImpl(SOAPDocumentImpl ownerDoc, NameImpl bodyName)BodyImpl(SOAPDocumentImpl ownerDoc, Element domElement)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.xml.soap.SOAPBodyElementaddBodyElement(QName qname)javax.xml.soap.SOAPBodyElementaddBodyElement(javax.xml.soap.Name name)javax.xml.soap.SOAPBodyElementaddDocument(Document document)protected javax.xml.soap.SOAPElementaddElement(QName name)protected javax.xml.soap.SOAPElementaddElement(javax.xml.soap.Name name)javax.xml.soap.SOAPFaultaddFault()javax.xml.soap.SOAPFaultaddFault(QName faultCode, String faultString)javax.xml.soap.SOAPFaultaddFault(QName faultCode, String faultString, Locale locale)javax.xml.soap.SOAPFaultaddFault(javax.xml.soap.Name faultCode, String faultString)javax.xml.soap.SOAPFaultaddFault(javax.xml.soap.Name faultCode, String faultString, Locale locale)protected javax.xml.soap.SOAPElementconvertToSoapElement(Element element)protected abstract javax.xml.soap.SOAPBodyElementcreateBodyElement(QName name)protected abstract javax.xml.soap.SOAPBodyElementcreateBodyElement(javax.xml.soap.Name name)protected abstract javax.xml.soap.SOAPFaultcreateFaultElement()DocumentextractContentAsDocument()protected javax.xml.soap.SOAPElementfindFault()NodeListgetChildNodes()protected abstract QNamegetDefaultFaultCode()javax.xml.soap.SOAPFaultgetFault()protected abstract NameImplgetFaultName(String name)NodegetFirstChild()NodegetFirstChildNoMaterialize()NodegetLastChild()booleanhasChildNodes()booleanhasFault()protected abstract booleanisFault(javax.xml.soap.SOAPElement child)booleanisLazy()javax.xml.soap.SOAPElementsetElementQName(QName newName)voidsetParentElement(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, appendChild, cloneNode, compareDocumentPosition, convertToSoapText, createElement, createElement, createQName, detachNode, doGetNamespacePrefixes, ensureNamespaceIsDeclared, findAndConvertChildElement, findChild, findEncodingStyleAttributeName, getAllAttributes, getAllAttributesAsQNames, getAllAttributesFrom, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getAttributeValue, getAttributeValueFrom, getBaseURI, getChildElementNodes, getChildElements, getChildElements, getChildElements, getChildElementsFrom, getDomElement, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFeature, getLocalName, getLocalPart, getNamespaceAttr, getNamespaceAttrFrom, getNamespaceContextNodes, getNamespaceContextNodes, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPrefix, getPreviousSibling, getQualifiedName, getSchemaTypeInfo, getSoapDocument, getSOAPNamespace, getTagName, getTextContent, getUserData, getValue, getValueNode, getValueNodeStrict, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasAttributes, importElement, insertBefore, isDefaultNamespace, isEqualNode, isNamespaceQualified, isNamespaceQualified, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeAttribute, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, replaceElementWithSOAPElement, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setEncodingStyle, setEncodingStyleNamespace, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setUserData, setValue, tryToFindEncodingStyleAttributeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setValue
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
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
-
-
-
-
Constructor Detail
-
BodyImpl
protected BodyImpl(SOAPDocumentImpl ownerDoc, NameImpl bodyName)
-
BodyImpl
public BodyImpl(SOAPDocumentImpl ownerDoc, Element domElement)
-
-
Method Detail
-
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(QName name)
-
createFaultElement
protected abstract javax.xml.soap.SOAPFault createFaultElement()
-
getDefaultFaultCode
protected abstract QName getDefaultFaultCode()
-
addFault
public javax.xml.soap.SOAPFault addFault() throws javax.xml.soap.SOAPException- Specified by:
addFaultin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
addFault
public javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name faultCode, String faultString, Locale locale) throws javax.xml.soap.SOAPException- Specified by:
addFaultin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
addFault
public javax.xml.soap.SOAPFault addFault(QName faultCode, String faultString, Locale locale) throws javax.xml.soap.SOAPException
- Specified by:
addFaultin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
addFault
public javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name faultCode, String faultString) throws javax.xml.soap.SOAPException- Specified by:
addFaultin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
addFault
public javax.xml.soap.SOAPFault addFault(QName faultCode, String faultString) throws javax.xml.soap.SOAPException
- Specified by:
addFaultin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
findFault
protected javax.xml.soap.SOAPElement findFault()
-
hasFault
public boolean hasFault()
- Specified by:
hasFaultin interfacejavax.xml.soap.SOAPBody
-
getFault
public javax.xml.soap.SOAPFault getFault()
- Specified by:
getFaultin interfacejavax.xml.soap.SOAPBody
-
addBodyElement
public javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.soap.Name name) throws javax.xml.soap.SOAPException- Specified by:
addBodyElementin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
addBodyElement
public javax.xml.soap.SOAPBodyElement addBodyElement(QName qname) throws javax.xml.soap.SOAPException
- Specified by:
addBodyElementin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
setParentElement
public void setParentElement(javax.xml.soap.SOAPElement element) throws javax.xml.soap.SOAPException- Specified by:
setParentElementin interfacejavax.xml.soap.Node- Overrides:
setParentElementin classElementImpl- Throws:
javax.xml.soap.SOAPException
-
addElement
protected javax.xml.soap.SOAPElement addElement(javax.xml.soap.Name name) throws javax.xml.soap.SOAPException- Overrides:
addElementin classElementImpl- Throws:
javax.xml.soap.SOAPException
-
addElement
protected javax.xml.soap.SOAPElement addElement(QName name) throws javax.xml.soap.SOAPException
- Overrides:
addElementin classElementImpl- Throws:
javax.xml.soap.SOAPException
-
addDocument
public javax.xml.soap.SOAPBodyElement addDocument(Document document) throws javax.xml.soap.SOAPException
- Specified by:
addDocumentin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
convertToSoapElement
protected javax.xml.soap.SOAPElement convertToSoapElement(Element element)
- Overrides:
convertToSoapElementin classElementImpl
-
setElementQName
public javax.xml.soap.SOAPElement setElementQName(QName newName) throws javax.xml.soap.SOAPException
- Specified by:
setElementQNamein interfacejavax.xml.soap.SOAPElement- Overrides:
setElementQNamein classElementImpl- Throws:
javax.xml.soap.SOAPException
-
extractContentAsDocument
public Document extractContentAsDocument() throws javax.xml.soap.SOAPException
- Specified by:
extractContentAsDocumentin interfacejavax.xml.soap.SOAPBody- Throws:
javax.xml.soap.SOAPException
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodesin interfaceNode- Overrides:
hasChildNodesin classElementImpl
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceNode- Overrides:
getChildNodesin classElementImpl
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChildin interfaceNode- Overrides:
getFirstChildin classElementImpl
-
getFirstChildNoMaterialize
public Node getFirstChildNoMaterialize()
-
getLastChild
public Node getLastChild()
- Specified by:
getLastChildin interfaceNode- Overrides:
getLastChildin classElementImpl
-
isLazy
public boolean isLazy()
-
-