1 18 19 package sync4j.framework.server; 20 21 import java.io.Serializable ; 22 23 31 public class Sync4jModule implements Serializable { 32 33 private String moduleId ; 34 private String moduleName ; 35 private String description ; 36 private Sync4jConnector[] connectors ; 37 38 39 public Sync4jModule() { 40 this(null,null,null); 41 } 42 43 public Sync4jModule(String moduleId , 44 String moduleName , 45 String description) { 46 this.moduleId = moduleId; 47 this.moduleName = moduleName; 48 this.description = description; 49 } 50 51 55 public String getModuleId() { 56 return moduleId; 57 } 58 59 63 public void setModuleId(String moduleId) { 64 this.moduleId = moduleId; 65 } 66 67 71 public String getModuleName() { 72 return moduleName; 73 } 74 75 79 public void setModuleName(String moduleName) { 80 this.moduleName = moduleName; 81 } 82 83 87 public String getDescription() { 88 return description; 89 } 90 91 95 public void setDescription(String description) { 96 this.description = description; 97 } 98 99 public void setConnectors(Sync4jConnector[] connectors) { 100 this.connectors = connectors; 101 } 102 103 public Sync4jConnector[] getConnectors() { 104 return connectors; 105 } 106 107 public String toString() { 108 StringBuffer sb = new StringBuffer (); 109 sb.append("ModuleId: ").append(moduleId).append(", ") 110 .append("ModuleName: ").append(moduleName).append(", ") 111 .append("Description: ").append(description); 112 return sb.toString(); 113 } 114 115 } 116 | Popular Tags |