1 26 package org.objectweb.jonas_ear.deployment.xml; 27 28 import org.objectweb.jonas_lib.deployment.xml.AbsDescriptionElement; 29 import org.objectweb.jonas_lib.deployment.xml.DescriptionGroupXml; 30 import org.objectweb.jonas_lib.deployment.xml.TopLevelElement; 31 32 36 public class JonasApplication extends AbsDescriptionElement implements TopLevelElement, DescriptionGroupXml { 37 38 41 private String header = null; 42 43 46 private JonasSecurity jonasSecurity = null; 47 48 51 public JonasApplication() { 52 super(); 53 } 54 55 60 public String toXML(int indent) { 61 StringBuffer sb = new StringBuffer (); 62 sb.append(indent(indent)); 63 if (header != null) { 64 sb.append(header); 65 } else { 66 sb.append("<jonas-application>\n"); 67 } 68 indent += 2; 69 70 if (jonasSecurity != null) { 72 sb.append(jonasSecurity.toXML(indent)); 73 } 74 75 indent -= 2; 76 sb.append(indent(indent)); 77 sb.append("</jonas-application>\n"); 78 79 return sb.toString(); 80 } 81 82 85 public JonasSecurity getJonasSecurity() { 86 return jonasSecurity; 87 } 88 89 92 public void setJonasSecurity(JonasSecurity jonasSecurity) { 93 this.jonasSecurity = jonasSecurity; 94 } 95 96 99 public String getHeader() { 100 return header; 101 } 102 103 106 public void setHeader(String header) { 107 this.header = header; 108 } 109 } | Popular Tags |