1 23 24 package com.sun.enterprise.deployment.node.web; 25 26 import java.util.Map ; 27 import org.w3c.dom.Node ; 28 29 import com.sun.enterprise.deployment.node.DeploymentDescriptorNode; 30 import com.sun.enterprise.deployment.xml.WebTagNames; 31 import com.sun.enterprise.deployment.EnvironmentProperty; 32 33 39 public class InitParamNode extends DeploymentDescriptorNode { 40 41 47 protected Map getDispatchTable() { 48 Map table = super.getDispatchTable(); 49 table.put(WebTagNames.PARAM_NAME, "setName"); 50 table.put(WebTagNames.PARAM_VALUE, "setValue"); 51 return table; 52 } 53 54 62 public Node writeDescriptor(Node parent, String nodeName, EnvironmentProperty descriptor) { 63 Node myNode = appendChild(parent, nodeName); 64 65 writeLocalizedDescriptions(myNode, descriptor); 66 appendTextChild(myNode, WebTagNames.PARAM_NAME, descriptor.getName()); 67 appendTextChild(myNode, WebTagNames.PARAM_VALUE, descriptor.getValue()); 68 return myNode; 69 } 70 } 71 | Popular Tags |