public class RPCParam extends MessageElement implements java.io.Serializable
MessageElement.QNameAttr
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
_isRoot, context, encodingStyle, endEventIndex, fixupDeserializer, href, id, message, namespaces, qNameAttrs, recorder, startContentsIndex, startEventIndex, typeQName
_isDirty, attributes, children, document, name, namespaceURI, parent, prefix, textRep
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 and Description |
---|
RPCParam(QName qname,
java.lang.Object value) |
RPCParam(java.lang.String name,
java.lang.Object value)
Constructor for building up messages.
|
RPCParam(java.lang.String namespace,
java.lang.String name,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
SOAPElement |
addTextNode(java.lang.String s)
add a text node to the document.
|
java.lang.Object |
getObjectValue()
Returns value of the node as an object of registered type.
|
ParameterDesc |
getParamDesc() |
java.lang.String |
getValue()
Get the value of the doc as a string.
|
static java.lang.reflect.Method |
getValueSetMethod() |
java.lang.Boolean |
getXSITypeGeneration() |
protected void |
outputImpl(SerializationContext context)
override point -output to a serialization context.
|
void |
serialize(SerializationContext context) |
void |
set(java.lang.Object newValue)
This set method is registered during deserialization
to set the deserialized value.
|
void |
setObjectValue(java.lang.Object value)
Sets value of this node to an Object.
|
void |
setParamDesc(ParameterDesc paramDesc) |
void |
setRPCCall(RPCElement call) |
void |
setValue(java.lang.String value)
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(java.lang.Boolean value) |
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
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, setDirty, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setOwnerDocument, setParent, setParentElement, setPrefix, setTextContent, setUserData
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
detachNode, getParentElement, recycleNode, setParentElement
getSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNS
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
public RPCParam(java.lang.String name, java.lang.Object value)
public RPCParam(QName qname, java.lang.Object value)
public RPCParam(java.lang.String namespace, java.lang.String name, java.lang.Object value)
public void setRPCCall(RPCElement call)
public java.lang.Object getObjectValue()
MessageElement
getObjectValue
in class MessageElement
public void setObjectValue(java.lang.Object value)
MessageElement
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.
setObjectValue
in class MessageElement
value
- node's value or null.public void set(java.lang.Object newValue)
newValue
- is the deserialized objectpublic static java.lang.reflect.Method getValueSetMethod()
public ParameterDesc getParamDesc()
public void setParamDesc(ParameterDesc paramDesc)
public void setXSITypeGeneration(java.lang.Boolean value)
public java.lang.Boolean getXSITypeGeneration()
public void serialize(SerializationContext context) throws java.io.IOException
java.io.IOException
protected void outputImpl(SerializationContext context) throws java.lang.Exception
MessageElement
outputImpl
in class MessageElement
context
- destination.java.lang.Exception
- if something went wrong.public java.lang.String getValue()
MessageElement
MessageElement.getAsDOM()
so is a heavyweight operation.getValue
in class MessageElement
;
public SOAPElement addTextNode(java.lang.String s) throws SOAPException
MessageElement
addTextNode
in interface SOAPElement
addTextNode
in class MessageElement
s
- a String
object with the textual content to be addedSOAPException
- if there is an error in creating the
new Text
objectSOAPElement.addTextNode(java.lang.String)
public void setValue(java.lang.String value)
NodeImpl
setValue
in class MessageElement
value
- the text to setNode.setValue(java.lang.String)
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.