EjbLocalRef.java

00001 
00027 package org.objectweb.jonas_lib.deployment.xml;
00028 
00033 public class EjbLocalRef extends AbsElement {
00034 
00038     private String description = null;
00039 
00043     private String ejbRefName = null;
00044 
00048     private String ejbRefType = null;
00049 
00053     private String localHome = null;
00054 
00058     private String local = null;
00059 
00063     private String ejbLink = null;
00064 
00065 
00066     // Setters
00067 
00072     public void setDescription(String description) {
00073         this.description = description;
00074     }
00075 
00076 
00081     public void setEjbRefName(String ejbRefName) {
00082         this.ejbRefName = ejbRefName;
00083     }
00084 
00085 
00090     public void setEjbRefType(String ejbRefType) {
00091         this.ejbRefType = ejbRefType;
00092     }
00093 
00094 
00099     public void setLocalHome(String localHome) {
00100         this.localHome = localHome;
00101     }
00106     public void setLocal(String local) {
00107         this.local = local;
00108     }
00109 
00110 
00115     public void setEjbLink(String ejbLink) {
00116         this.ejbLink = ejbLink;
00117     }
00118 
00119 
00120     // Getters
00121 
00125     public String getDescription() {
00126         return description;
00127     }
00128 
00129 
00133     public String getEjbRefName() {
00134         return ejbRefName;
00135     }
00136 
00137 
00141     public String getEjbRefType() {
00142         return ejbRefType;
00143     }
00144 
00148     public String getLocalHome() {
00149         return localHome;
00150     }
00151 
00155     public String getLocal() {
00156         return local;
00157     }
00158 
00162     public String getEjbLink() {
00163         return ejbLink;
00164     }
00165 
00166 
00167 
00168 
00169 
00175     public String toXML(int indent) {
00176         StringBuffer sb = new StringBuffer();
00177         sb.append(indent(indent));
00178         sb.append("<ejb-local-ref>\n");
00179 
00180         indent += 2;
00181 
00182         // Description
00183         sb.append(xmlElement(description, "description", indent));
00184 
00185         // name
00186         sb.append(xmlElement(ejbRefName, "ejb-ref-name", indent));
00187 
00188         // type
00189         sb.append(xmlElement(ejbRefType, "ejb-ref-type", indent));
00190 
00191         // local home interface
00192         sb.append(xmlElement(localHome, "local-home", indent));
00193 
00194         // local interface
00195         sb.append(xmlElement(local, "local", indent));
00196 
00197         // ejb-link
00198         sb.append(xmlElement(ejbLink, "ejb-link", indent));
00199 
00200         indent -= 2;
00201         sb.append(indent(indent));
00202         sb.append("</ejb-local-ref>\n");
00203 
00204         return sb.toString();
00205     }
00206 
00207 
00208 }

Generated on Tue Feb 15 15:05:51 2005 for JOnAS by  doxygen 1.3.9.1