SecurityRole.java

00001 
00027 package org.objectweb.jonas_ear.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00036 public class SecurityRole extends AbsElement  {
00037 
00041     private String description = null;
00042 
00046     private String roleName = null;
00047 
00048 
00052     public SecurityRole() {
00053         super();
00054     }
00055 
00060     public String getDescription() {
00061         return description;
00062     }
00063 
00068     public void setDescription(String description) {
00069         this.description = description;
00070     }
00071 
00076     public String getRoleName() {
00077         return roleName;
00078     }
00079 
00084     public void setRoleName(String roleName) {
00085         this.roleName = roleName;
00086     }
00087 
00093     public String toXML(int indent) {
00094         StringBuffer sb = new StringBuffer();
00095         sb.append(indent(indent));
00096         sb.append("<security-role>\n");
00097 
00098         indent += 2;
00099 
00100         // description
00101         sb.append(xmlElement(description, "description", indent));
00102         // role-name
00103         sb.append(xmlElement(roleName, "role-name", indent));
00104         indent -= 2;
00105         sb.append(indent(indent));
00106         sb.append("</security-role>\n");
00107 
00108         return sb.toString();
00109     }
00110 }

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