com.sun.enterprise.deployment.node.ejb
Class EjbRelationshipRoleNode

java.lang.Object
  extended by com.sun.enterprise.deployment.node.DeploymentDescriptorNode
      extended by com.sun.enterprise.deployment.node.ejb.EjbRelationshipRoleNode
All Implemented Interfaces:
XMLNode

public class EjbRelationshipRoleNode
extends DeploymentDescriptorNode

This class is responsible for handling the ejb-relationship-role xml elements

Version:
Author:
Jerome Dochez

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode
 
Constructor Summary
EjbRelationshipRoleNode()
           
 
Method Summary
 boolean endElement(XMLElement element)
          receives notification of the end of an XML element by the Parser
 java.lang.Object getDescriptor()
           
protected  java.util.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.
 XMLNode getHandlerFor(XMLElement element)
          Return the XMLNode implementation respionsible for handling the sub-element of the current node
 boolean handlesElement(XMLElement element)
          Return true if the XMLNode is responisble for handling the XML element
 void setElementValue(XMLElement element, java.lang.String value)
          receives notiification of the value for a particular tag
 org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, RelationRoleDescriptor descriptor)
          write the descriptor class to a DOM tree and return it
 
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addDescriptor, addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, forceAppendTextChild, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getXMLPath, getXMLRootTag, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeAroundInvokeDescriptors, writeAroundTimeoutDescriptors, writeDataSourceDefinitionDescriptors, writeDescriptor, writeDescriptor, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writePostActivateDescriptors, writePostConstructDescriptors, writePreDestroyDescriptors, writePrePassivateDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbRelationshipRoleNode

public EjbRelationshipRoleNode()
Method Detail

getHandlerFor

public XMLNode getHandlerFor(XMLElement element)
Description copied from interface: XMLNode
Return the XMLNode implementation respionsible for handling the sub-element of the current node

Specified by:
getHandlerFor in interface XMLNode
Overrides:
getHandlerFor in class DeploymentDescriptorNode
Parameters:
element - the XML element type name
Returns:
the handler registered for the subtag element of the curent XMLNode

handlesElement

public boolean handlesElement(XMLElement element)
Description copied from interface: XMLNode
Return true if the XMLNode is responisble for handling the XML element

Specified by:
handlesElement in interface XMLNode
Overrides:
handlesElement in class DeploymentDescriptorNode
Parameters:
element - the XML element type name
Returns:
true if the element tag can be handled by any registered sub nodes of the current XMLNode

getDescriptor

public java.lang.Object getDescriptor()
Specified by:
getDescriptor in interface XMLNode
Overrides:
getDescriptor in class DeploymentDescriptorNode
Returns:
the descriptor instance to associate with this XMLNode

getDispatchTable

protected java.util.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.

Overrides:
getDispatchTable in class DeploymentDescriptorNode
Returns:
the map with the element name as a key, the setter method as a value

endElement

public boolean endElement(XMLElement element)
receives notification of the end of an XML element by the Parser

Specified by:
endElement in interface XMLNode
Overrides:
endElement in class DeploymentDescriptorNode
Parameters:
element - the xml tag identification
Returns:
true if this node is done processing the XML sub tree

setElementValue

public void setElementValue(XMLElement element,
                            java.lang.String value)
receives notiification of the value for a particular tag

Specified by:
setElementValue in interface XMLNode
Overrides:
setElementValue in class DeploymentDescriptorNode
Parameters:
element - the xml element
value - it's associated value

writeDescriptor

public org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent,
                                        java.lang.String nodeName,
                                        RelationRoleDescriptor descriptor)
write the descriptor class to a 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


Copyright © 2012 GlassFish Community. All Rights Reserved.