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