1 23 24 package com.sun.enterprise.deployment.node; 25 26 import java.util.Map ; 27 import org.w3c.dom.Node ; 28 29 import com.sun.enterprise.deployment.MessageDestinationDescriptor; 30 import com.sun.enterprise.deployment.xml.TagNames; 31 import com.sun.enterprise.deployment.Descriptor; 32 33 40 public class MessageDestinationNode extends DisplayableComponentNode { 41 42 49 protected Map getDispatchTable() { 50 Map table = super.getDispatchTable(); 51 table.put(TagNames.MESSAGE_DESTINATION_NAME, "setName"); 52 table.put(TagNames.MAPPED_NAME, "setMappedName"); 53 return table; 54 } 55 56 64 public Node writeDescriptor(Node parent, String nodeName, 65 MessageDestinationDescriptor desc) { 66 67 68 Node msgDestNode = super.writeDescriptor(parent, nodeName, desc); 69 70 writeDisplayableComponentInfo(msgDestNode, desc); 71 72 appendTextChild(msgDestNode, TagNames.MESSAGE_DESTINATION_NAME, 73 desc.getName()); 74 appendTextChild(msgDestNode, TagNames.MAPPED_NAME, 75 desc.getMappedName()); 76 77 return msgDestNode; 78 } 79 } 80 | Popular Tags |