FileDocCategorySizeDatePackage
GroupNode.javaAPI DocGlassfish v2 API3634Fri May 04 22:31:42 BST 2007com.sun.enterprise.deployment.node.runtime

GroupNode

public class GroupNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode
This node handles the group definition in the runtime DDs
author
Jerome Dochez
version

Fields Summary
com.sun.enterprise.deployment.Group
group
Constructors Summary
Methods Summary
public java.lang.ObjectgetDescriptor()

return
the descriptor instance to associate with this XMLNode

        
                    
       
        return group;
    
public voidstartElement(com.sun.enterprise.deployment.node.XMLElement element, org.xml.sax.Attributes attributes)
SAX Parser API implementation, we don't really care for now.


        if (RuntimeTagNames.GROUP.equals(element.getQName())) {
            for (int i=0; i<attributes.getLength();i++) {
                if (RuntimeTagNames.NAME.equals(attributes.getQName(i))) {
                    group = new Group(attributes.getValue(i));
                }
            }
        }
    
public org.w3c.dom.NodewriteDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.Group descriptor)
write the descriptor class to a DOM tree and return it

param
parent node for the DOM tree
param
node name
param
the descriptor to write
return
the DOM tree top node

      
        Element principal = appendChild(parent, nodeName);     
	setAttribute(principal, RuntimeTagNames.NAME, descriptor.getName());
        return principal;