org.apache.axis2.soap.impl.llom.soap12
Class SOAP12FaultImpl

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.SOAPFaultImpl
                  extended byorg.apache.axis2.soap.impl.llom.soap12.SOAP12FaultImpl
All Implemented Interfaces:
OMConstants, OMContainer, OMContainerEx, OMElement, OMNode, OMNodeEx, SOAPFault

public class SOAP12FaultImpl
extends SOAPFaultImpl


Field Summary
 
Fields inherited from class org.apache.axis2.soap.impl.llom.SOAPFaultImpl
e
 
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
SOAP12FaultImpl(SOAPBody parent)
          This is a convenience method for the SOAP Fault Impl.
SOAP12FaultImpl(SOAPBody parent, java.lang.Exception e)
          Eran Chinthaka (chinthaka@apache.org)
SOAP12FaultImpl(SOAPBody parent, OMXMLParserWrapper builder)
           
 
Method Summary
protected  void checkParent(OMElement parent)
          This has to be implemented by all the derived classes to check for the correct parent.
protected  SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
           
protected  void serializeFaultNode(OMOutputImpl omOutput)
           
 void setCode(SOAPFaultCode soapFaultCode)
          SOAPFaultCode is a mandatory item in a Fault, in SOAP 1.2 specification
 void setDetail(SOAPFaultDetail detail)
          SOAPFaultRoleImpl is an optional item in a Fault, in SOAP 1.2 specification
 void setNode(SOAPFaultNode node)
          SOAPFaultNode is an optional item in a Fault, in SOAP 1.2 specification
 void setReason(SOAPFaultReason reason)
          SOAPFaultReason is a mandatory item in a Fault, in SOAP 1.2 specification
 void setRole(SOAPFaultRole role)
          SOAPFaultRoleImpl is an optional item in a Fault, in SOAP 1.2 specification
 
Methods inherited from class org.apache.axis2.soap.impl.llom.SOAPFaultImpl
getChildWithName, getCode, getDetail, getException, getNode, getReason, getRole, putExceptionToSOAPFault, serialize, setException, setNewElement
 
Methods inherited from class org.apache.axis2.om.impl.llom.OMElementImpl
addAttribute, addAttribute, addChild, buildNext, declareNamespace, declareNamespace, detach, 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, 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, detach, 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

SOAP12FaultImpl

public SOAP12FaultImpl(SOAPBody parent,
                       java.lang.Exception e)
                throws SOAPProcessingException
Eran Chinthaka (chinthaka@apache.org)


SOAP12FaultImpl

public SOAP12FaultImpl(SOAPBody parent,
                       OMXMLParserWrapper builder)

SOAP12FaultImpl

public SOAP12FaultImpl(SOAPBody parent)
                throws SOAPProcessingException
This is a convenience method for the SOAP Fault Impl.

Parameters:
parent -
Method Detail

getNewSOAPFaultDetail

protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
Specified by:
getNewSOAPFaultDetail in class SOAPFaultImpl

setCode

public void setCode(SOAPFaultCode soapFaultCode)
             throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultCode is a mandatory item in a Fault, in SOAP 1.2 specification

Specified by:
setCode in interface SOAPFault
Overrides:
setCode in class SOAPFaultImpl
Throws:
SOAPProcessingException

setReason

public void setReason(SOAPFaultReason reason)
               throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultReason is a mandatory item in a Fault, in SOAP 1.2 specification

Specified by:
setReason in interface SOAPFault
Overrides:
setReason in class SOAPFaultImpl
Throws:
SOAPProcessingException

setNode

public void setNode(SOAPFaultNode node)
             throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultNode is an optional item in a Fault, in SOAP 1.2 specification

Specified by:
setNode in interface SOAPFault
Overrides:
setNode in class SOAPFaultImpl
Throws:
SOAPProcessingException

setRole

public void setRole(SOAPFaultRole role)
             throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultRoleImpl is an optional item in a Fault, in SOAP 1.2 specification

Specified by:
setRole in interface SOAPFault
Overrides:
setRole in class SOAPFaultImpl
Throws:
SOAPProcessingException

setDetail

public void setDetail(SOAPFaultDetail detail)
               throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultRoleImpl is an optional item in a Fault, in SOAP 1.2 specification

Specified by:
setDetail in interface SOAPFault
Overrides:
setDetail in class SOAPFaultImpl
Throws:
SOAPProcessingException

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

serializeFaultNode

protected void serializeFaultNode(OMOutputImpl omOutput)
                           throws XMLStreamException
Specified by:
serializeFaultNode in class SOAPFaultImpl
Throws:
XMLStreamException