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

LocaleEncodingMappingListNode

public class LocaleEncodingMappingListNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode

Fields Summary
Constructors Summary
public LocaleEncodingMappingListNode()

	super();
	registerElementHandler(new XMLElement(WebTagNames.LOCALE_ENCODING_MAPPING), LocaleEncodingMappingNode.class, "addLocaleEncodingMapping");
    
Methods Summary
public org.w3c.dom.NodewriteDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.LocaleEncodingMappingListDescriptor 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);
	LocaleEncodingMappingNode lNode = new LocaleEncodingMappingNode();
	for(Enumeration en = descriptor.getLocaleEncodingMappings();
		en.hasMoreElements();) {
		lNode.writeDescriptor(myNode, WebTagNames.LOCALE_ENCODING_MAPPING, (LocaleEncodingMappingDescriptor) en.nextElement());
	}

        return myNode;