00001
00026 package org.objectweb.jonas_ear.deployment.xml;
00027
00028 import org.objectweb.jonas_lib.deployment.xml.AbsDescriptionElement;
00029 import org.objectweb.jonas_lib.deployment.xml.DescriptionGroupXml;
00030 import org.objectweb.jonas_lib.deployment.xml.TopLevelElement;
00031
00036 public class JonasApplication extends AbsDescriptionElement implements TopLevelElement, DescriptionGroupXml {
00037
00041 private String header = null;
00042
00046 private JonasSecurity jonasSecurity = null;
00047
00051 public JonasApplication() {
00052 super();
00053 }
00054
00060 public String toXML(int indent) {
00061 StringBuffer sb = new StringBuffer();
00062 sb.append(indent(indent));
00063 if (header != null) {
00064 sb.append(header);
00065 } else {
00066 sb.append("<jonas-application>\n");
00067 }
00068 indent += 2;
00069
00070
00071 if (jonasSecurity != null) {
00072 sb.append(jonasSecurity.toXML(indent));
00073 }
00074
00075 indent -= 2;
00076 sb.append(indent(indent));
00077 sb.append("</jonas-application>\n");
00078
00079 return sb.toString();
00080 }
00081
00085 public JonasSecurity getJonasSecurity() {
00086 return jonasSecurity;
00087 }
00088
00092 public void setJonasSecurity(JonasSecurity jonasSecurity) {
00093 this.jonasSecurity = jonasSecurity;
00094 }
00095
00099 public String getHeader() {
00100 return header;
00101 }
00102
00106 public void setHeader(String header) {
00107 this.header = header;
00108 }
00109 }