applied LGPLv3 and source code formatting.
[vamsas.git] / src / uk / ac / vamsas / client / simpleclient / ArchiveUrn.java
index e6184eb..84f8238 100644 (file)
@@ -1,34 +1,57 @@
-package uk.ac.vamsas.client.simpleclient;
-
-import java.io.File;
-import java.net.MalformedURLException;
-
-/**
- * Vamsas Document URN for files understood by ArchiveReader and 
- * written by VamsasArchive.
- * vdoc://{Absolute path to file}
- * @author jimp
- *
- */
-public class ArchiveUrn extends uk.ac.vamsas.client.SessionUrn {
-  /**
-   * a simple vamsas document urn prefix
-   */
-  public static String VAMSASDOCUMENT="vdoc";
-  static {
-    TYPES.put(ArchiveUrn.VAMSASDOCUMENT, ArchiveUrn.class);
-  }
-
-  public ArchiveUrn(File docLocation) throws MalformedURLException {
-    super(VAMSASDOCUMENT, docLocation.getAbsoluteFile().toURL());
-  }
-
-  /**
-   * 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
-}
+/*\r
+ * This file is part of the Vamsas Client version 0.1. \r
+ * Copyright 2009 by Jim Procter, Iain Milne, Pierre Marguerite, \r
+ *  Andrew Waterhouse and Dominik Lindner.\r
+ * \r
+ * Earlier versions have also been incorporated into Jalview version 2.4 \r
+ * since 2008, and TOPALi version 2 since 2007.\r
+ * \r
+ * The Vamsas Client is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU Lesser General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *  \r
+ * The Vamsas Client is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU Lesser General Public License for more details.\r
+ * \r
+ * You should have received a copy of the GNU Lesser General Public License\r
+ * along with the Vamsas Client.  If not, see <http://www.gnu.org/licenses/>.\r
+ */\r
+package uk.ac.vamsas.client.simpleclient;\r
+\r
+import java.io.File;\r
+import java.net.MalformedURLException;\r
+\r
+/**\r
+ * Vamsas Document URN for files understood by ArchiveReader and written by\r
+ * VamsasArchive. vdoc://{Absolute path to file}\r
+ * \r
+ * @author jimp\r
+ * \r
+ */\r
+public class ArchiveUrn extends uk.ac.vamsas.client.SessionUrn {\r
+  /**\r
+   * a simple vamsas document urn prefix\r
+   */\r
+  public static String VAMSASDOCUMENT = "vdoc";\r
+  static {\r
+    TYPES.put(ArchiveUrn.VAMSASDOCUMENT, ArchiveUrn.class);\r
+  }\r
+\r
+  public ArchiveUrn(File docLocation) throws MalformedURLException {\r
+    super(VAMSASDOCUMENT, docLocation.getAbsoluteFile().toURL());\r
+  }\r
+\r
+  /**\r
+   * TODO: LATER: think about this again.\r
+   * \r
+   * @return File(urn.getPath())\r
+   */\r
+  public File asFile() {\r
+    return new File(urn.getPath());\r
+  }\r
+  // TODO: add abstract 'handler' methods for resolving the URN to a particular\r
+  // class\r
+}\r