1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class EjbRef extends AbsElement { 34 35 38 private String description = null; 39 40 43 private String ejbRefName = null; 44 45 48 private String ejbRefType = null; 49 50 53 private String home = null; 54 55 58 private String remote = null; 59 60 63 private String ejbLink = null; 64 65 66 68 72 public void setDescription(String description) { 73 this.description = description; 74 } 75 76 77 81 public void setEjbRefName(String ejbRefName) { 82 this.ejbRefName = ejbRefName; 83 } 84 85 86 90 public void setEjbRefType(String ejbRefType) { 91 this.ejbRefType = ejbRefType; 92 } 93 94 95 99 public void setHome(String home) { 100 this.home = home; 101 } 102 106 public void setRemote(String remote) { 107 this.remote = remote; 108 } 109 110 111 115 public void setEjbLink(String ejbLink) { 116 this.ejbLink = ejbLink; 117 } 118 119 120 122 125 public String getDescription() { 126 return description; 127 } 128 129 130 133 public String getEjbRefName() { 134 return ejbRefName; 135 } 136 137 138 141 public String getEjbRefType() { 142 return ejbRefType; 143 } 144 145 148 public String getHome() { 149 return home; 150 } 151 152 155 public String getRemote() { 156 return remote; 157 } 158 159 162 public String getEjbLink() { 163 return ejbLink; 164 } 165 166 167 168 169 170 175 public String toXML(int indent) { 176 StringBuffer sb = new StringBuffer (); 177 sb.append(indent(indent)); 178 sb.append("<ejb-ref>\n"); 179 180 indent += 2; 181 182 sb.append(xmlElement(description, "description", indent)); 184 185 sb.append(xmlElement(ejbRefName, "ejb-ref-name", indent)); 187 188 sb.append(xmlElement(ejbRefType, "ejb-ref-type", indent)); 190 191 sb.append(xmlElement(home, "home", indent)); 193 194 sb.append(xmlElement(remote, "remote", indent)); 196 197 sb.append(xmlElement(ejbLink, "ejb-link", indent)); 199 200 indent -= 2; 201 sb.append(indent(indent)); 202 sb.append("</ejb-ref>\n"); 203 204 return sb.toString(); 205 } 206 207 208 } 209 | Popular Tags |