1 23 24 package com.sun.enterprise.deployment.node.ejb; 25 26 import java.util.Map ; 27 import org.w3c.dom.Node ; 28 29 import com.sun.enterprise.deployment.node.XMLElement; 30 import com.sun.enterprise.deployment.node.DeploymentDescriptorNode; 31 32 import com.sun.enterprise.deployment.Descriptor; 33 import com.sun.enterprise.deployment.FieldDescriptor; 34 import com.sun.enterprise.deployment.xml.EjbTagNames; 35 36 42 public class CmpFieldNode extends DeploymentDescriptorNode { 43 44 50 protected Map getDispatchTable() { 51 Map table = super.getDispatchTable(); 52 table.put(EjbTagNames.FIELD_NAME, "setName"); 53 return table; 54 } 55 56 64 public Node writeDescriptor(Node parent, String nodeName, FieldDescriptor descriptor) { 65 Node cmpField = appendChild(parent, nodeName); 66 writeLocalizedDescriptions(cmpField, descriptor); 67 appendTextChild(cmpField, EjbTagNames.FIELD_NAME, descriptor.getName()); 68 return cmpField; 69 } 70 } 71 | Popular Tags |