00001
00027 package org.objectweb.jonas_rar.deployment.xml;
00028
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00030 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
00037 public class OutboundResourceadapter extends AbsElement {
00038
00042 private JLinkedList connectionDefinitionList = null;
00043
00047 private String transactionSupport = null;
00048
00052 private JLinkedList authenticationMechanismList = null;
00053
00057 private String reauthenticationSupport = null;
00058
00059
00063 public OutboundResourceadapter() {
00064 super();
00065 connectionDefinitionList = new JLinkedList("connection-definition");
00066 authenticationMechanismList = new JLinkedList("authentication-mechanism");
00067 }
00068
00073 public JLinkedList getConnectionDefinitionList() {
00074 return connectionDefinitionList;
00075 }
00076
00081 public void setConnectionDefinitionList(JLinkedList connectionDefinitionList) {
00082 this.connectionDefinitionList = connectionDefinitionList;
00083 }
00084
00089 public void addConnectionDefinition(ConnectionDefinition connectionDefinition) {
00090 connectionDefinitionList.add(connectionDefinition);
00091 }
00092
00097 public String getTransactionSupport() {
00098 return transactionSupport;
00099 }
00100
00105 public void setTransactionSupport(String transactionSupport) {
00106 this.transactionSupport = transactionSupport;
00107 }
00108
00113 public JLinkedList getAuthenticationMechanismList() {
00114 return authenticationMechanismList;
00115 }
00116
00121 public void setAuthenticationMechanismList(JLinkedList authenticationMechanismList) {
00122 this.authenticationMechanismList = authenticationMechanismList;
00123 }
00124
00129 public void addAuthenticationMechanism(AuthenticationMechanism authenticationMechanism) {
00130 authenticationMechanismList.add(authenticationMechanism);
00131 }
00132
00137 public String getReauthenticationSupport() {
00138 return reauthenticationSupport;
00139 }
00140
00145 public void setReauthenticationSupport(String reauthenticationSupport) {
00146 this.reauthenticationSupport = reauthenticationSupport;
00147 }
00148
00154 public String toXML(int indent) {
00155 StringBuffer sb = new StringBuffer();
00156 sb.append(indent(indent));
00157 sb.append("<outbound-resourceadapter>\n");
00158
00159 indent += 2;
00160
00161
00162 sb.append(connectionDefinitionList.toXML(indent));
00163
00164 sb.append(xmlElement(transactionSupport, "transaction-support", indent));
00165
00166 sb.append(authenticationMechanismList.toXML(indent));
00167
00168 sb.append(xmlElement(reauthenticationSupport, "reauthentication-support", indent));
00169 indent -= 2;
00170 sb.append(indent(indent));
00171 sb.append("</outbound-resourceadapter>\n");
00172
00173 return sb.toString();
00174 }
00175 }