1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class CmrField extends AbsElement { 37 38 41 private String description = null; 42 43 46 private String cmrFieldName = null; 47 48 51 private String cmrFieldType = null; 52 53 54 57 public CmrField() { 58 super(); 59 } 60 61 65 public String getDescription() { 66 return description; 67 } 68 69 73 public void setDescription(String description) { 74 this.description = description; 75 } 76 77 81 public String getCmrFieldName() { 82 return cmrFieldName; 83 } 84 85 89 public void setCmrFieldName(String cmrFieldName) { 90 this.cmrFieldName = cmrFieldName; 91 } 92 93 97 public String getCmrFieldType() { 98 return cmrFieldType; 99 } 100 101 105 public void setCmrFieldType(String cmrFieldType) { 106 this.cmrFieldType = cmrFieldType; 107 } 108 109 114 public String toXML(int indent) { 115 StringBuffer sb = new StringBuffer (); 116 sb.append(indent(indent)); 117 sb.append("<cmr-field>\n"); 118 119 indent += 2; 120 121 sb.append(xmlElement(description, "description", indent)); 123 sb.append(xmlElement(cmrFieldName, "cmr-field-name", indent)); 125 sb.append(xmlElement(cmrFieldType, "cmr-field-type", indent)); 127 indent -= 2; 128 sb.append(indent(indent)); 129 sb.append("</cmr-field>\n"); 130 131 return sb.toString(); 132 } 133 } 134 | Popular Tags |