added asFile method to get urn path as a file object.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 23 Jan 2006 10:52:24 +0000 (10:52 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 23 Jan 2006 10:52:24 +0000 (10:52 +0000)
Need to fix this to deal with local/non local urns.

git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@161 be28352e-c001-0410-b1a7-c7978e42abec

src/org/vamsas/client/SessionUrn.java

index ee9e980..52417f9 100644 (file)
@@ -33,6 +33,12 @@ public abstract class SessionUrn {
   public String getSessionUrn() {
     return urn.toString();
   }
-  
+  /**
+   * TODO: LATER: think about this again.
+   * @return File(urn.getPath())
+   */
+  public File asFile() {
+    return new File(urn.getPath());
+  }
   // TODO: add abstract 'handler' methods for resolving the URN to a particular class
 }