ResourceRef.java

00001 
00027 package org.objectweb.jonas_lib.deployment.xml;
00028 
00033 public class ResourceRef extends AbsElement {
00034 
00038     private String description = null;
00039 
00043     private String resRefName = null;
00044 
00048     private String resType = null;
00049 
00053     private String resAuth = null;
00054 
00058     private String resSharingScope = null;
00059 
00060 
00061 
00062     // Setters
00063 
00068     public void setDescription(String description) {
00069         this.description = description;
00070     }
00071 
00072 
00077     public void setResRefName(String resRefName) {
00078         this.resRefName = resRefName;
00079     }
00080 
00081 
00086     public void setResType(String resType) {
00087         this.resType = resType;
00088     }
00089 
00090 
00095     public void setResAuth(String resAuth) {
00096         this.resAuth = resAuth;
00097     }
00098 
00099 
00104     public void setResSharingScope(String resSharingScope) {
00105         this.resSharingScope = resSharingScope;
00106     }
00107 
00108 
00109 
00110     // Getters
00111 
00115     public String getDescription() {
00116         return description;
00117     }
00118 
00119 
00123     public String getResRefName() {
00124         return resRefName;
00125     }
00126 
00127 
00131     public String getResType() {
00132         return resType;
00133     }
00134 
00135 
00139     public String getResAuth() {
00140         return resAuth;
00141     }
00142 
00143 
00147     public String getResSharingScope() {
00148         return resSharingScope;
00149     }
00150 
00151 
00157     public String toXML(int indent) {
00158         StringBuffer sb = new StringBuffer();
00159         sb.append(indent(indent));
00160         sb.append("<resource-ref>\n");
00161 
00162         indent += 2;
00163 
00164         // Description
00165         sb.append(xmlElement(description, "description", indent));
00166 
00167         // name
00168         sb.append(xmlElement(resRefName, "res-ref-name", indent));
00169 
00170         // type
00171         sb.append(xmlElement(resType, "res-type", indent));
00172 
00173         // auth
00174         sb.append(xmlElement(resAuth, "res-auth", indent));
00175 
00176         // sharing-scope
00177         sb.append(xmlElement(resSharingScope, "res-sharing-scope", indent));
00178 
00179         indent -= 2;
00180         sb.append(indent(indent));
00181         sb.append("</resource-ref>\n");
00182 
00183         return sb.toString();
00184     }
00185 
00186 
00187 
00188 }

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