1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class ResourceRef extends AbsElement { 34 35 38 private String description = null; 39 40 43 private String resRefName = null; 44 45 48 private String resType = null; 49 50 53 private String resAuth = null; 54 55 58 private String resSharingScope = null; 59 60 61 62 64 68 public void setDescription(String description) { 69 this.description = description; 70 } 71 72 73 77 public void setResRefName(String resRefName) { 78 this.resRefName = resRefName; 79 } 80 81 82 86 public void setResType(String resType) { 87 this.resType = resType; 88 } 89 90 91 95 public void setResAuth(String resAuth) { 96 this.resAuth = resAuth; 97 } 98 99 100 104 public void setResSharingScope(String resSharingScope) { 105 this.resSharingScope = resSharingScope; 106 } 107 108 109 110 112 115 public String getDescription() { 116 return description; 117 } 118 119 120 123 public String getResRefName() { 124 return resRefName; 125 } 126 127 128 131 public String getResType() { 132 return resType; 133 } 134 135 136 139 public String getResAuth() { 140 return resAuth; 141 } 142 143 144 147 public String getResSharingScope() { 148 return resSharingScope; 149 } 150 151 152 157 public String toXML(int indent) { 158 StringBuffer sb = new StringBuffer (); 159 sb.append(indent(indent)); 160 sb.append("<resource-ref>\n"); 161 162 indent += 2; 163 164 sb.append(xmlElement(description, "description", indent)); 166 167 sb.append(xmlElement(resRefName, "res-ref-name", indent)); 169 170 sb.append(xmlElement(resType, "res-type", indent)); 172 173 sb.append(xmlElement(resAuth, "res-auth", indent)); 175 176 sb.append(xmlElement(resSharingScope, "res-sharing-scope", indent)); 178 179 indent -= 2; 180 sb.append(indent(indent)); 181 sb.append("</resource-ref>\n"); 182 183 return sb.toString(); 184 } 185 186 187 188 } 189 | Popular Tags |