Class BodyImpl

  • All Implemented Interfaces:
    jakarta.xml.soap.Node, jakarta.xml.soap.SOAPBody, jakarta.xml.soap.SOAPBodyElement, jakarta.xml.soap.SOAPElement, Element, Node
    Direct Known Subclasses:
    Body1_1Impl, Body1_2Impl

    public abstract class BodyImpl
    extends ElementImpl
    implements jakarta.xml.soap.SOAPBody
    The implementation of SOAP-ENV:BODY or the SOAPBody abstraction.
    Author:
    Anil Vijendran (anil@sun.com)
    • Method Detail

      • getFaultName

        protected abstract NameImpl getFaultName​(String name)
      • isFault

        protected abstract boolean isFault​(jakarta.xml.soap.SOAPElement child)
      • createBodyElement

        protected abstract jakarta.xml.soap.SOAPBodyElement createBodyElement​(jakarta.xml.soap.Name name)
      • createBodyElement

        protected abstract jakarta.xml.soap.SOAPBodyElement createBodyElement​(QName name)
      • createFaultElement

        protected abstract jakarta.xml.soap.SOAPFault createFaultElement()
      • getDefaultFaultCode

        protected abstract QName getDefaultFaultCode()
      • addFault

        public jakarta.xml.soap.SOAPFault addFault()
                                            throws jakarta.xml.soap.SOAPException
        Specified by:
        addFault in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • addFault

        public jakarta.xml.soap.SOAPFault addFault​(jakarta.xml.soap.Name faultCode,
                                                   String faultString,
                                                   Locale locale)
                                            throws jakarta.xml.soap.SOAPException
        Specified by:
        addFault in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • addFault

        public jakarta.xml.soap.SOAPFault addFault​(QName faultCode,
                                                   String faultString,
                                                   Locale locale)
                                            throws jakarta.xml.soap.SOAPException
        Specified by:
        addFault in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • addFault

        public jakarta.xml.soap.SOAPFault addFault​(jakarta.xml.soap.Name faultCode,
                                                   String faultString)
                                            throws jakarta.xml.soap.SOAPException
        Specified by:
        addFault in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • addFault

        public jakarta.xml.soap.SOAPFault addFault​(QName faultCode,
                                                   String faultString)
                                            throws jakarta.xml.soap.SOAPException
        Specified by:
        addFault in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • findFault

        protected jakarta.xml.soap.SOAPElement findFault()
      • hasFault

        public boolean hasFault()
        Specified by:
        hasFault in interface jakarta.xml.soap.SOAPBody
      • getFault

        public jakarta.xml.soap.SOAPFault getFault()
        Specified by:
        getFault in interface jakarta.xml.soap.SOAPBody
      • addBodyElement

        public jakarta.xml.soap.SOAPBodyElement addBodyElement​(jakarta.xml.soap.Name name)
                                                        throws jakarta.xml.soap.SOAPException
        Specified by:
        addBodyElement in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • addBodyElement

        public jakarta.xml.soap.SOAPBodyElement addBodyElement​(QName qname)
                                                        throws jakarta.xml.soap.SOAPException
        Specified by:
        addBodyElement in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • setParentElement

        public void setParentElement​(jakarta.xml.soap.SOAPElement element)
                              throws jakarta.xml.soap.SOAPException
        Specified by:
        setParentElement in interface jakarta.xml.soap.Node
        Overrides:
        setParentElement in class ElementImpl
        Throws:
        jakarta.xml.soap.SOAPException
      • addElement

        protected jakarta.xml.soap.SOAPElement addElement​(jakarta.xml.soap.Name name)
                                                   throws jakarta.xml.soap.SOAPException
        Overrides:
        addElement in class ElementImpl
        Throws:
        jakarta.xml.soap.SOAPException
      • addElement

        protected jakarta.xml.soap.SOAPElement addElement​(QName name)
                                                   throws jakarta.xml.soap.SOAPException
        Overrides:
        addElement in class ElementImpl
        Throws:
        jakarta.xml.soap.SOAPException
      • addDocument

        public jakarta.xml.soap.SOAPBodyElement addDocument​(Document document)
                                                     throws jakarta.xml.soap.SOAPException
        Specified by:
        addDocument in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • setElementQName

        public jakarta.xml.soap.SOAPElement setElementQName​(QName newName)
                                                     throws jakarta.xml.soap.SOAPException
        Specified by:
        setElementQName in interface jakarta.xml.soap.SOAPElement
        Overrides:
        setElementQName in class ElementImpl
        Throws:
        jakarta.xml.soap.SOAPException
      • extractContentAsDocument

        public Document extractContentAsDocument()
                                          throws jakarta.xml.soap.SOAPException
        Specified by:
        extractContentAsDocument in interface jakarta.xml.soap.SOAPBody
        Throws:
        jakarta.xml.soap.SOAPException
      • getFirstChildNoMaterialize

        public Node getFirstChildNoMaterialize()
      • isLazy

        public boolean isLazy()