Class RPCParam

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Node, SOAPElement, org.w3c.dom.Element, org.w3c.dom.Node, org.w3c.dom.NodeList

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

      • log

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

      • RPCParam

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

        public RPCParam​(QName qname,
                        java.lang.Object value)
      • RPCParam

        public RPCParam​(java.lang.String namespace,
                        java.lang.String name,
                        java.lang.Object value)
    • Method Detail

      • setRPCCall

        public void setRPCCall​(RPCElement call)
      • getObjectValue

        public java.lang.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​(java.lang.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​(java.lang.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 java.lang.reflect.Method getValueSetMethod()
      • setParamDesc

        public void setParamDesc​(ParameterDesc paramDesc)
      • setXSITypeGeneration

        public void setXSITypeGeneration​(java.lang.Boolean value)
      • getXSITypeGeneration

        public java.lang.Boolean getXSITypeGeneration()
      • serialize

        public void serialize​(SerializationContext context)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • outputImpl

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

        public java.lang.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:
        ;
      • setValue

        public void setValue​(java.lang.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:
        Node.setValue(java.lang.String)