applied LGPLv3 and source code formatting.
[vamsas.git] / src / uk / ac / vamsas / client / simpleclient / SimpleDocument.java
index b569afb..f4b7a15 100644 (file)
@@ -1,29 +1,52 @@
-package uk.ac.vamsas.client.simpleclient;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import uk.ac.vamsas.client.VorbaIdFactory;
-
-/**
- * @see SimpleDocBinding
- * Additional constructors for 'headless' Vamsas Document access
- * @author jimp
- */
-public class SimpleDocument extends SimpleDocBinding {
-  private static Log log = LogFactory.getLog(SimpleDocument.class);
-  
-  private VorbaIdFactory makeDefaultFactory(String name) {
-    return IdFactory.getDummyFactory(name);
-  }
-
-  public SimpleDocument(String name) {
-    vorba = makeDefaultFactory(name);
-  }
-  public SimpleDocument(VorbaIdFactory Vorba) {
-    if (Vorba!=null)
-      vorba = Vorba;
-    else
-      log.error("Invalid SimpleDocument construction - no VorbaIdFactory defined!");
-  }
-}
+/*\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 org.apache.commons.logging.Log;\r
+import org.apache.commons.logging.LogFactory;\r
+\r
+import uk.ac.vamsas.client.VorbaIdFactory;\r
+\r
+/**\r
+ * @see SimpleDocBinding Additional constructors for 'headless' Vamsas Document\r
+ *      access\r
+ * @author jimp\r
+ */\r
+public class SimpleDocument extends SimpleDocBinding {\r
+  private static Log log = LogFactory.getLog(SimpleDocument.class);\r
+\r
+  private VorbaIdFactory makeDefaultFactory(String name) {\r
+    return IdFactory.getDummyFactory(name);\r
+  }\r
+\r
+  public SimpleDocument(String name) {\r
+    vorba = makeDefaultFactory(name);\r
+  }\r
+\r
+  public SimpleDocument(VorbaIdFactory Vorba) {\r
+    if (Vorba != null)\r
+      vorba = Vorba;\r
+    else\r
+      log\r
+          .error("Invalid SimpleDocument construction - no VorbaIdFactory defined!");\r
+  }\r
+}\r