Class RPCParam

All Implemented Interfaces:
Serializable, Cloneable, Node, SOAPElement, Element, Node, NodeList

public class RPCParam extends MessageElement implements Serializable
An RPC parameter
Author:
Glen Daniels (gdaniels@apache.org)
See Also:
  • Field Details

    • log

      protected static org.apache.commons.logging.Log log
  • Constructor Details

    • RPCParam

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

      public RPCParam(QName qname, Object value)
    • RPCParam

      public RPCParam(String namespace, String name, Object value)
  • Method Details

    • setRPCCall

      public void setRPCCall(RPCElement call)
    • getObjectValue

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

      public void setObjectValue(Object value)
      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 class MessageElement
      Parameters:
      value - node's value or null.
    • 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
    • getValueSetMethod

      public static Method getValueSetMethod()
    • getParamDesc

      public ParameterDesc getParamDesc()
    • setParamDesc

      public void setParamDesc(ParameterDesc paramDesc)
    • setXSITypeGeneration

      public void setXSITypeGeneration(Boolean value)
    • getXSITypeGeneration

      public Boolean getXSITypeGeneration()
    • serialize

      public void serialize(SerializationContext context) throws IOException
      Throws:
      IOException
    • outputImpl

      protected void outputImpl(SerializationContext context) throws Exception
      Description copied from class: MessageElement
      override point -output to a serialization context.
      Overrides:
      outputImpl in class MessageElement
      Parameters:
      context - destination.
      Throws:
      Exception - if something went wrong.
    • getValue

      public String getValue()
      Description copied from class: MessageElement
      Get the value of the doc as a string. This uses MessageElement.getAsDOM() so is a heavyweight operation.
      Specified by:
      getValue in interface Node
      Overrides:
      getValue in class 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:
    • addTextNode

      public SOAPElement addTextNode(String s) throws SOAPException
      Description copied from class: MessageElement
      add a text node to the document.
      Specified by:
      addTextNode in interface SOAPElement
      Overrides:
      addTextNode in class MessageElement
      Parameters:
      s - a String object with the textual content to be added
      Returns:
      ourselves
      Throws:
      SOAPException - if there is an error in creating the new Text object
      See Also:
    • setValue

      public void setValue(String value)
      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 interface Node
      Overrides:
      setValue in class MessageElement
      Parameters:
      value - the text to set
      See Also: