FileDocCategorySizeDatePackage
JspConfigNode.javaAPI DocGlassfish v2 API3711Fri May 04 22:31:48 BST 2007com.sun.enterprise.deployment.node.web

JspConfigNode

public class JspConfigNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode
This node represents the element in a web application.

Fields Summary
Constructors Summary
public JspConfigNode()

	super();
	registerElementHandler(new XMLElement(WebTagNames.TAGLIB), TagLibNode.class, "addTagLib");
	registerElementHandler(new XMLElement(WebTagNames.JSP_GROUP), JspGroupNode.class, "addJspGroup");
    
Methods Summary
public org.w3c.dom.NodewriteDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.JspConfigDescriptor 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 myNode = appendChild(parent, nodeName);
	TagLibNode lNode = new TagLibNode();
	for(Enumeration en = descriptor.getTagLibs(); en.hasMoreElements();) {
	    lNode.writeDescriptor(myNode, WebTagNames.TAGLIB, 
		(TagLibConfigurationDescriptor) en.nextElement());
	}
	JspGroupNode jspGroup = new JspGroupNode();
	for(Enumeration en = descriptor.getJspGroups(); en.hasMoreElements();) {
	    jspGroup.writeDescriptor(myNode, WebTagNames.JSP_GROUP, 
		(JspGroupDescriptor) en.nextElement());
	}

        return myNode;