com.sun.enterprise.deployment.node
Class SecurityRoleNode

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

public class SecurityRoleNode
extends DeploymentDescriptorNode

Version:
Author:
Jerome Dochez

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode
 
Constructor Summary
SecurityRoleNode()
           
 
Method Summary
protected  java.util.Map getDispatchTable()
          Declare the setName method as an action on the SecurityRoleDescriptor, as initialized by the DescriptorFactory.
 org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, Role descriptor)
          write the descriptor class to a DOM tree and return it
 org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, SecurityRoleDescriptor 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, endElement, forceAppendTextChild, getDescriptor, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getXMLPath, getXMLRootTag, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setElementValue, 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

SecurityRoleNode

public SecurityRoleNode()
Method Detail

getDispatchTable

protected java.util.Map getDispatchTable()
Declare the setName method as an action on the SecurityRoleDescriptor, as initialized by the DescriptorFactory.

The DeploymentDescriptorNode superclass specifies the setDescription method for the description element, so we just add the setName action to that dispatch table.

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

writeDescriptor

public org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent,
                                        java.lang.String nodeName,
                                        Role 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

writeDescriptor

public org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent,
                                        java.lang.String nodeName,
                                        SecurityRoleDescriptor 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.