1 18 19 package sync4j.server.engine; 20 21 import org.apache.commons.lang.builder.ToStringBuilder; 22 23 31 public class Sync4jSource { 32 33 private String uri; private String config; private String sourceTypeId; private String sourceName; 38 39 public Sync4jSource() { 40 this(null, null, null, null); 41 } 42 43 public Sync4jSource(String uri, String config) { 44 this.uri = uri ; 45 this.config = config; 46 } 47 48 public Sync4jSource(String uri, String config, String sourceTypeId, String sourceName) { 49 this.uri = uri ; 50 this.config = config; 51 this.sourceTypeId = sourceTypeId; 52 this.sourceName = sourceName; 53 } 54 55 59 public String getUri() { 60 return uri; 61 } 62 63 67 public void setUri(String uri) { 68 this.uri = uri; 69 } 70 71 75 public String getConfig() { 76 return config; 77 } 78 79 83 public void setConfig(String config) { 84 this.config = config; 85 } 86 87 91 public String getSourceTypeId() { 92 return sourceTypeId; 93 } 94 95 99 public void setSourceTypeId(String sourceTypeId) { 100 this.sourceTypeId = sourceTypeId; 101 } 102 103 107 public String getSourceName() { 108 return sourceName; 109 } 110 111 115 public void setSourceName(String sourceName) { 116 this.sourceName = sourceName; 117 } 118 119 public String toString() { 120 ToStringBuilder sb = new ToStringBuilder(this); 121 122 sb.append("uri", uri ); 123 sb.append("config", config); 124 sb.append("sourceTypeId", sourceTypeId); 125 sb.append("sourceName", sourceName); 126 127 return sb.toString(); 128 } 129 130 } | Popular Tags |