2 * Created on 12-Sep-2005
5 package uk.ac.vamsas.client;
7 import java.io.Serializable;
10 * Uniquely locates a particular VAMSAS session.
14 public class SessionHandle implements Serializable {
19 public SessionHandle(String _sessionUrn) {
21 this.sessionUrn = _sessionUrn;
24 * @return Returns the sessionUrn.
26 public String getSessionUrn() {
27 return this.sessionUrn;
30 * @param sessionUrn The sessionUrn to set.
32 public void setSessionUrn(String _sessionUrn) {
33 this.sessionUrn = _sessionUrn;
36 * The path to the vamsas session file.
38 String sessionUrn = null;
41 * @see java.lang.Object#equals(java.lang.Object)
43 public boolean equals(Object obj) {
45 if (obj instanceof SessionHandle)
46 return this.equals((SessionHandle) obj);
51 public boolean equals(SessionHandle that) {
52 return (this.sessionUrn.equals(that.getSessionUrn()));