00001
00027 package org.objectweb.jonas_lib.deployment.xml;
00028
00035 public class SecurityRoleRef extends AbsElement {
00036
00040 private String description = null;
00041
00045 private String roleName = null;
00046
00050 private String roleLink = null;
00051
00052
00056 public SecurityRoleRef() {
00057 super();
00058 }
00059
00064 public String getDescription() {
00065 return description;
00066 }
00067
00072 public void setDescription(String description) {
00073 this.description = description;
00074 }
00075
00080 public String getRoleName() {
00081 return roleName;
00082 }
00083
00088 public void setRoleName(String roleName) {
00089 this.roleName = roleName;
00090 }
00091
00096 public String getRoleLink() {
00097 return roleLink;
00098 }
00099
00104 public void setRoleLink(String roleLink) {
00105 this.roleLink = roleLink;
00106 }
00107
00113 public String toXML(int indent) {
00114 StringBuffer sb = new StringBuffer();
00115 sb.append(indent(indent));
00116 sb.append("<security-role-ref>\n");
00117
00118 indent += 2;
00119
00120
00121 sb.append(xmlElement(description, "description", indent));
00122
00123 sb.append(xmlElement(roleName, "role-name", indent));
00124
00125 sb.append(xmlElement(roleLink, "role-link", indent));
00126 indent -= 2;
00127 sb.append(indent(indent));
00128 sb.append("</security-role-ref>\n");
00129
00130 return sb.toString();
00131 }
00132 }