org.jboss.axis.message
Class SOAPBodyAxisImpl

java.lang.Object
  extended by org.jboss.axis.message.NodeImpl
      extended by org.jboss.axis.message.SOAPElementImpl
          extended by org.jboss.axis.message.SOAPElementAxisImpl
              extended by org.jboss.axis.message.SOAPBodyImpl
                  extended by org.jboss.axis.message.SOAPBodyAxisImpl
All Implemented Interfaces:
Cloneable, javax.xml.soap.SOAPBody, javax.xml.soap.SOAPElement, Element, Node

public class SOAPBodyAxisImpl
extends SOAPBodyImpl

Holder for body elements.

Author:
Glyn Normington (glyn@apache.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.axis.message.SOAPElementAxisImpl
SOAPElementAxisImpl.QNameAttr
 
Field Summary
 
Fields inherited from class org.jboss.axis.message.SOAPElementAxisImpl
_isRoot, attributes, context, elementRep, encodingStyle, endEventIndex, href, id, message, name, namespaces, namespaceURI, objectValue, prefix, qNameAttrs, recorder, soapPart, startContentsIndex, startEventIndex, typeQName
 
Fields inherited from class org.jboss.axis.message.NodeImpl
domNode, soapParent
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
SOAPBodyAxisImpl(String namespace, String localPart, String prefix, Attributes attributes, DeserializationContext context, SOAPConstants soapConsts)
           
 
Method Summary
 javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.soap.Name name)
           
 javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name)
          Creates a new SOAPElement object initialized with the given Name object and adds the new element to this SOAPElement object.
 javax.xml.soap.SOAPBodyElement addDocument(Document document)
           
 javax.xml.soap.SOAPFault addFault()
           
 javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name name, String s)
           
 javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name name, String s, Locale locale)
           
 void disableFormatting()
           
protected  SOAPElementAxisImpl findElement(List list, String namespace, String localPart)
           
 javax.xml.soap.SOAPFault getFault()
           
 boolean hasFault()
           
protected  void outputImpl(SerializationContext context)
          Subclasses can override
 void setEncodingStyle(String encodingStyle)
          Sets the encoding style for this SOAPElement object to one specified.
 void setParentElement(javax.xml.soap.SOAPElement parent)
          Sets the parent of this Node object to the given SOAPElement object.
 void setSAAJEncodingCompliance(boolean comply)
           
 
Methods inherited from class org.jboss.axis.message.SOAPElementAxisImpl
addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildElement, addChildElement, addChildElement, addChildElement, addMapping, addNamespaceDeclaration, addTextNode, appendChild, cloneNode, clonning, detachAllChildren, detachNode, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAsStringFromInternal, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributesEx, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildNodes, getChildren, getCompleteAttributes, getElementName, getElementsByTagName, getElementsByTagNameNS, getElementsNS, getEncodingStyle, getEnvelope, getFirstChild, getFixupDeserializer, getHref, getID, getLastChild, getLocalName, getName, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getObjectValue, getObjectValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPrefix, getPreviousSibling, getQName, getRealElement, getRecorder, getTagName, getType, getValueAsType, getValueAsType, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isDirty, isImmutable, isRoot, isSupported, makeAttributesEditable, normalize, output, printFromInternal, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, setAllAttributes, setAllImmutable, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setDirty, setEndIndex, setEnvelope, setFixupDeserializer, setImmutable, setName, setNamespaceURI, setNSMappings, setObjectValue, setOwnerDocument, setPrefix, setQName, setRecorder, setType
 
Methods inherited from class org.jboss.axis.message.SOAPElementImpl
getSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from class org.jboss.axis.message.NodeImpl
compareDocumentPosition, getBaseURI, getFeature, getNodeName, getTextContent, getUserData, getValue, hashCode, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, recycleNode, setNodeValue, setTextContent, setUserData, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.soap.SOAPElement
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration
 
Methods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setValue
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

SOAPBodyAxisImpl

public SOAPBodyAxisImpl(String namespace,
                        String localPart,
                        String prefix,
                        Attributes attributes,
                        DeserializationContext context,
                        SOAPConstants soapConsts)
                 throws AxisFault
Throws:
AxisFault
Method Detail

setParentElement

public void setParentElement(javax.xml.soap.SOAPElement parent)
                      throws javax.xml.soap.SOAPException
Description copied from class: NodeImpl
Sets the parent of this Node object to the given SOAPElement object.

Overrides:
setParentElement in class SOAPElementAxisImpl
Parameters:
parent - the SOAPElement object to be set as the parent of this Node object
Throws:
javax.xml.soap.SOAPException - if there is a problem in setting the parent to the given node

disableFormatting

public void disableFormatting()

setEncodingStyle

public void setEncodingStyle(String encodingStyle)
                      throws javax.xml.soap.SOAPException
Description copied from class: SOAPElementAxisImpl
Sets the encoding style for this SOAPElement object to one specified. The semantics of a null value, as above in getEncodingStyle() are to just use the parent's value, but null here means set to "".

Specified by:
setEncodingStyle in interface javax.xml.soap.SOAPElement
Overrides:
setEncodingStyle in class SOAPElementAxisImpl
Parameters:
encodingStyle - a String giving the encoding style
Throws:
javax.xml.soap.SOAPException - if there was a problem in the encoding style being set.
See Also:
getEncodingStyle()

outputImpl

protected void outputImpl(SerializationContext context)
                   throws Exception
Description copied from class: SOAPElementAxisImpl
Subclasses can override

Overrides:
outputImpl in class SOAPElementAxisImpl
Throws:
Exception

findElement

protected SOAPElementAxisImpl findElement(List list,
                                          String namespace,
                                          String localPart)

addBodyElement

public javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.soap.Name name)
                                              throws javax.xml.soap.SOAPException
Specified by:
addBodyElement in interface javax.xml.soap.SOAPBody
Overrides:
addBodyElement in class SOAPBodyImpl
Throws:
javax.xml.soap.SOAPException

addFault

public javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name name,
                                         String s,
                                         Locale locale)
                                  throws javax.xml.soap.SOAPException
Specified by:
addFault in interface javax.xml.soap.SOAPBody
Overrides:
addFault in class SOAPBodyImpl
Throws:
javax.xml.soap.SOAPException

addFault

public javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name name,
                                         String s)
                                  throws javax.xml.soap.SOAPException
Specified by:
addFault in interface javax.xml.soap.SOAPBody
Overrides:
addFault in class SOAPBodyImpl
Throws:
javax.xml.soap.SOAPException

addDocument

public javax.xml.soap.SOAPBodyElement addDocument(Document document)
                                           throws javax.xml.soap.SOAPException
Specified by:
addDocument in interface javax.xml.soap.SOAPBody
Overrides:
addDocument in class SOAPBodyImpl
Throws:
javax.xml.soap.SOAPException

addFault

public javax.xml.soap.SOAPFault addFault()
                                  throws javax.xml.soap.SOAPException
Specified by:
addFault in interface javax.xml.soap.SOAPBody
Overrides:
addFault in class SOAPBodyImpl
Throws:
javax.xml.soap.SOAPException

getFault

public javax.xml.soap.SOAPFault getFault()
Specified by:
getFault in interface javax.xml.soap.SOAPBody
Overrides:
getFault in class SOAPBodyImpl

hasFault

public boolean hasFault()
Specified by:
hasFault in interface javax.xml.soap.SOAPBody
Overrides:
hasFault in class SOAPBodyImpl

setSAAJEncodingCompliance

public void setSAAJEncodingCompliance(boolean comply)

addChildElement

public javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name)
                                           throws javax.xml.soap.SOAPException
Description copied from class: SOAPElementImpl
Creates a new SOAPElement object initialized with the given Name object and adds the new element to this SOAPElement object.

Specified by:
addChildElement in interface javax.xml.soap.SOAPElement
Overrides:
addChildElement in class SOAPElementAxisImpl
Parameters:
name - a Name object with the XML name for the new element
Returns:
the new SOAPElement object that was created
Throws:
javax.xml.soap.SOAPException - if there is an error in creating the SOAPElement object


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.