org.jboss.axis.message
Class RPCParamElementImpl

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.RPCParamElementImpl
All Implemented Interfaces:
Cloneable, javax.xml.soap.SOAPElement, Element, Node

public class RPCParamElementImpl
extends SOAPElementAxisImpl

Abstracts an RPC parameter as SOAPElement

This is a hack that bridges between the SOAPElement that represents a RPC parameter and the actual RPCParam object which lives in a list inside the RPCElement. As long as the RPCParam is not a true javax.xml.soap.Node, clients cannot use the saaj api to modify its value.

This class should eventually become the RPCParam.

Author:
Thomas Diesler (thomas.diesler@jboss.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, 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
RPCParamElementImpl(RPCParam rpcParam)
           
RPCParamElementImpl(String namespace, String localPart, String prefix, Attributes attributes, DeserializationContext context)
           
 
Method Summary
 javax.xml.soap.SOAPElement addTextNode(String value)
          Try to keep the RPCParam object in sync
 Iterator getChildElements()
          Returns an Iterator over all the immediate child Nodes of this element.
 Iterator getChildElements(javax.xml.soap.Name name)
          Returns an Iterator over all the immediate child Nodes of this element with the specified name.
 void setNodeValue(String value)
          Try to keep the RPCParam object in sync
 void setValue(String value)
          Try to keep the RPCParam object in sync
 
Methods inherited from class org.jboss.axis.message.SOAPElementAxisImpl
addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addMapping, addNamespaceDeclaration, appendChild, cloneNode, clonning, detachAllChildren, detachNode, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAsStringFromInternal, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributesEx, getAttributeValue, getAttributeValue, 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, outputImpl, printFromInternal, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, setAllAttributes, setAllImmutable, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setDirty, setEncodingStyle, setEndIndex, setEnvelope, setFixupDeserializer, setImmutable, setName, setNamespaceURI, setNSMappings, setObjectValue, setOwnerDocument, setParentElement, 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, setTextContent, setUserData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.soap.Node
getValue, recycleNode
 
Methods inherited from interface org.w3c.dom.Node
compareDocumentPosition, getBaseURI, getFeature, getNodeName, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
 
Methods inherited from interface org.w3c.dom.Element
getSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
compareDocumentPosition, getBaseURI, getFeature, getNodeName, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
 

Constructor Detail

RPCParamElementImpl

public RPCParamElementImpl(String namespace,
                           String localPart,
                           String prefix,
                           Attributes attributes,
                           DeserializationContext context)
                    throws AxisFault
Throws:
AxisFault

RPCParamElementImpl

public RPCParamElementImpl(RPCParam rpcParam)
Method Detail

getChildElements

public Iterator getChildElements()
Description copied from class: SOAPElementImpl
Returns an Iterator over all the immediate child Nodes of this element.

This includes javax.xml.soap.Text objects as well as SOAPElement objects. Calling this method may cause child Element, SOAPElement and org.w3c.dom.Text nodes to be replaced by SOAPElement, SOAPHeaderElement, SOAPBodyElement or javax.xml.soap.Text nodes as appropriate for the type of this parent node. As a result the calling application must treat any existing references to these child nodes that have been obtained through DOM APIs as invalid and either discard them or refresh them with the values returned by this Iterator. This behavior can be avoided by calling the equivalent DOM APIs. See javax.xml.soap for more details.

Specified by:
getChildElements in interface javax.xml.soap.SOAPElement
Overrides:
getChildElements in class SOAPElementAxisImpl
Returns:
an iterator with the content of this SOAPElement object

getChildElements

public Iterator getChildElements(javax.xml.soap.Name name)
Description copied from class: SOAPElementImpl
Returns an Iterator over all the immediate child Nodes of this element with the specified name.

All of these children will be SOAPElement nodes. Calling this method may cause child Element, SOAPElement and org.w3c.dom.Text nodes to be replaced by SOAPElement, SOAPHeaderElement, SOAPBodyElement or javax.xml.soap.Text nodes as appropriate for the type of this parent node. As a result the calling application must treat any existing references to these child nodes that have been obtained through DOM APIs as invalid and either discard them or refresh them with the values returned by this Iterator. This behavior can be avoided by calling the equivalent DOM APIs. See javax.xml.soap for more details.

Specified by:
getChildElements in interface javax.xml.soap.SOAPElement
Overrides:
getChildElements in class SOAPElementAxisImpl
Parameters:
name - a Name object with the name of the child elements to be returned
Returns:
an Iterator object over all the elements in this SOAPElement object with the specified name

addTextNode

public javax.xml.soap.SOAPElement addTextNode(String value)
                                       throws javax.xml.soap.SOAPException
Try to keep the RPCParam object in sync

Specified by:
addTextNode in interface javax.xml.soap.SOAPElement
Overrides:
addTextNode in class SOAPElementAxisImpl
Parameters:
value - a String object with the textual content to be added
Returns:
the SOAPElement object into which the new Text object was inserted
Throws:
javax.xml.soap.SOAPException - if there is an error in creating the new Text object

setValue

public void setValue(String value)
Try to keep the RPCParam object in sync

Overrides:
setValue in class NodeImpl
Parameters:
value - A value string

setNodeValue

public void setNodeValue(String value)
                  throws DOMException
Try to keep the RPCParam object in sync

Specified by:
setNodeValue in interface Node
Overrides:
setNodeValue in class NodeImpl
Throws:
DOMException


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