public class SOAPBodyImpl extends SOAPElementImpl implements javax.xml.soap.SOAPBody
elementparentElementbuilder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIEDATTRIBUTE_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 |
|---|
SOAPBodyImpl(org.apache.axiom.soap.SOAPBody omSOAPBody) |
| Modifier and Type | Method and Description |
|---|---|
javax.xml.soap.SOAPElement |
addAttribute(javax.xml.namespace.QName qname,
java.lang.String value) |
javax.xml.soap.SOAPBodyElement |
addBodyElement(javax.xml.soap.Name name)
Creates a new
SOAPBodyElement object with the specified name and adds it to this
SOAPBody object. |
javax.xml.soap.SOAPBodyElement |
addBodyElement(javax.xml.namespace.QName qname)
Creates a new
SOAPBodyElement object with the specified name and adds it to this
SOAPBody object. |
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.namespace.QName qname) |
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.soap.SOAPElement soapElement) |
javax.xml.soap.SOAPElement |
addChildElement(java.lang.String localName) |
javax.xml.soap.SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefix) |
javax.xml.soap.SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri) |
javax.xml.soap.SOAPBodyElement |
addDocument(org.w3c.dom.Document document)
Adds the root node of the DOM
Document to this SOAPBody object. |
javax.xml.soap.SOAPFault |
addFault()
Creates a new
SOAPFault object and adds it to this SOAPBody
object. |
javax.xml.soap.SOAPFault |
addFault(javax.xml.soap.Name faultCode,
java.lang.String faultString)
Creates a new
SOAPFault object and adds it to this SOAPBody object. |
javax.xml.soap.SOAPFault |
addFault(javax.xml.soap.Name faultCode,
java.lang.String faultString,
java.util.Locale locale)
Creates a new
SOAPFault object and adds it to this SOAPBody object. |
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)
Creates a new
SOAPFault object and adds it to this SOAPBody object. |
javax.xml.soap.SOAPElement |
addTextNode(java.lang.String text)
Creates a new
Text object initialized with the given String and
adds it to this SOAPElement object. |
protected org.w3c.dom.Element |
appendElement(org.apache.axiom.om.impl.dom.ElementImpl child) |
javax.xml.namespace.QName |
createQName(java.lang.String localName,
java.lang.String prefix)
Creates a QName whose namespace URI is the one associated with the parameter, prefix, in the
context of this SOAPElement.
|
org.apache.axiom.om.OMNode |
detach() |
void |
detachNode()
Removes this
Node object from the tree. |
org.w3c.dom.Document |
extractContentAsDocument()
Creates a new DOM org.w3c.dom.Document and sets the first child of this SOAPBody as its
document element.
|
java.util.Iterator |
getAllAttributesAsQNames() |
java.lang.String |
getAttributeValue(javax.xml.namespace.QName qname) |
java.util.Iterator |
getChildElements()
Returns an iterator over all the immediate content of this element.
|
java.util.Iterator |
getChildElements(javax.xml.soap.Name name) |
java.util.Iterator |
getChildElements(javax.xml.namespace.QName qname) |
javax.xml.namespace.QName |
getElementQName() |
javax.xml.soap.SOAPFault |
getFault()
Returns the
SOAPFault object in this SOAPBody object. |
boolean |
hasFault()
Indicates whether a
SOAPFault object exists in this SOAPBody
object. |
boolean |
removeAttribute(javax.xml.namespace.QName qname) |
javax.xml.soap.SOAPElement |
setElementQName(javax.xml.namespace.QName qname) |
addAttribute, addChildElement, addNamespaceDeclaration, appendChild, appendText, clone, copyContents, discard, getAllAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getChildNodes, getElement, getElementName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFirstChild, getLastChild, getLocalName, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTagName, getTextContent, getValue, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasChildNodes, internalSerialize, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setEncodingStyle, setParent, setParentElement, setValue, toStringgetParent, getSchemaTypeInfo, getType, recycleNode, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setTypebuild, buildWithAttachments, cloneNode, close, compareDocumentPosition, getBaseURI, getFeature, getLength, getNextOMSibling, getNextOMSiblingIfAvailable, getNodeValue, getOMFactory, getPreviousOMSibling, getUserData, hasAttributes, insertBefore, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, replaceChild, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setNodeValue, setOwnerDocument, setPrefix, setPreviousOMSibling, setTextContent, setUserDataequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttribute, addChildElement, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStylegetParentElement, getValue, recycleNode, setParentElement, setValuegetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, 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, setUserDatapublic SOAPBodyImpl(org.apache.axiom.soap.SOAPBody omSOAPBody)
omSOAPBody - public javax.xml.soap.SOAPElement addChildElement(java.lang.String localName)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(java.lang.String localName,
java.lang.String prefix)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionprotected org.w3c.dom.Element appendElement(org.apache.axiom.om.impl.dom.ElementImpl child)
throws javax.xml.soap.SOAPException
appendElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.SOAPElement soapElement)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPFault addFault()
throws javax.xml.soap.SOAPException
SOAPFault object and adds it to this SOAPBody
object.addFault in interface javax.xml.soap.SOAPBodySOAPFault objectjavax.xml.soap.SOAPException - if there is a SOAP errorpublic boolean hasFault()
SOAPFault object exists in this SOAPBody
object.hasFault in interface javax.xml.soap.SOAPBodytrue if a SOAPFault object exists in this
SOAPBody object; false otherwisepublic javax.xml.soap.SOAPFault getFault()
SOAPFault object in this SOAPBody object.getFault in interface javax.xml.soap.SOAPBodySOAPFault object in this SOAPBody objectpublic javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
SOAPBodyElement object with the specified name and adds it to this
SOAPBody object.addBodyElement in interface javax.xml.soap.SOAPBodyname - a Name object with the name for the new SOAPBodyElement
objectSOAPBodyElement objectjavax.xml.soap.SOAPException - if a SOAP error occurspublic javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name faultCode,
java.lang.String faultString,
java.util.Locale locale)
throws javax.xml.soap.SOAPException
SOAPFault object and adds it to this SOAPBody object.
The new SOAPFault will have a faultcode element that is set to the
faultCode parameter and a faultstring set to
faultstring and localized to locale.addFault in interface javax.xml.soap.SOAPBodyfaultCode - a Name object giving the fault code to be set; must be one of
the fault codes defined in the SOAP 1.1 specification and of type QNamefaultString - a String giving an explanation of the faultlocale - a Locale object indicating the native language of the
SOAPFault objectjavax.xml.soap.SOAPException - if there is a SOAP errorpublic javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name faultCode,
java.lang.String faultString)
throws javax.xml.soap.SOAPException
SOAPFault object and adds it to this SOAPBody object.
The new SOAPFault will have a faultcode element that is set to the
faultCode parameter and a faultstring set to
faultstring.addFault in interface javax.xml.soap.SOAPBodyfaultCode - a Name object giving the fault code to be set; must be one of
the fault codes defined in the SOAP 1.1 specification and of type QNamefaultString - a String giving an explanation of the faultSOAPFault objectjavax.xml.soap.SOAPException - if there is a SOAP errorpublic javax.xml.soap.SOAPBodyElement addDocument(org.w3c.dom.Document document)
throws javax.xml.soap.SOAPException
Document to this SOAPBody object.
Calling this method invalidates the document parameter. The client application
should discard all references to this Document and its contents upon calling
addDocument. The behavior of an application that continues to use such
references is undefined.addDocument in interface javax.xml.soap.SOAPBodydocument - the Document object whose root node will be added to this
SOAPBodySOAPBodyElement that represents the root node that was addedjavax.xml.soap.SOAPException - if the Document cannot be addedpublic javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.namespace.QName qname)
throws javax.xml.soap.SOAPException
SOAPBodyElement object with the specified name and adds it to this
SOAPBody object.addBodyElement in interface javax.xml.soap.SOAPBodyqname - a QName object with the name for the new SOAPBodyElement
objectSOAPBodyElement objectjavax.xml.soap.SOAPException - if a SOAP error occurspublic javax.xml.soap.SOAPFault addFault(javax.xml.namespace.QName faultcode,
java.lang.String faultString)
throws javax.xml.soap.SOAPException
addFault in interface javax.xml.soap.SOAPBodyjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPFault addFault(javax.xml.namespace.QName faultCode,
java.lang.String faultString,
java.util.Locale locale)
throws javax.xml.soap.SOAPException
SOAPFault object and adds it to this SOAPBody object.
The new SOAPFault will have a faultcode element that is set to the
faultCode parameter and a faultstring set to
faultstring and localized to locale.addFault in interface javax.xml.soap.SOAPBodyfaultCode - a QName object giving the fault code to befaultString - a String giving an explanation of the faultlocale - a Locale object indicating the native language of the
SOAPFault objectjavax.xml.soap.SOAPException - if there is a SOAP errorpublic org.w3c.dom.Document extractContentAsDocument()
throws javax.xml.soap.SOAPException
extractContentAsDocument in interface javax.xml.soap.SOAPBodyjavax.xml.soap.SOAPException - - if there is not exactly one child SOAPElement of the SOAPBody.public void detachNode()
NodeImplExNode object from the tree. Once removed, this node can be garbage
collected if there are no application references to it.detachNode in class SOAPElementImplpublic org.apache.axiom.om.OMNode detach()
detach in interface org.apache.axiom.om.OMNodedetach in class SOAPElementImplpublic java.util.Iterator getChildElements(javax.xml.soap.Name name)
getChildElements in interface javax.xml.soap.SOAPElementgetChildElements in class SOAPElementImplpublic javax.xml.soap.SOAPElement addAttribute(javax.xml.namespace.QName qname,
java.lang.String value)
throws javax.xml.soap.SOAPException
addAttribute in interface javax.xml.soap.SOAPElementaddAttribute in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(javax.xml.namespace.QName qname)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementaddChildElement in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic javax.xml.namespace.QName createQName(java.lang.String localName,
java.lang.String prefix)
throws javax.xml.soap.SOAPException
SOAPElementImplcreateQName in interface javax.xml.soap.SOAPElementcreateQName in class SOAPElementImpllocalName - - a String containing the local part of the name. prefix - a String
containing the prefix for the name.javax.xml.soap.SOAPException - - if the QName cannot be created.public java.util.Iterator getAllAttributesAsQNames()
getAllAttributesAsQNames in interface javax.xml.soap.SOAPElementgetAllAttributesAsQNames in class SOAPElementImplpublic java.lang.String getAttributeValue(javax.xml.namespace.QName qname)
getAttributeValue in interface javax.xml.soap.SOAPElementgetAttributeValue in class SOAPElementImplpublic java.util.Iterator getChildElements(javax.xml.namespace.QName qname)
getChildElements in interface javax.xml.soap.SOAPElementgetChildElements in class SOAPElementImplpublic javax.xml.namespace.QName getElementQName()
getElementQName in interface javax.xml.soap.SOAPElementgetElementQName in class SOAPElementImplpublic boolean removeAttribute(javax.xml.namespace.QName qname)
removeAttribute in interface javax.xml.soap.SOAPElementremoveAttribute in class SOAPElementImplpublic javax.xml.soap.SOAPElement setElementQName(javax.xml.namespace.QName qname)
throws javax.xml.soap.SOAPException
setElementQName in interface javax.xml.soap.SOAPElementsetElementQName in class SOAPElementImpljavax.xml.soap.SOAPExceptionpublic java.util.Iterator getChildElements()
SOAPElementImplText objects as well as SOAPElement objects.getChildElements in interface javax.xml.soap.SOAPElementgetChildElements in class SOAPElementImplText and SOAPElement contained within this
SOAPElement objectpublic javax.xml.soap.SOAPElement addTextNode(java.lang.String text)
throws javax.xml.soap.SOAPException
SOAPElementImplText object initialized with the given String and
adds it to this SOAPElement object.addTextNode in interface javax.xml.soap.SOAPElementaddTextNode in class SOAPElementImpltext - a String object with the textual content to be addedSOAPElement object into which the new Text object was
insertedjavax.xml.soap.SOAPException - if there is an error in creating the new Text objectCopyright © 2004-2025 The Apache Software Foundation. All Rights Reserved.