1 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 34 35 public class SecurityRole extends AbsElement { 36 37 40 private String description = null; 41 42 45 private String roleName = null; 46 47 48 51 public SecurityRole() { 52 super(); 53 } 54 55 59 public String getDescription() { 60 return description; 61 } 62 63 67 public void setDescription(String description) { 68 this.description = description; 69 } 70 71 75 public String getRoleName() { 76 return roleName; 77 } 78 79 83 public void setRoleName(String roleName) { 84 this.roleName = roleName; 85 } 86 87 92 public String toXML(int indent) { 93 StringBuffer sb = new StringBuffer (); 94 sb.append(indent(indent)); 95 sb.append("<security-role>\n"); 96 97 indent += 2; 98 99 sb.append(xmlElement(description, "description", indent)); 101 sb.append(xmlElement(roleName, "role-name", indent)); 103 indent -= 2; 104 sb.append(indent(indent)); 105 sb.append("</security-role>\n"); 106 107 return sb.toString(); 108 } 109 } 110 | Popular Tags |