java.lang.Object
com.sun.xml.messaging.saaj.soap.impl.ElementImpl
com.sun.xml.messaging.saaj.soap.impl.BodyImpl
com.sun.xml.messaging.saaj.soap.ver1_2.Body1_2Impl
- All Implemented Interfaces:
Node
,SOAPBody
,SOAPBodyElement
,SOAPElement
,Element
,Node
-
Field Summary
Fields inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
DSIG_NS, elementQName, WSU_NS, XENC_NS
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
ConstructorDescriptionBody1_2Impl
(SOAPDocumentImpl ownerDocument, String prefix) Body1_2Impl
(SOAPDocumentImpl ownerDoc, Element domElement) -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(Name name, String value) Adds an attribute with the specified name and value to thisSOAPElement
object.addAttribute
(QName name, String value) Adds an attribute with the specified name and value to thisSOAPElement
object.addBodyElement
(Name name) Creates a newSOAPBodyElement
object with the specified name and adds it to thisSOAPBody
object.addBodyElement
(QName name) Creates a newSOAPBodyElement
object with the specified QName and adds it to thisSOAPBody
object.addChildElement
(Name name) Creates a newSOAPElement
object initialized with the givenName
object and adds the new element to thisSOAPElement
object.addChildElement
(QName name) Creates a newSOAPElement
object initialized with the givenQName
object and adds the new element to thisSOAPElement
object.protected SOAPElement
addElement
(Name name) protected SOAPElement
addElement
(QName name) addFault()
Creates a newSOAPFault
object and adds it to thisSOAPBody
object.protected SOAPBodyElement
createBodyElement
(Name name) protected SOAPBodyElement
createBodyElement
(QName name) protected SOAPFault
protected QName
protected NameImpl
getFaultName
(String name) protected boolean
isFault
(SOAPElement child) void
setEncodingStyle
(String encodingStyle) Sets the encoding style for thisSOAPElement
object to one specified.Methods inherited from class com.sun.xml.messaging.saaj.soap.impl.BodyImpl
addDocument, addFault, addFault, addFault, addFault, convertToSoapElement, extractContentAsDocument, findFault, getChildNodes, getFault, getFirstChild, getFirstChildNoMaterialize, getLastChild, hasChildNodes, hasFault, isLazy, setElementQName, setParentElement
Methods inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
addCDATA, 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, 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 jakarta.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 jakarta.xml.soap.SOAPElement
addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration
-
Constructor Details
-
Body1_2Impl
-
Body1_2Impl
-
-
Method Details
-
getFaultName
- Specified by:
getFaultName
in classBodyImpl
-
createBodyElement
- Specified by:
createBodyElement
in classBodyImpl
-
createBodyElement
- Specified by:
createBodyElement
in classBodyImpl
-
getDefaultFaultCode
- Specified by:
getDefaultFaultCode
in classBodyImpl
-
addFault
Description copied from interface:SOAPBody
Creates a newSOAPFault
object and adds it to thisSOAPBody
object. The newSOAPFault
will have default values set for the mandatory child elements. The type of theSOAPFault
will be a SOAP 1.1 or a SOAP 1.2SOAPFault
depending on theprotocol
specified while creating theMessageFactory
instance.A
SOAPBody
may contain at most oneSOAPFault
child element.- Specified by:
addFault
in interfaceSOAPBody
- Overrides:
addFault
in classBodyImpl
- Returns:
- the new
SOAPFault
object - Throws:
SOAPException
- if there is a SOAP error
-
setEncodingStyle
Description copied from interface:SOAPElement
Sets the encoding style for thisSOAPElement
object to one specified.- Specified by:
setEncodingStyle
in interfaceSOAPElement
- Overrides:
setEncodingStyle
in classElementImpl
- Parameters:
encodingStyle
- aString
giving the encoding style- Throws:
SOAPException
- if setting the encodingStyle is invalid for this SOAPElement.- See Also:
-
addAttribute
Description copied from interface:SOAPElement
Adds an attribute with the specified name and value to thisSOAPElement
object.- Specified by:
addAttribute
in interfaceSOAPElement
- Overrides:
addAttribute
in classElementImpl
- Parameters:
name
- aName
object with the name of the attributevalue
- aString
giving the value of the attribute- Returns:
- the
SOAPElement
object into which the attribute was inserted - Throws:
SOAPException
- if there is an error in creating the Attribute, or it is invalid to set an attribute withName
name
on this SOAPElement.- See Also:
-
addAttribute
Description copied from interface:SOAPElement
Adds an attribute with the specified name and value to thisSOAPElement
object.- Specified by:
addAttribute
in interfaceSOAPElement
- Overrides:
addAttribute
in classElementImpl
- Parameters:
name
- aQName
object with the name of the attributevalue
- aString
giving the value of the attribute- Returns:
- the
SOAPElement
object into which the attribute was inserted - Throws:
SOAPException
- if there is an error in creating the Attribute, or it is invalid to set an attribute withQName
qname
on this SOAPElement.- See Also:
-
isFault
-
createFaultElement
- Specified by:
createFaultElement
in classBodyImpl
-
addBodyElement
Description copied from interface:SOAPBody
Creates a newSOAPBodyElement
object with the specified name and adds it to thisSOAPBody
object.- Specified by:
addBodyElement
in interfaceSOAPBody
- Overrides:
addBodyElement
in classBodyImpl
- Parameters:
name
- aName
object with the name for the newSOAPBodyElement
object- Returns:
- the new
SOAPBodyElement
object - Throws:
SOAPException
- if a SOAP error occurs- See Also:
-
addBodyElement
Description copied from interface:SOAPBody
Creates a newSOAPBodyElement
object with the specified QName and adds it to thisSOAPBody
object.- Specified by:
addBodyElement
in interfaceSOAPBody
- Overrides:
addBodyElement
in classBodyImpl
- Parameters:
name
- aQName
object with the qname for the newSOAPBodyElement
object- Returns:
- the new
SOAPBodyElement
object - Throws:
SOAPException
- if a SOAP error occurs- See Also:
-
addElement
- Overrides:
addElement
in classBodyImpl
- Throws:
SOAPException
-
addElement
- Overrides:
addElement
in classBodyImpl
- Throws:
SOAPException
-
addChildElement
Description copied from interface:SOAPElement
Creates a newSOAPElement
object initialized with the givenName
object and adds the new element to thisSOAPElement
object.This method may be deprecated in a future release of SAAJ in favor of addChildElement(javax.xml.namespace.QName)
- Specified by:
addChildElement
in interfaceSOAPElement
- Overrides:
addChildElement
in classElementImpl
- Parameters:
name
- aName
object with the XML name for the new element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object- See Also:
-
addChildElement
Description copied from interface:SOAPElement
Creates a newSOAPElement
object initialized with the givenQName
object and adds the new element to thisSOAPElement
object. The namespace, localname and prefix of the newSOAPElement
are all taken from theqname
argument.- Specified by:
addChildElement
in interfaceSOAPElement
- Overrides:
addChildElement
in classElementImpl
- Parameters:
name
- aQName
object with the XML name for the new element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object- See Also:
-