1 18 19 20 package sync4j.framework.core; 21 22 30 public final class Target 31 implements java.io.Serializable { 32 33 35 private String locURI; 36 private String locName; 37 38 40 43 protected Target() {} 44 45 52 public Target( final String locURI, final String locName) { 53 setLocURI(locURI); 54 this.locName = locName; 55 } 56 57 63 public Target(final String locURI) { 64 this(locURI, null); 65 } 66 67 69 72 public String getLocURI() { 73 return locURI; 74 } 75 76 80 public void setLocURI(String locURI) { 81 if (locURI == null) { 82 throw new IllegalArgumentException ("locURI cannot be null"); 83 } 84 this.locURI = locURI; 85 } 86 87 91 public String getLocName() { 92 return locName; 93 } 94 95 99 public void setLocName(String locName) { 100 this.locName = locName; 101 } 102 } | Popular Tags |