Class MethodNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<MethodDescriptor>
-
- com.sun.enterprise.deployment.node.MethodNode
-
- All Implemented Interfaces:
XMLNode<MethodDescriptor>
public class MethodNode extends DeploymentDescriptorNode<MethodDescriptor>
This class handle the method element- Version:
- Author:
- Jerome Dochez
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description MethodNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
endElement(XMLElement element)
receives notification of the end of an XML element by the ParserMethodDescriptor
getDescriptor()
protected Map
getDispatchTable()
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.Node
writeDescriptor(Node parent, String nodeName, MethodDescriptor descriptor, String ejbName)
Node
writeJavaMethodDescriptor(Node parent, String nodeName, MethodDescriptor descriptor)
write the method descriptor class to a java-method DOM tree and return itNode
writeJavaMethodDescriptor(Node parent, String nodeName, MethodDescriptor descriptor, boolean writeEmptyMethodParamsElementForVoidMethods)
write the method descriptor class to a java-method DOM tree and return itNode
writeQueryMethodDescriptor(Node parent, String nodeName, MethodDescriptor descriptor)
write the method descriptor class to a query-method DOM tree and return it-
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addDescriptor, addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, forceAppendTextChild, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, getXMLRootTag, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setElementValue, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
-
-
-
Method Detail
-
getDescriptor
public MethodDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceXMLNode<MethodDescriptor>
- Overrides:
getDescriptor
in classDeploymentDescriptorNode<MethodDescriptor>
- Returns:
- the descriptor instance to associate with this XMLNode
-
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 classDeploymentDescriptorNode<MethodDescriptor>
- Returns:
- the map with the element name as a key, the setter method as a value
-
endElement
public boolean endElement(XMLElement element)
Description copied from class:DeploymentDescriptorNode
receives notification of the end of an XML element by the Parser- Specified by:
endElement
in interfaceXMLNode<MethodDescriptor>
- Overrides:
endElement
in classDeploymentDescriptorNode<MethodDescriptor>
- Parameters:
element
- the xml tag identification- Returns:
- true if this node is done processing the XML sub tree
-
writeDescriptor
public Node writeDescriptor(Node parent, String nodeName, MethodDescriptor descriptor, String ejbName)
-
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 treenode
- name for the root element of this xml fragmentthe
- 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 treenode
- name for the root element of this xml fragmentthe
- 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 treenode
- name for the root element of this xml fragmentthe
- descriptor to write- Returns:
- the DOM tree top node
-
-