org.apache.axis.message

Class RPCParam

Implemented Interfaces:
Cloneable, org.w3c.dom.Element, org.w3c.dom.Node, org.w3c.dom.NodeList, Serializable, Node, SOAPElement

public class RPCParam
extends MessageElement
implements Serializable

An RPC parameter
Author:
Glen Daniels (gdaniels@apache.org)

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.axis.message.MessageElement

MessageElement.QNameAttr

Field Summary

protected static Log
log

Fields inherited from class org.apache.axis.message.MessageElement

_isRoot, context, encodingStyle, endEventIndex, fixupDeserializer, href, id, log, message, namespaces, qNameAttrs, recorder, startContentsIndex, startEventIndex, typeQName

Fields inherited from class org.apache.axis.message.NodeImpl

_isDirty, attributes, children, document, log, name, namespaceURI, parent, prefix, textRep

Constructor Summary

RPCParam(String name, Object value)
Constructor for building up messages.
RPCParam(String namespace, String name, Object value)
constructor binding the internal object value field to the value parameter
RPCParam(QName qname, Object value)
constructor declaring the qualified name of the node and its value

Method Summary

SOAPElement
addTextNode(String s)
Object
getObjectValue()
Returns value of the node as an object of registered type.
ParameterDesc
getParamDesc()
String
getValue()
Get the value of the doc as a string.
static Method
getValueSetMethod()
Boolean
getXSITypeGeneration()
protected void
outputImpl(SerializationContext context)
override point -output to a serialization context.
void
serialize(SerializationContext context)
void
set(Object newValue)
This set method is registered during deserialization to set the deserialized value.
void
setObjectValue(Object value)
Sets value of this node to an Object.
void
setParamDesc(ParameterDesc paramDesc)
void
setRPCCall(RPCElement call)
void
setValue(String value)
void
setXSITypeGeneration(Boolean value)

Methods inherited from class org.apache.axis.message.MessageElement

addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addMapping, addNamespaceDeclaration, addTextNode, childDeepCloned, cloneNode, cloning, detachAllChildren, equals, findElement, getAllAttributes, getAsDOM, getAsDocument, getAsString, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributeValue, getAttributeValue, getAttributesEx, getChildElement, getChildElements, getChildElements, getChildElements, getChildren, getCompleteAttributes, 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, outputImpl, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNS, removeAttributeNode, removeContents, removeNamespaceDeclaration, setAllAttributes, setAttribute, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setContentsIndex, setEncodingStyle, setEndIndex, setEnvelope, setFixupDeserializer, setNSMappings, setName, setNamespaceURI, setObjectValue, setQName, setRecorder, setType, setValue, toString

Methods inherited from class org.apache.axis.message.NodeImpl

appendChild, cloneNode, compareDocumentPosition, convertAttrSAXtoDOM, detachNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getSchemaTypeInfo, getTextContent, getUserData, getValue, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDefaultNamespace, isDirty, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, makeAttributesEditable, normalize, output, recycleNode, removeChild, replaceChild, reset, setDirty, setDirty, setIdAttribute, setIdAttributeNS, setIdAttributeNode, setNodeValue, setOwnerDocument, setParent, setParentElement, setPrefix, setTextContent, setUserData, setValue

Field Details

log

protected static Log log

Constructor Details

RPCParam

public RPCParam(String name,
                Object value)
Constructor for building up messages.

RPCParam

public RPCParam(String namespace,
                String name,
                Object value)
constructor binding the internal object value field to the value parameter
Parameters:
namespace - namespace of the element
value - value of the node

RPCParam

public RPCParam(QName qname,
                Object value)
constructor declaring the qualified name of the node and its value
Parameters:
value - value of the node

Method Details

addTextNode

public SOAPElement addTextNode(String s)
            throws SOAPException
Specified by:
addTextNode in interface SOAPElement
Overrides:
addTextNode in interface MessageElement
See Also:
javax.xml.soap.SOAPElement.addTextNode(java.lang.String)

getObjectValue

public Object getObjectValue()
Returns value of the node as an object of registered type.
Overrides:
getObjectValue in interface MessageElement
Returns:
Object of proper type, or null if no mapping could be found.

getParamDesc

public ParameterDesc getParamDesc()

getValue

public String getValue()
Specified by:
getValue in interface Node
Overrides:
getValue in interface MessageElement
Returns:
the value of any child node, or null if there is no node/something went wrong during serialization. If the first child is text, the return value is the text itself.
See Also:
javax.xml.soap.Node.getValue() ;

getValueSetMethod

public static Method getValueSetMethod()

getXSITypeGeneration

public Boolean getXSITypeGeneration()

outputImpl

protected void outputImpl(SerializationContext context)
            throws Exception
override point -output to a serialization context.
Overrides:
outputImpl in interface MessageElement
Parameters:

serialize

public void serialize(SerializationContext context)
            throws IOException

set

public void set(Object newValue)
This set method is registered during deserialization to set the deserialized value. If the method is called multiple times, the value is automatically changed into a container to hold all of the values.
Parameters:
newValue - is the deserialized object

setObjectValue

public void setObjectValue(Object value)
Sets value of this node to an Object. A serializer needs to be registered for this object class for proper operation.

Note that this method will log an error and no-op if there are any children in the MessageElement or if the MessageElement was constructed from XML.

Overrides:
setObjectValue in interface MessageElement
Parameters:

setParamDesc

public void setParamDesc(ParameterDesc paramDesc)

setRPCCall

public void setRPCCall(RPCElement call)

setValue

public void setValue(String value)
Specified by:
setValue in interface Node
Overrides:
setValue in interface MessageElement
See Also:
javax.xml.soap.Node.setValue(java.lang.String)

setXSITypeGeneration

public void setXSITypeGeneration(Boolean value)

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.