org.apache.axis2.soap.impl.llom
Class SOAPBodyImpl

java.lang.Object
  extended byorg.apache.axis2.om.impl.llom.OMNodeImpl
      extended byorg.apache.axis2.om.impl.llom.OMElementImpl
          extended byorg.apache.axis2.soap.impl.llom.SOAPElement
              extended byorg.apache.axis2.soap.impl.llom.SOAPBodyImpl
All Implemented Interfaces:
OMConstants, OMContainer, OMContainerEx, OMElement, OMNode, OMNodeEx, SOAPBody
Direct Known Subclasses:
SOAP11BodyImpl, SOAP12BodyImpl

public abstract class SOAPBodyImpl
extends SOAPElement
implements SOAPBody, OMConstants

Class SOAPBodyImpl


Field Summary
 
Fields inherited from class org.apache.axis2.om.impl.llom.OMElementImpl
attributes, firstChild, localName, namespaces, noPrefixNamespaceCounter, ns
 
Fields inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl
builder, done, nextSibling, nodeType, parent, previousSibling
 
Fields inherited from interface org.apache.axis2.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
 
Fields inherited from interface org.apache.axis2.om.OMConstants
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DEFAULT_CHAR_SET_ENCODING, DEFAULT_XML_VERSION, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER
 
Constructor Summary
SOAPBodyImpl(SOAPEnvelope envelope)
           
SOAPBodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder)
          Constructor SOAPBodyImpl
 
Method Summary
abstract  SOAPFault addFault(java.lang.Exception e)
          Creates a new SOAPFault object and adds it to this SOAPBody object.
 void addFault(SOAPFault soapFault)
           
protected  void checkParent(OMElement parent)
          This has to be implemented by all the derived classes to check for the correct parent.
 OMNode detach()
          This will remove this information item and its children, from the model completely.
 SOAPFault getFault()
          Returns the SOAPFault object in this SOAPBody object.
 boolean hasFault()
          Indicates whether a SOAPFault object exists in this SOAPBody object.
 
Methods inherited from class org.apache.axis2.om.impl.llom.OMElementImpl
addAttribute, addAttribute, addChild, buildNext, declareNamespace, declareNamespace, discard, findNamespace, getAllDeclaredNamespaces, getAttribute, getAttributes, getBuilder, getChildElements, getChildren, getChildrenWithName, getFirstAttribute, getFirstChild, getFirstChildWithName, getFirstElement, getLocalName, getNamespace, getNextSibling, getQName, getText, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, isComplete, removeAttribute, serialize, serialize, serializeWithCache, setBuilder, setFirstChild, setLocalName, setNamespace, setText
 
Methods inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl
build, getParent, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, serialize, serializeWithCache, setComplete, setNextSibling, setParent, setPreviousSibling, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.om.OMElement
addAttribute, addAttribute, addChild, declareNamespace, declareNamespace, findNamespace, getAllDeclaredNamespaces, getAttribute, getAttributes, getBuilder, getChildElements, getChildren, getChildrenWithName, getFirstAttribute, getFirstChild, getFirstChildWithName, getFirstElement, getLocalName, getNamespace, getQName, getText, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, setBuilder, setFirstChild, setLocalName, setNamespace, setText
 
Methods inherited from interface org.apache.axis2.om.OMNode
build, discard, getNextSibling, getParent, getPreviousSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serializeWithCache
 
Methods inherited from interface org.apache.axis2.om.OMContainer
buildNext, isComplete
 
Methods inherited from interface org.apache.axis2.om.impl.OMContainerEx
setComplete
 

Constructor Detail

SOAPBodyImpl

public SOAPBodyImpl(SOAPEnvelope envelope)
             throws SOAPProcessingException
Parameters:
envelope -

SOAPBodyImpl

public SOAPBodyImpl(SOAPEnvelope envelope,
                    OMXMLParserWrapper builder)
Constructor SOAPBodyImpl

Parameters:
envelope -
builder -
Method Detail

addFault

public abstract SOAPFault addFault(java.lang.Exception e)
                            throws OMException
Creates a new SOAPFault object and adds it to this SOAPBody object.

Specified by:
addFault in interface SOAPBody
Parameters:
e -
Returns:
the new SOAPFault object
Throws:
OMException - if there is a SOAP error
OMException

hasFault

public boolean hasFault()
Indicates whether a SOAPFault object exists in this SOAPBody object.

Specified by:
hasFault in interface SOAPBody
Returns:
true if a SOAPFault object exists in this SOAPBody object; false otherwise

getFault

public SOAPFault getFault()
Returns the SOAPFault object in this SOAPBody object.

Specified by:
getFault in interface SOAPBody
Returns:
the SOAPFault object in this SOAPBody object

addFault

public void addFault(SOAPFault soapFault)
              throws OMException
Specified by:
addFault in interface SOAPBody
Parameters:
soapFault -
Throws:
OMException
OMException

checkParent

protected void checkParent(OMElement parent)
                    throws SOAPProcessingException
Description copied from class: SOAPElement
This has to be implemented by all the derived classes to check for the correct parent.

Specified by:
checkParent in class SOAPElement
Throws:
SOAPProcessingException

detach

public OMNode detach()
              throws OMException
Description copied from interface: OMNode
This will remove this information item and its children, from the model completely. Important to note that this method will detach the OMNode once it is fully built. Half built nodes are not to be detached!

Specified by:
detach in interface OMNode
Overrides:
detach in class OMElementImpl
Throws:
OMException