1 18 19 package sync4j.framework.server; 20 21 import java.io.Serializable ; 22 import org.apache.commons.lang.builder.ToStringBuilder; 23 24 import sync4j.framework.engine.source.SyncSource; 25 import sync4j.framework.engine.source.SyncSourceException; 26 27 36 public class Sync4jSourceType implements Serializable { 37 38 private String sourceTypeId; 39 private String description; 40 private String config; 41 private String adminClass; 42 private SyncSource[] syncSource; 43 private SyncSourceException[] syncSourceFailed; 44 45 46 public Sync4jSourceType() { 47 this(null, null, null,null); 48 } 49 50 public Sync4jSourceType(String sourceTypeId, 51 String description , 52 String config , 53 String adminClass ) { 54 this.sourceTypeId = sourceTypeId; 55 this.description = description; 56 this.config = config; 57 this.adminClass = adminClass; 58 } 59 60 64 public String getSourceTypeId() { 65 return sourceTypeId; 66 } 67 68 72 public void setSourceTypeId(String sourceTypeId) { 73 this.sourceTypeId = sourceTypeId; 74 } 75 76 80 public String getDescription() { 81 return description; 82 } 83 84 88 public void setDescription(String description) { 89 this.description = description; 90 } 91 92 96 public String getConfig() { 97 return config; 98 } 99 100 104 public void setConfig(String config) { 105 this.config = config; 106 } 107 108 112 public String getAdminClass() { 113 return adminClass; 114 } 115 116 120 public void setAdminClass(String adminClass) { 121 this.adminClass = adminClass; 122 } 123 124 127 public void setSyncSources(SyncSource[] syncSource) { 128 this.syncSource = syncSource; 129 } 130 public SyncSource[] getSyncSources() { 131 return this.syncSource; 132 } 133 134 138 public void setSyncSourcesFailed(SyncSourceException[] syncSourceFailed) { 139 this.syncSourceFailed = syncSourceFailed; 140 } 141 public SyncSourceException[] getSyncSourcesFailed() { 142 return this.syncSourceFailed; 143 } 144 145 public String toString() { 146 ToStringBuilder sb = new ToStringBuilder(this); 147 148 sb.append("sourceTypeId", sourceTypeId); 149 sb.append("description" , description); 150 sb.append("config" , config); 151 sb.append("adminClass" , adminClass); 152 153 return sb.toString(); 154 } 155 156 } 157 | Popular Tags |