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

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
All Implemented Interfaces:
OMConstants, OMContainer, OMContainerEx, OMElement, OMNode, OMNodeEx
Direct Known Subclasses:
SOAPBodyImpl, SOAPEnvelopeImpl, SOAPFaultCodeImpl, SOAPFaultDetailImpl, SOAPFaultImpl, SOAPFaultNodeImpl, SOAPFaultReasonImpl, SOAPFaultRoleImpl, SOAPFaultSubCodeImpl, SOAPFaultTextImpl, SOAPFaultValueImpl, SOAPHeaderImpl, SOAPTextImpl

public abstract class SOAPElement
extends OMElementImpl


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
protected SOAPElement(OMElement parent, java.lang.String localName, boolean extractNamespaceFromParent)
           
protected SOAPElement(OMElement parent, java.lang.String localName, OMXMLParserWrapper builder)
           
protected SOAPElement(java.lang.String localName, OMNamespace ns)
          Caution : This Constructor is meant to be used only by the SOAPEnvelope.
 
Method Summary
protected abstract  void checkParent(OMElement parent)
          This has to be implemented by all the derived classes to check for the correct parent.
 
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, 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.OMNode
build, getParent, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, serialize, serializeWithCache
 
Methods inherited from interface org.apache.axis2.om.impl.OMContainerEx
setComplete
 

Constructor Detail

SOAPElement

protected SOAPElement(OMElement parent,
                      java.lang.String localName,
                      boolean extractNamespaceFromParent)
               throws SOAPProcessingException
Parameters:
parent -

SOAPElement

protected SOAPElement(OMElement parent,
                      java.lang.String localName,
                      OMXMLParserWrapper builder)

SOAPElement

protected SOAPElement(java.lang.String localName,
                      OMNamespace ns)
Caution : This Constructor is meant to be used only by the SOAPEnvelope.

Reasons : This can be used to create a SOAP Element programmatically. But we need to make sure that the user always passes a parent for the element being created. But SOAP Envelope has no parent.

Parameters:
localName -
ns -
Method Detail

checkParent

protected abstract void checkParent(OMElement parent)
                             throws SOAPProcessingException
This has to be implemented by all the derived classes to check for the correct parent.

Throws:
SOAPProcessingException