1 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 34 35 public class SecurityRoleRef extends AbsElement { 36 37 40 private String description = null; 41 42 45 private String roleName = null; 46 47 50 private String roleLink = null; 51 52 53 56 public SecurityRoleRef() { 57 super(); 58 } 59 60 64 public String getDescription() { 65 return description; 66 } 67 68 72 public void setDescription(String description) { 73 this.description = description; 74 } 75 76 80 public String getRoleName() { 81 return roleName; 82 } 83 84 88 public void setRoleName(String roleName) { 89 this.roleName = roleName; 90 } 91 92 96 public String getRoleLink() { 97 return roleLink; 98 } 99 100 104 public void setRoleLink(String roleLink) { 105 this.roleLink = roleLink; 106 } 107 108 113 public String toXML(int indent) { 114 StringBuffer sb = new StringBuffer (); 115 sb.append(indent(indent)); 116 sb.append("<security-role-ref>\n"); 117 118 indent += 2; 119 120 sb.append(xmlElement(description, "description", indent)); 122 sb.append(xmlElement(roleName, "role-name", indent)); 124 sb.append(xmlElement(roleLink, "role-link", indent)); 126 indent -= 2; 127 sb.append(indent(indent)); 128 sb.append("</security-role-ref>\n"); 129 130 return sb.toString(); 131 } 132 } 133 | Popular Tags |