From: jprocter Date: Mon, 23 Jan 2006 10:52:24 +0000 (+0000) Subject: added asFile method to get urn path as a file object. X-Git-Tag: Release_0.2~359 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=163f4843253832d194f4dd67156509edfc8d59ea;p=vamsas.git added asFile method to get urn path as a file object. 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 --- diff --git a/src/org/vamsas/client/SessionUrn.java b/src/org/vamsas/client/SessionUrn.java index ee9e980..52417f9 100644 --- a/src/org/vamsas/client/SessionUrn.java +++ b/src/org/vamsas/client/SessionUrn.java @@ -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 }