Class EjbRelationshipRoleNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<RelationRoleDescriptor>
-
- org.glassfish.ejb.deployment.node.EjbRelationshipRoleNode
-
- All Implemented Interfaces:
XMLNode<RelationRoleDescriptor>
public class EjbRelationshipRoleNode extends DeploymentDescriptorNode<RelationRoleDescriptor>
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, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description EjbRelationshipRoleNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanendElement(XMLElement element)receives notification of the end of an XML element by the ParserRelationRoleDescriptorgetDescriptor()protected MapgetDispatchTable()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.XMLNodegetHandlerFor(XMLElement element)Return the XMLNode implementation respionsible for handling the sub-element of the current nodebooleanhandlesElement(XMLElement element)Return true if the XMLNode is responisble for handling the XML elementvoidsetElementValue(XMLElement element, String value)receives notification of the value for a particular tagNodewriteDescriptor(Node parent, 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, createDescriptor, forceAppendTextChild, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, getXMLRootTag, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
-
-
-
Method Detail
-
getHandlerFor
public XMLNode getHandlerFor(XMLElement element)
Description copied from interface:XMLNodeReturn the XMLNode implementation respionsible for handling the sub-element of the current node- Specified by:
getHandlerForin interfaceXMLNode<RelationRoleDescriptor>- Overrides:
getHandlerForin classDeploymentDescriptorNode<RelationRoleDescriptor>- 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:XMLNodeReturn true if the XMLNode is responisble for handling the XML element- Specified by:
handlesElementin interfaceXMLNode<RelationRoleDescriptor>- Overrides:
handlesElementin classDeploymentDescriptorNode<RelationRoleDescriptor>- 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 RelationRoleDescriptor getDescriptor()
- Specified by:
getDescriptorin interfaceXMLNode<RelationRoleDescriptor>- Overrides:
getDescriptorin classDeploymentDescriptorNode<RelationRoleDescriptor>- Returns:
- the descriptor instance to associate with this XMLNode
-
getDispatchTable
protected Map getDispatchTable()
Description copied from class:DeploymentDescriptorNodeall 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:
getDispatchTablein classDeploymentDescriptorNode<RelationRoleDescriptor>- 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:DeploymentDescriptorNodereceives notification of the end of an XML element by the Parser- Specified by:
endElementin interfaceXMLNode<RelationRoleDescriptor>- Overrides:
endElementin classDeploymentDescriptorNode<RelationRoleDescriptor>- Parameters:
element- the xml tag identification- Returns:
- true if this node is done processing the XML sub tree
-
setElementValue
public void setElementValue(XMLElement element, String value)
Description copied from class:DeploymentDescriptorNodereceives notification of the value for a particular tag- Specified by:
setElementValuein interfaceXMLNode<RelationRoleDescriptor>- Overrides:
setElementValuein classDeploymentDescriptorNode<RelationRoleDescriptor>- Parameters:
element- the xml elementvalue- it's associated value
-
writeDescriptor
public Node writeDescriptor(Node parent, String nodeName, RelationRoleDescriptor descriptor)
Description copied from class:DeploymentDescriptorNodewrite the descriptor class to a DOM tree and return it- Overrides:
writeDescriptorin classDeploymentDescriptorNode<RelationRoleDescriptor>- Parameters:
parent- node in the DOM treenodeName- name for the root element for this DOM tree fragmentdescriptor- the descriptor to write- Returns:
- the DOM tree top node
-
-