1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 import org.objectweb.jonas_lib.deployment.xml.JLinkedList; 31 36 37 public class JonasSecurityMapping extends AbsElement { 38 39 42 private JLinkedList securityEntryList = null; 43 44 47 public JonasSecurityMapping() { 48 super(); 49 securityEntryList = new JLinkedList("security-entry"); 50 } 51 52 56 public JLinkedList getSecurityEntryList() { 57 return securityEntryList; 58 } 59 60 64 public void setSecurityEntryList(JLinkedList securityEntryList) { 65 this.securityEntryList = securityEntryList; 66 } 67 68 72 public void addSecurityEntry(SecurityEntry securityEntry) { 73 securityEntryList.add(securityEntry); 74 } 75 76 81 public String toXML(int indent) { 82 StringBuffer sb = new StringBuffer (); 83 sb.append(indent(indent)); 84 sb.append("<jonas-security-mapping>\n"); 85 86 indent += 2; 87 88 sb.append(securityEntryList.toXML(indent)); 90 indent -= 2; 91 sb.append(indent(indent)); 92 sb.append("</jonas-security-mapping>\n"); 93 94 return sb.toString(); 95 } 96 } 97 | Popular Tags |