- public Date getLeaseDate() {
- return leaseDate ;
- }
-
- public void setLabels(String[] ls) {
- labels = ls ;
- }
-
- public String[] getLabels() {
- return labels;
- }
-
- public void setHelperurl(String url) {
- helperurl = url;
- }
-
- public String getHelperurl() {
- return helperurl;
- }
-
- public void setAlertAdmin(boolean flag) {
- alertAdmin = flag;
+ return false;
+ }
+
+ public int hashCode()
+ {
+ int h = 7;
+
+ h = 31 * h + (null == nickname ? 0 : nickname.hashCode());
+ h = 31 * h + (null == url ? 0 : url.hashCode());
+
+ return h;
+ }
+
+ /**
+ * the DAS2 string representation of this DAS source
+ *
+ * public String toString() {
+ *
+ * StringWriter writer = new StringWriter();
+ *
+ * PrintWriter pw = new PrintWriter(writer); PrettyXMLWriter xw = new
+ * PrettyXMLWriter(pw);
+ *
+ * DasSourceWriter dswriter = new DasSourceWriterImpl(); try {
+ * dswriter.writeDasSource(xw,this); } catch (IOException e){
+ * e.printStackTrace(); }
+ *
+ * return writer.toString();
+ * }
+ */
+ public void setLocal(boolean flag)
+ {
+ local = flag;
+ }
+
+ public boolean isLocal()
+ {
+ return local;
+ }
+
+ public void setId(String i)
+ {
+ id = i;
+ }
+
+ /**
+ * get a the Id of the DasSource. The Id is a unique db identifier. The public
+ * DAS-Registry has Auto_Ids that look like DASSOURCE:12345; public look like
+ * XYZ:12345, where the XYZ prefix can be configured in the config file.
+ */
+ public String getId()
+ {
+ return id;
+ }
+
+ public void setNickname(String name)
+ {
+ nickname = name;
+ }
+
+ public String getNickname()
+ {
+ return nickname;
+ }
+
+ public void setUrl(String u)
+ {
+ char lastChar = u.charAt(u.length() - 1);
+ if (lastChar != '/')
+ {
+ u += "/";