FileDocCategorySizeDatePackage
SecurityRoleNode.javaAPI DocGlassfish v2 API4156Fri May 04 22:31:38 BST 2007com.sun.enterprise.deployment.node

SecurityRoleNode

public class SecurityRoleNode extends DeploymentDescriptorNode
author
Jerome Dochez
version

Fields Summary
Constructors Summary
Methods Summary
protected java.util.MapgetDispatchTable()
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.

return
the map with the element name as a key, the setter method as a value

    
        Map table = super.getDispatchTable();
        table.put(TagNames.ROLE_NAME, "setName");
        return table;
    
public org.w3c.dom.NodewriteDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.Role descriptor)
write the descriptor class to a DOM tree and return it

param
parent node in the DOM tree
param
node name for the root element of this xml fragment
param
the descriptor to write
return
the DOM tree top node

        Node roleNode = appendChild(parent, nodeName);
        appendTextChild(roleNode, TagNames.DESCRIPTION, descriptor.getDescription());        
        appendTextChild(roleNode, TagNames.ROLE_NAME, descriptor.getName());
        return roleNode;
    
public org.w3c.dom.NodewriteDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.SecurityRoleDescriptor descriptor)
write the descriptor class to a DOM tree and return it

param
parent node in the DOM tree
param
node name for the root element of this xml fragment
param
the descriptor to write
return
the DOM tree top node

        Node roleNode = appendChild(parent, nodeName);
        appendTextChild(roleNode, TagNames.DESCRIPTION, descriptor.getDescription());        
        appendTextChild(roleNode, TagNames.ROLE_NAME, descriptor.getName());
        return roleNode;