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.TagLibConfigurationDescriptor; 30 import com.sun.enterprise.deployment.node.DeploymentDescriptorNode; 31 import com.sun.enterprise.deployment.xml.WebTagNames; 32 33 38 public class TagLibNode extends DeploymentDescriptorNode { 39 40 46 protected Map getDispatchTable() { 47 Map table = super.getDispatchTable(); 48 table.put(WebTagNames.TAGLIB_URI, "setTagLibURI"); 49 table.put(WebTagNames.TAGLIB_LOCATION, "setTagLibLocation"); 50 return table; 51 } 52 53 61 public Node writeDescriptor(Node parent, String nodeName, TagLibConfigurationDescriptor descriptor) { 62 Node myNode = appendChild(parent, nodeName); 63 appendTextChild(myNode, WebTagNames.TAGLIB_URI, descriptor.getTagLibURI()); 64 appendTextChild(myNode, WebTagNames.TAGLIB_LOCATION, descriptor.getTagLibLocation()); 65 return myNode; 66 } 67 } 68 | Popular Tags |