1 18 19 20 package sync4j.framework.core; 21 22 30 public final class Source 31 implements java.io.Serializable { 32 34 37 private String locURI; 38 39 42 private String locName; 43 44 46 49 protected Source() {} 50 51 59 public Source(final String locURI, final String locName) { 60 setLocURI(locURI); 61 this.locName = locName; 62 } 63 64 71 public Source(final String locURI) { 72 this(locURI, null); 73 } 74 75 77 82 public String getLocURI() { 83 return locURI; 84 } 85 86 93 public void setLocURI(final String locURI) { 94 if (locURI == null) { 95 throw new IllegalArgumentException ("locURI cannot be null"); 96 } 97 this.locURI = locURI; 98 } 99 100 106 public String getLocName() { 107 return locName; 108 } 109 110 116 public void setLocName(String locName) { 117 this.locName = locName; 118 } 119 } | Popular Tags |