00001
00027 package org.objectweb.jonas_ejb.deployment.xml;
00028
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00036 public class RelationshipRoleSource extends AbsElement {
00037
00041 private String description = null;
00042
00046 private String ejbName = null;
00047
00048
00052 public RelationshipRoleSource() {
00053 super();
00054 }
00055
00060 public String getDescription() {
00061 return description;
00062 }
00063
00068 public void setDescription(String description) {
00069 this.description = description;
00070 }
00071
00076 public String getEjbName() {
00077 return ejbName;
00078 }
00079
00084 public void setEjbName(String ejbName) {
00085 this.ejbName = ejbName;
00086 }
00087
00093 public String toXML(int indent) {
00094 StringBuffer sb = new StringBuffer();
00095 sb.append(indent(indent));
00096 sb.append("<relationship-role-source>\n");
00097
00098 indent += 2;
00099
00100
00101 sb.append(xmlElement(description, "description", indent));
00102
00103 sb.append(xmlElement(ejbName, "ejb-name", indent));
00104 indent -= 2;
00105 sb.append(indent(indent));
00106 sb.append("</relationship-role-source>\n");
00107
00108 return sb.toString();
00109 }
00110 }