Package org.apache.axis.message
Class RPCParam
java.lang.Object
org.apache.axis.message.NodeImpl
org.apache.axis.message.MessageElement
org.apache.axis.message.RPCParam
- All Implemented Interfaces:
Serializable
,Cloneable
,Node
,SOAPElement
,Element
,Node
,NodeList
An RPC parameter
- Author:
- Glen Daniels (gdaniels@apache.org)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.axis.message.MessageElement
MessageElement.QNameAttr
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd a text node to the document.Returns value of the node as an object of registered type.getValue()
Get the value of the doc as a string.static Method
protected void
outputImpl
(SerializationContext context) override point -output to a serialization context.void
serialize
(SerializationContext context) void
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
If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node.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, childDeepCloned, cloneNode, cloning, detachAllChildren, equals, findElement, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributesEx, getAttributeValue, getAttributeValue, getChildElement, getChildElements, getChildElements, getChildElements, getChildren, getCompleteAttributes, getDeserializationContext, getElementName, getElementsByTagName, getElementsByTagNameNS, getElementsNS, getEncodingStyle, getEnvelope, getFixupDeserializer, getHref, getID, getLength, getName, getNamespacePrefixes, getNamespaceURI, getObjectValue, getOwnerDocument, getPrefix, getQName, getRealElement, getRecorder, getTagName, getType, getValueAsType, getValueAsType, getValueDOM, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, isRoot, item, output, publishContents, publishToHandler, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAllAttributes, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setEncodingStyle, setEndIndex, setEnvelope, setFixupDeserializer, setName, setNamespaceURI, setNSMappings, setQName, setRecorder, setType, toString
Methods inherited from class org.apache.axis.message.NodeImpl
appendChild, compareDocumentPosition, convertAttrSAXtoDOM, detachNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getSchemaTypeInfo, getTextContent, getUserData, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDefaultNamespace, isDirty, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, makeAttributesEditable, normalize, recycleNode, removeChild, replaceChild, reset, setDirty, setDirty, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setOwnerDocument, setParent, setParentElement, setPrefix, setTextContent, setUserData
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.w3c.dom.Element
getSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNS
Methods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, recycleNode, setParentElement
Methods inherited from interface org.w3c.dom.Node
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Field Details
-
log
protected static org.apache.commons.logging.Log log
-
-
Constructor Details
-
RPCParam
Constructor for building up messages. -
RPCParam
-
RPCParam
-
-
Method Details
-
setRPCCall
-
getObjectValue
Description copied from class:MessageElement
Returns value of the node as an object of registered type.- Overrides:
getObjectValue
in classMessageElement
- Returns:
- Object of proper type, or null if no mapping could be found.
-
setObjectValue
Description copied from class:MessageElement
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 classMessageElement
- Parameters:
value
- node's value or null.
-
set
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
-
getValueSetMethod
-
getParamDesc
-
setParamDesc
-
setXSITypeGeneration
-
getXSITypeGeneration
-
serialize
- Throws:
IOException
-
outputImpl
Description copied from class:MessageElement
override point -output to a serialization context.- Overrides:
outputImpl
in classMessageElement
- Parameters:
context
- destination.- Throws:
Exception
- if something went wrong.
-
getValue
Description copied from class:MessageElement
Get the value of the doc as a string. This usesMessageElement.getAsDOM()
so is a heavyweight operation.- Specified by:
getValue
in interfaceNode
- Overrides:
getValue
in classMessageElement
- 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:
-
addTextNode
Description copied from class:MessageElement
add a text node to the document.- Specified by:
addTextNode
in interfaceSOAPElement
- Overrides:
addTextNode
in classMessageElement
- Parameters:
s
- aString
object with the textual content to be added- Returns:
- ourselves
- Throws:
SOAPException
- if there is an error in creating the newText
object- See Also:
-
setValue
Description copied from class:NodeImpl
If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node. The value of the immediate child of this node can be set only if, there is one child node and that node is a Text node, or if there are no children in which case a child Text node will be created.- Specified by:
setValue
in interfaceNode
- Overrides:
setValue
in classMessageElement
- Parameters:
value
- the text to set- See Also:
-