RunAs.java

00001 
00027 package org.objectweb.jonas_lib.deployment.xml;
00028 
00035 public class RunAs extends AbsElement  {
00036 
00040     private String description = null;
00041 
00045     private String roleName = null;
00046 
00047 
00051     public RunAs() {
00052         super();
00053     }
00054 
00059     public String getDescription() {
00060         return description;
00061     }
00062 
00067     public void setDescription(String description) {
00068         this.description = description;
00069     }
00070 
00075     public String getRoleName() {
00076         return roleName;
00077     }
00078 
00083     public void setRoleName(String roleName) {
00084         this.roleName = roleName;
00085     }
00086 
00092     public String toXML(int indent) {
00093         StringBuffer sb = new StringBuffer();
00094         sb.append(indent(indent));
00095         sb.append("<run-as>\n");
00096 
00097         indent += 2;
00098 
00099         // description
00100         sb.append(xmlElement(description, "description", indent));
00101         // role-name
00102         sb.append(xmlElement(roleName, "role-name", indent));
00103         indent -= 2;
00104         sb.append(indent(indent));
00105         sb.append("</run-as>\n");
00106 
00107         return sb.toString();
00108     }
00109 }

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