Class MethodNode

    • Constructor Detail

      • MethodNode

        public MethodNode()
    • Method Detail

      • getDispatchTable

        protected Map getDispatchTable()
        Description copied from class: DeploymentDescriptorNode
        all sub-implementation of this class can use a dispatch table to map xml element to method name on the descriptor class for setting the element value.
        Overrides:
        getDispatchTable in class DeploymentDescriptorNode<MethodDescriptor>
        Returns:
        the map with the element name as a key, the setter method as a value
      • writeQueryMethodDescriptor

        public Node writeQueryMethodDescriptor​(Node parent,
                                               String nodeName,
                                               MethodDescriptor descriptor)
        write the method descriptor class to a query-method DOM tree and return it
        Parameters:
        parent - node in the DOM tree
        node - name for the root element of this xml fragment
        the - descriptor to write
        Returns:
        the DOM tree top node
      • writeJavaMethodDescriptor

        public Node writeJavaMethodDescriptor​(Node parent,
                                              String nodeName,
                                              MethodDescriptor descriptor)
        write the method descriptor class to a java-method DOM tree and return it
        Parameters:
        parent - node in the DOM tree
        node - name for the root element of this xml fragment
        the - descriptor to write
        Returns:
        the DOM tree top node
      • writeJavaMethodDescriptor

        public Node writeJavaMethodDescriptor​(Node parent,
                                              String nodeName,
                                              MethodDescriptor descriptor,
                                              boolean writeEmptyMethodParamsElementForVoidMethods)
        write the method descriptor class to a java-method DOM tree and return it
        Parameters:
        parent - node in the DOM tree
        node - name for the root element of this xml fragment
        the - descriptor to write
        Returns:
        the DOM tree top node