com.ibm.di.fc.webservice.util
Class SOAPBodyOutputNS

java.lang.Object
  extended by org.apache.axis.message.NodeImpl
      extended by org.apache.axis.message.MessageElement
          extended by com.ibm.di.fc.webservice.util.SOAPBodyOutputNS
All Implemented Interfaces:
Serializable, Cloneable, javax.xml.soap.SOAPBody, javax.xml.soap.SOAPElement, Element, Node, NodeList

public class SOAPBodyOutputNS
extends org.apache.axis.message.MessageElement
implements javax.xml.soap.SOAPBody

This class is used by the SOAPEnvelopeOutputNS class

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.axis.message.MessageElement
org.apache.axis.message.MessageElement.QNameAttr
 
Field Summary
 
Fields inherited from class org.apache.axis.message.MessageElement
_isRoot, context, encodingStyle, endEventIndex, fixupDeserializer, href, id, message, namespaces, qNameAttrs, recorder, startContentsIndex, startEventIndex, typeQName
 
Fields inherited from class org.apache.axis.message.NodeImpl
_isDirty, attributes, children, document, name, namespaceURI, parent, prefix, textRep
 
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
SOAPBodyOutputNS(String namespace, String localPart, String prefix, Attributes attributes, org.apache.axis.encoding.DeserializationContext context, org.apache.axis.soap.SOAPConstants soapConsts)
          Class constructor
 
Method Summary
 javax.xml.soap.SOAPElement addAttribute(QName qName, String val)
          not used
 javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.soap.Name name)
          adds a new SOAPBodyElement
 javax.xml.soap.SOAPBodyElement addBodyElement(QName qName)
          not used
 void addChild(org.apache.axis.message.MessageElement el)
          Note that this method will log a error and no-op if there is a value (set using setObjectValue) in the MessageElement.
 javax.xml.soap.SOAPElement addChildElement(QName qName)
          not used
 javax.xml.soap.SOAPElement addChildElement(String localName, String prefix, String uri)
          not used
 javax.xml.soap.SOAPBodyElement addDocument(Document aDoc)
          not used
 javax.xml.soap.SOAPFault addFault()
          Creates a new SOAPFault object and adds it to this SOAPBody object.
 javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name aName, String aFault)
          not used
 javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name aName, String aFault, Locale aLocale)
          not used
 javax.xml.soap.SOAPFault addFault(QName qName, String nFault)
          not used
 javax.xml.soap.SOAPFault addFault(QName qName, String nFault, Locale locale)
          not used
 short compareDocumentPosition(Node other)
          not used
 QName createQName(String localName, String prefix)
          not used
 void detachNode()
          Removes this Node object from the tree.
 void disableFormatting()
          Sets the class field to true to disable formatting
 boolean equals(Object o)
          
 Document extractContentAsDocument()
          not used
protected  org.apache.axis.message.MessageElement findElement(Vector vec, String namespace, String localPart)
          Finds SOAPBodyElement
 Iterator getAllAttributesAsQNames()
          not used
 String getAttributeValue(QName qName)
          not used
 String getBaseURI()
          not used
 Iterator getChildElements()
          get an iterator over the children This iterator may get confused if changes are made to the children while the iteration is in progress.
 Iterator getChildElements(javax.xml.soap.Name name)
          Returns an iterator over all the child elements with the specified name.
 Attributes getCompleteAttributes()
          Obtain an Attributes collection consisting of all attributes for this MessageElement, including namespace declarations.
 QName getElementQName()
          not used
 javax.xml.soap.SOAPFault getFault()
          Retrieves SOAPFault.
 Object getFeature(String feature, String version)
          not used
 TypeInfo getSchemaTypeInfo()
          not used
 String getTextContent()
          not used
 Object getUserData(String key)
          not used
 boolean hasFault()
          Indicates whether a SOAPFault object exists in this SOAPBody object.
 int hashCode()
          
 boolean isDefaultNamespace(String namespaceURI)
          not used
 boolean isEqualNode(Node arg)
          not used
 boolean isSameNode(Node other)
          not used
 String lookupNamespaceURI(String prefix)
          not used
 String lookupPrefix(String namespaceURI)
          not used
protected  void outputImpl(org.apache.axis.encoding.SerializationContext context)
          override point -output to a serialization context.
 boolean removeAttribute(QName qName)
          not used
 void removeChild(org.apache.axis.message.MessageElement child)
          removes all occurrences of the specified child element
 javax.xml.soap.SOAPElement setElementQName(QName newName)
          not used
 void setEncodingStyle(String encodingStyle)
          Sets the encoding style for this SOAPElement object to one specified.
 void setIdAttribute(String name, boolean isId)
          not used
 void setIdAttributeNode(Attr idAttr, boolean isId)
          not used
 void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
          not used
 void setParentElement(javax.xml.soap.SOAPElement parent)
          Sets the parent of this Node object to the given SOAPElement object.
 void setSAAJEncodingCompliance(boolean comply)
          Indicates the SAAJCompliance
 void setTextContent(String textContent)
          not used
 Object setUserData(String key, Object data, UserDataHandler handler)
          not used
 
Methods inherited from class org.apache.axis.message.MessageElement
addAttribute, addAttribute, addAttribute, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addMapping, addNamespaceDeclaration, addTextNode, childDeepCloned, cloneNode, cloning, detachAllChildren, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributesEx, getAttributeValue, getAttributeValue, getChildElement, getChildElements, getChildren, getDeserializationContext, getElementName, getElementsByTagName, getElementsByTagNameNS, getElementsNS, getEncodingStyle, getEnvelope, getFixupDeserializer, getHref, getID, getLength, getName, getNamespacePrefixes, getNamespaceURI, getObjectValue, getObjectValue, getOwnerDocument, getPrefix, getQName, getRealElement, getRecorder, getTagName, getType, getValue, getValueAsType, getValueAsType, getValueDOM, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, isRoot, item, output, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAllAttributes, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setEndIndex, setEnvelope, setFixupDeserializer, setName, setNamespaceURI, setNSMappings, setObjectValue, setQName, setRecorder, setType, setValue, toString
 
Methods inherited from class org.apache.axis.message.NodeImpl
appendChild, convertAttrSAXtoDOM, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDirty, isSupported, makeAttributesEditable, normalize, recycleNode, removeChild, replaceChild, reset, setDirty, setDirty, setNodeValue, setOwnerDocument, setParent, setPrefix
 
Methods inherited from class java.lang.Object
clone, 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, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration
 
Methods inherited from interface javax.xml.soap.Node
getParentElement, getValue, recycleNode, setValue
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Constructor Detail

SOAPBodyOutputNS

public SOAPBodyOutputNS(String namespace,
                        String localPart,
                        String prefix,
                        Attributes attributes,
                        org.apache.axis.encoding.DeserializationContext context,
                        org.apache.axis.soap.SOAPConstants soapConsts)
                 throws org.apache.axis.AxisFault
Class constructor

Parameters:
namespace - String
localPart - String
prefix - String
attributes - Attributes
context - DeserializationContext
soapConsts - SOAPConstants
Throws:
org.apache.axis.AxisFault
Method Detail

setParentElement

public void setParentElement(javax.xml.soap.SOAPElement parent)
                      throws javax.xml.soap.SOAPException
Sets the parent of this Node object to the given SOAPElement object.

Overrides:
setParentElement in class org.apache.axis.message.NodeImpl
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 element
IllegalArgumentException - if the SOAPElement is null

detachNode

public void detachNode()
Removes this Node object from the tree. Once removed, this node can be garbage collected if there are no application references to it.

Overrides:
detachNode in class org.apache.axis.message.NodeImpl

disableFormatting

public void disableFormatting()
Sets the class field to true to disable formatting


setEncodingStyle

public void setEncodingStyle(String encodingStyle)
                      throws javax.xml.soap.SOAPException
Sets the encoding style for this SOAPElement object to one specified.

Specified by:
setEncodingStyle in interface javax.xml.soap.SOAPElement
Overrides:
setEncodingStyle in class org.apache.axis.message.MessageElement
Parameters:
encodingStyle - String
Throws:
javax.xml.soap.SOAPException - when for some reason the style cannot be set
IllegalArgumentException - when the encoding style is not recognized

outputImpl

protected void outputImpl(org.apache.axis.encoding.SerializationContext context)
                   throws Exception
override point -output to a serialization context.

Overrides:
outputImpl in class org.apache.axis.message.MessageElement
Parameters:
context - SerializationContext is destination
Throws:
Exception - if something went wrong.

findElement

protected org.apache.axis.message.MessageElement findElement(Vector vec,
                                                             String namespace,
                                                             String localPart)
Finds SOAPBodyElement

Overrides:
findElement in class org.apache.axis.message.MessageElement
Parameters:
vec - Vector , the collection to be searched in
namespace - String
localPart - String
Returns:
MessageElement

addBodyElement

public javax.xml.soap.SOAPBodyElement addBodyElement(javax.xml.soap.Name name)
                                              throws javax.xml.soap.SOAPException
adds a new SOAPBodyElement

Specified by:
addBodyElement in interface javax.xml.soap.SOAPBody
Parameters:
name - Name
Returns:
SOAPBodyElement
Throws:
javax.xml.soap.SOAPException
See Also:
SOAPBody.addBodyElement(javax.xml.soap.Name)

addFault

public javax.xml.soap.SOAPFault addFault()
                                  throws javax.xml.soap.SOAPException
Creates a new SOAPFault object and adds it to this SOAPBody object.

Specified by:
addFault in interface javax.xml.soap.SOAPBody
Returns:
the new SOAPFault object
Throws:
javax.xml.soap.SOAPException - if there is a SOAP error
See Also:
SOAPBody.addFault()

getFault

public javax.xml.soap.SOAPFault getFault()
Retrieves SOAPFault.

Specified by:
getFault in interface javax.xml.soap.SOAPBody
Returns:
the SOAPFault object in this SOAPBody object

hasFault

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

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

addChild

public void addChild(org.apache.axis.message.MessageElement el)
              throws javax.xml.soap.SOAPException
Note that this method will log a error and no-op if there is a value (set using setObjectValue) in the MessageElement.

Overrides:
addChild in class org.apache.axis.message.MessageElement
Parameters:
el - MessageElement
Throws:
javax.xml.soap.SOAPException

getChildElements

public Iterator getChildElements()
get an iterator over the children This iterator may get confused if changes are made to the children while the iteration is in progress.

Specified by:
getChildElements in interface javax.xml.soap.SOAPElement
Overrides:
getChildElements in class org.apache.axis.message.MessageElement
Returns:
an iterator over child elements.

getChildElements

public Iterator getChildElements(javax.xml.soap.Name name)
Returns an iterator over all the child elements with the specified name.

Specified by:
getChildElements in interface javax.xml.soap.SOAPElement
Overrides:
getChildElements in class org.apache.axis.message.MessageElement
Parameters:
name - - a Name object with the name of the child elements to be returned
Returns:
an iterator over child elements.

removeChild

public void removeChild(org.apache.axis.message.MessageElement child)
removes all occurrences of the specified child element

Parameters:
child - MessageElement

setSAAJEncodingCompliance

public void setSAAJEncodingCompliance(boolean comply)
Indicates the SAAJCompliance

Parameters:
comply - boolean

getCompleteAttributes

public Attributes getCompleteAttributes()
Obtain an Attributes collection consisting of all attributes for this MessageElement, including namespace declarations.

Overrides:
getCompleteAttributes in class org.apache.axis.message.MessageElement
Returns:
Attributes collection

addDocument

public javax.xml.soap.SOAPBodyElement addDocument(Document aDoc)
                                           throws javax.xml.soap.SOAPException
not used

Specified by:
addDocument in interface javax.xml.soap.SOAPBody
Parameters:
aDoc - org.w3c.dom.Document
Returns:
null
Throws:
javax.xml.soap.SOAPException

addFault

public javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name aName,
                                         String aFault)
                                  throws javax.xml.soap.SOAPException
not used

Specified by:
addFault in interface javax.xml.soap.SOAPBody
Parameters:
aName - Name
aFault - String
Returns:
null
Throws:
javax.xml.soap.SOAPException

addFault

public javax.xml.soap.SOAPFault addFault(javax.xml.soap.Name aName,
                                         String aFault,
                                         Locale aLocale)
                                  throws javax.xml.soap.SOAPException
not used

Specified by:
addFault in interface javax.xml.soap.SOAPBody
Parameters:
aName - Name
aFault - String
aLocale - Locale
Returns:
null
Throws:
javax.xml.soap.SOAPException

getUserData

public Object getUserData(String key)
not used

Specified by:
getUserData in interface Node
Parameters:
key - String
Returns:
null

setUserData

public Object setUserData(String key,
                          Object data,
                          UserDataHandler handler)
not used

Specified by:
setUserData in interface Node
Parameters:
key - String
data - Object
handler - UserDataHandler
Returns:
null

getFeature

public Object getFeature(String feature,
                         String version)
not used

Specified by:
getFeature in interface Node
Parameters:
feature - String
version - String
Returns:
null

isEqualNode

public boolean isEqualNode(Node arg)
not used

Specified by:
isEqualNode in interface Node
Parameters:
arg - Node
Returns:
false

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)
not used

Specified by:
lookupNamespaceURI in interface Node
Parameters:
prefix - String
Returns:
null

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)
not used

Specified by:
isDefaultNamespace in interface Node
Parameters:
namespaceURI - String
Returns:
false

lookupPrefix

public String lookupPrefix(String namespaceURI)
not used

Specified by:
lookupPrefix in interface Node
Parameters:
namespaceURI - String
Returns:
null

isSameNode

public boolean isSameNode(Node other)
not used

Specified by:
isSameNode in interface Node
Parameters:
other - Node
Returns:
false

setTextContent

public void setTextContent(String textContent)
                    throws DOMException
not used

Specified by:
setTextContent in interface Node
Parameters:
textContent - String
Throws:
DOMException

getTextContent

public String getTextContent()
                      throws DOMException
not used

Specified by:
getTextContent in interface Node
Returns:
null
Throws:
DOMException

compareDocumentPosition

public short compareDocumentPosition(Node other)
                              throws DOMException
not used

Specified by:
compareDocumentPosition in interface Node
Parameters:
other - Node
Returns:
0
Throws:
DOMException

getBaseURI

public String getBaseURI()
not used

Specified by:
getBaseURI in interface Node
Returns:
null

setIdAttributeNode

public void setIdAttributeNode(Attr idAttr,
                               boolean isId)
                        throws DOMException
not used

Specified by:
setIdAttributeNode in interface Element
Parameters:
idAttr - Attr
isId - boolean
Throws:
DOMException

setIdAttributeNS

public void setIdAttributeNS(String namespaceURI,
                             String localName,
                             boolean isId)
                      throws DOMException
not used

Specified by:
setIdAttributeNS in interface Element
Parameters:
namespaceURI - String
localName - String
isId - boolean
Throws:
DOMException

setIdAttribute

public void setIdAttribute(String name,
                           boolean isId)
                    throws DOMException
not used

Specified by:
setIdAttribute in interface Element
Parameters:
name - String
isId - boolean
Throws:
DOMException

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()
not used

Specified by:
getSchemaTypeInfo in interface Element
Returns:
null

extractContentAsDocument

public Document extractContentAsDocument()
                                  throws javax.xml.soap.SOAPException
not used

Specified by:
extractContentAsDocument in interface javax.xml.soap.SOAPBody
Returns:
null
Throws:
javax.xml.soap.SOAPException

addBodyElement

public javax.xml.soap.SOAPBodyElement addBodyElement(QName qName)
not used

Specified by:
addBodyElement in interface javax.xml.soap.SOAPBody
Parameters:
qName -
Returns:
null

addFault

public javax.xml.soap.SOAPFault addFault(QName qName,
                                         String nFault)
not used

Specified by:
addFault in interface javax.xml.soap.SOAPBody
Parameters:
qName -
qFault -

addFault

public javax.xml.soap.SOAPFault addFault(QName qName,
                                         String nFault,
                                         Locale locale)
not used

Specified by:
addFault in interface javax.xml.soap.SOAPBody
Parameters:
qName -
qFault -
locale -

removeAttribute

public boolean removeAttribute(QName qName)
not used

Specified by:
removeAttribute in interface javax.xml.soap.SOAPElement
Parameters:
name -
Returns:
false

setElementQName

public javax.xml.soap.SOAPElement setElementQName(QName newName)
                                           throws javax.xml.soap.SOAPException
not used

Specified by:
setElementQName in interface javax.xml.soap.SOAPElement
Parameters:
name -
Returns:
null
Throws:
javax.xml.soap.SOAPException

getElementQName

public QName getElementQName()
not used

Specified by:
getElementQName in interface javax.xml.soap.SOAPElement
Returns:
null

createQName

public QName createQName(String localName,
                         String prefix)
                  throws javax.xml.soap.SOAPException
not used

Specified by:
createQName in interface javax.xml.soap.SOAPElement
Parameters:
localName -
prefix -
Returns:
null
Throws:
javax.xml.soap.SOAPException

getAllAttributesAsQNames

public Iterator getAllAttributesAsQNames()
not used

Specified by:
getAllAttributesAsQNames in interface javax.xml.soap.SOAPElement
Returns:
null

getAttributeValue

public String getAttributeValue(QName qName)
not used

Specified by:
getAttributeValue in interface javax.xml.soap.SOAPElement
Parameters:
qName -
Returns:
null

addAttribute

public javax.xml.soap.SOAPElement addAttribute(QName qName,
                                               String val)
not used

Specified by:
addAttribute in interface javax.xml.soap.SOAPElement
Parameters:
qName -
val -
Returns:
null

addChildElement

public javax.xml.soap.SOAPElement addChildElement(String localName,
                                                  String prefix,
                                                  String uri)
                                           throws javax.xml.soap.SOAPException
not used

Specified by:
addChildElement in interface javax.xml.soap.SOAPElement
Overrides:
addChildElement in class org.apache.axis.message.MessageElement
Parameters:
localName -
prefix -
uri -
Returns:
null
Throws:
javax.xml.soap.SOAPException

addChildElement

public javax.xml.soap.SOAPElement addChildElement(QName qName)
                                           throws javax.xml.soap.SOAPException
not used

Specified by:
addChildElement in interface javax.xml.soap.SOAPElement
Parameters:
qName -
Returns:
null
Throws:
javax.xml.soap.SOAPException

equals

public boolean equals(Object o)

Overrides:
equals in class org.apache.axis.message.MessageElement

hashCode

public int hashCode()

Overrides:
hashCode in class Object