From 163f4843253832d194f4dd67156509edfc8d59ea Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 23 Jan 2006 10:52:24 +0000 Subject: [PATCH] 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 --- src/org/vamsas/client/SessionUrn.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 } -- 1.7.10.2