1 14 15 package org.quickserver.util.xmlreader; 16 17 23 public class QSAdminPluginConfig implements java.io.Serializable { 24 private String name=""; 25 private String desc=""; 26 private String type=""; 27 private String mainClass=""; 28 private String active="no"; 29 30 33 public String getDesc() { 34 return desc; 35 } 36 37 40 public void setDesc(String desc) { 41 if(desc!=null) 42 this.desc = desc; 43 } 44 45 48 public void setActive(String active) { 49 if(active!=null) 50 this.active = active; 51 } 52 53 56 public String getActive() { 57 return active; 58 } 59 60 63 public String getMainClass() { 64 return mainClass; 65 } 66 67 70 public void setMainClass(String mainClass) { 71 if(mainClass!=null) 72 this.mainClass = mainClass; 73 } 74 75 78 public String getName() { 79 return name; 80 } 81 82 85 public void setName(String name) { 86 if(name!=null) 87 this.name = name; 88 } 89 90 94 public String getType() { 95 return type; 96 } 97 98 101 public void setType(String type) { 102 if(type!=null) 103 this.type = type; 104 } 105 106 110 public String toXML(String pad) { 111 if(pad==null) pad=""; 112 StringBuffer sb = new StringBuffer (); 113 sb.append(pad+"<qsadmin-plugin>\n"); 114 sb.append(pad+"\t<name>"+getName()+"</name>\n"); 115 sb.append(pad+"\t<desc>"+getDesc()+"</desc>\n"); 116 sb.append(pad+"\t<type>"+getType()+"</type>\n"); 117 sb.append(pad+"\t<main-class>"+getMainClass()+"</main-class>\n"); 118 sb.append(pad+"\t<active>"+getActive()+"</active>\n"); 119 sb.append(pad+"</qsadmin-plugin>\n"); 120 return sb.toString(); 121 } 122 } 123 | Popular Tags |