Package org.apache.axiom.soap.impl.llom
Class SOAPBodyImpl
- java.lang.Object
-
- org.apache.axiom.om.impl.llom.OMSerializableImpl
-
- org.apache.axiom.om.impl.llom.OMNodeImpl
-
- org.apache.axiom.om.impl.llom.OMElementImpl
-
- org.apache.axiom.soap.impl.llom.SOAPElement
-
- org.apache.axiom.soap.impl.llom.SOAPBodyImpl
-
- All Implemented Interfaces:
org.apache.axiom.om.impl.OMContainerEx,org.apache.axiom.om.impl.OMNodeEx,org.apache.axiom.om.OMConstants,org.apache.axiom.om.OMContainer,org.apache.axiom.om.OMElement,org.apache.axiom.om.OMNode,org.apache.axiom.om.OMSerializable,org.apache.axiom.soap.SOAPBody
- Direct Known Subclasses:
SOAP11BodyImpl,SOAP12BodyImpl
public abstract class SOAPBodyImpl extends SOAPElement implements org.apache.axiom.soap.SOAPBody, org.apache.axiom.om.OMConstants
Class SOAPBodyImpl
-
-
Field Summary
-
Fields inherited from class org.apache.axiom.om.impl.llom.OMElementImpl
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, qName
-
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
nextSibling, nodeType, parent, previousSibling
-
Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
builder, done, factory
-
Fields inherited from interface org.apache.axiom.om.OMConstants
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLATTRTYPE_CDATA, XMLATTRTYPE_ENTITIES, XMLATTRTYPE_ENTITY, XMLATTRTYPE_ID, XMLATTRTYPE_IDREF, XMLATTRTYPE_IDREFS, XMLATTRTYPE_NMTOKEN, XMLATTRTYPE_NMTOKENS, XMLATTRTYPE_NOTATION, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSOAPBodyImpl(String localName, org.apache.axiom.om.OMNamespace ns, org.apache.axiom.soap.SOAPFactory factory)SOAPBodyImpl(org.apache.axiom.soap.SOAPEnvelope envelope, org.apache.axiom.om.OMXMLParserWrapper builder, org.apache.axiom.soap.SOAPFactory factory)Constructor SOAPBodyImplSOAPBodyImpl(org.apache.axiom.soap.SOAPEnvelope envelope, org.apache.axiom.soap.SOAPFactory factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddChild(org.apache.axiom.om.OMNode child)Adds child to the element.abstract org.apache.axiom.soap.SOAPFaultaddFault(Exception e)Creates a newSOAPFaultobject and adds it to thisSOAPBodyobject.voidaddFault(org.apache.axiom.soap.SOAPFault soapFault)voidbuildNext()Forces the parser to proceed, if parser has not yet finished with the XML input.protected voidcheckParent(org.apache.axiom.om.OMElement parent)This has to be implemented by all the derived classes to check for the correct parent.org.apache.axiom.om.OMNodedetach()Removes this information item and its children, from the model completely.org.apache.axiom.soap.SOAPFaultgetFault()Returns theSOAPFaultobject in thisSOAPBodyobject.StringgetFirstElementLocalName()org.apache.axiom.om.OMNamespacegetFirstElementNS()booleanhasFault()Indicates whether aSOAPFaultobject exists in thisSOAPBodyobject.-
Methods inherited from class org.apache.axiom.soap.impl.llom.SOAPElement
registerContentHandler, setParent
-
Methods inherited from class org.apache.axiom.om.impl.llom.OMElementImpl
addAttribute, addAttribute, build, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getBuilder, getChildElements, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getFirstOMChildIfAvailable, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getText, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, notifyChildComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLastChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume
-
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setPreviousOMSibling, setType
-
Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.axiom.om.OMContainer
getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
-
Methods inherited from interface org.apache.axiom.om.OMElement
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getText, getTextAsQName, getXMLStreamReader, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume
-
-
-
-
Constructor Detail
-
SOAPBodyImpl
protected SOAPBodyImpl(String localName, org.apache.axiom.om.OMNamespace ns, org.apache.axiom.soap.SOAPFactory factory)
-
SOAPBodyImpl
public SOAPBodyImpl(org.apache.axiom.soap.SOAPEnvelope envelope, org.apache.axiom.soap.SOAPFactory factory) throws org.apache.axiom.soap.SOAPProcessingException- Parameters:
envelope-- Throws:
org.apache.axiom.soap.SOAPProcessingException
-
SOAPBodyImpl
public SOAPBodyImpl(org.apache.axiom.soap.SOAPEnvelope envelope, org.apache.axiom.om.OMXMLParserWrapper builder, org.apache.axiom.soap.SOAPFactory factory)Constructor SOAPBodyImpl- Parameters:
envelope-builder-
-
-
Method Detail
-
addFault
public abstract org.apache.axiom.soap.SOAPFault addFault(Exception e) throws org.apache.axiom.om.OMException
Creates a newSOAPFaultobject and adds it to thisSOAPBodyobject.- Specified by:
addFaultin interfaceorg.apache.axiom.soap.SOAPBody- Parameters:
e-- Returns:
- the new
SOAPFaultobject - Throws:
org.apache.axiom.om.OMException- if there is a SOAP errororg.apache.axiom.om.OMException
-
hasFault
public boolean hasFault()
Indicates whether aSOAPFaultobject exists in thisSOAPBodyobject.- Specified by:
hasFaultin interfaceorg.apache.axiom.soap.SOAPBody- Returns:
trueif aSOAPFaultobject exists in thisSOAPBodyobject;falseotherwise
-
getFault
public org.apache.axiom.soap.SOAPFault getFault()
Returns theSOAPFaultobject in thisSOAPBodyobject.- Specified by:
getFaultin interfaceorg.apache.axiom.soap.SOAPBody- Returns:
- the
SOAPFaultobject in thisSOAPBodyobject
-
addFault
public void addFault(org.apache.axiom.soap.SOAPFault soapFault) throws org.apache.axiom.om.OMException- Specified by:
addFaultin interfaceorg.apache.axiom.soap.SOAPBody- Parameters:
soapFault-- Throws:
org.apache.axiom.om.OMExceptionorg.apache.axiom.om.OMException
-
checkParent
protected void checkParent(org.apache.axiom.om.OMElement parent) throws org.apache.axiom.soap.SOAPProcessingExceptionDescription copied from class:SOAPElementThis has to be implemented by all the derived classes to check for the correct parent.- Specified by:
checkParentin classSOAPElement- Throws:
org.apache.axiom.soap.SOAPProcessingException
-
detach
public org.apache.axiom.om.OMNode detach() throws org.apache.axiom.om.OMExceptionDescription copied from class:OMElementImplRemoves this information item and its children, from the model completely.- Specified by:
detachin interfaceorg.apache.axiom.om.OMNode- Overrides:
detachin classOMElementImpl- Throws:
org.apache.axiom.om.OMException
-
buildNext
public void buildNext()
Description copied from class:OMElementImplForces the parser to proceed, if parser has not yet finished with the XML input.- Specified by:
buildNextin interfaceorg.apache.axiom.om.OMContainer- Overrides:
buildNextin classOMElementImpl
-
getFirstElementNS
public org.apache.axiom.om.OMNamespace getFirstElementNS()
- Specified by:
getFirstElementNSin interfaceorg.apache.axiom.soap.SOAPBody
-
getFirstElementLocalName
public String getFirstElementLocalName()
- Specified by:
getFirstElementLocalNamein interfaceorg.apache.axiom.soap.SOAPBody
-
addChild
public void addChild(org.apache.axiom.om.OMNode child)
Description copied from class:OMElementImplAdds child to the element. One can decide whether to append the child or to add to the front of the children list.- Specified by:
addChildin interfaceorg.apache.axiom.om.OMContainer- Overrides:
addChildin classOMElementImpl
-
-