1 22 package org.jboss.metamodel.descriptor; 23 24 import org.jboss.logging.Logger; 25 26 27 34 public class MessageDestinationRef extends Ref 35 { 36 private static final Logger log = Logger.getLogger(MessageDestinationRef.class); 37 38 private String description; 39 40 private String messageDestinationRefName; 41 42 private String messageDestinationType; 43 44 private String messageDestinationUsage; 45 46 private String messageDestinationLink; 47 48 private String mappedName; 49 50 private String jndiName; 51 52 public String getJndiName() 53 { 54 return jndiName; 55 } 56 57 public void setJndiName(String jndiName) 58 { 59 this.jndiName = jndiName; 60 } 61 62 public String getMappedName() 63 { 64 return mappedName; 65 } 66 67 public void setMappedName(String mappedName) 68 { 69 this.mappedName = mappedName; 70 } 71 72 public String getDescription() 73 { 74 return description; 75 } 76 77 public void setDescription(String description) 78 { 79 this.description = description; 80 } 81 82 public String getMessageDestinationRefName() 83 { 84 return messageDestinationRefName; 85 } 86 87 public void setMessageDestinationRefName(String messageDestinationRefName) 88 { 89 this.messageDestinationRefName = messageDestinationRefName; 90 } 91 92 public String getMessageDestinationType() 93 { 94 return messageDestinationType; 95 } 96 97 public void setMessageDestinationType(String messageDestinationType) 98 { 99 this.messageDestinationType = messageDestinationType; 100 } 101 102 public String getMessageDestinationUsage() 103 { 104 return messageDestinationUsage; 105 } 106 107 public void setMessageDestinationUsage(String messageDestinationUsage) 108 { 109 this.messageDestinationUsage = messageDestinationUsage; 110 } 111 112 public String getMessageDestinationLink() 113 { 114 return messageDestinationLink; 115 } 116 117 public void setMessageDestinationLink(String messageDestinationLink) 118 { 119 this.messageDestinationLink = messageDestinationLink; 120 } 121 122 public void merge(MessageDestinationRef ref) 123 { 124 if (ref.getJndiName() != null) 125 { 126 this.setJndiName(ref.getJndiName()); 127 128 setMappedName(ref.getJndiName()); 129 } 130 } 131 132 133 public String toString() 134 { 135 StringBuffer sb = new StringBuffer (100); 136 sb.append("["); 137 sb.append("messageDestinationRefName=").append(messageDestinationRefName); 138 sb.append(", messageDestinationType=").append(messageDestinationType); 139 sb.append(", messageDestinationLink=").append(messageDestinationLink); 140 sb.append(", messageDestinationUsage=").append(messageDestinationUsage); 141 sb.append(", mappedName=").append(mappedName); 142 sb.append("]"); 143 return sb.toString(); 144 } 145 } 146 | Popular Tags |