Formatting
[jalview.git] / src / jalview / io / ModellerDescription.java
index 13431c1..fa6ef6d 100755 (executable)
@@ -1,6 +1,6 @@
 /*\r
  * Jalview - A Sequence Alignment Editor and Viewer\r
- * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
  *\r
  * This program is free software; you can redistribute it and/or\r
  * modify it under the terms of the GNU General Public License\r
  */\r
 package jalview.io;\r
 \r
-import jalview.datamodel.SequenceI;\r
-import java.util.Vector;\r
+import jalview.datamodel.*;\r
+\r
 public class ModellerDescription\r
 {\r
-    /**\r
-     * Translates between a String containing a set of colon-separated values\r
-     * on a single line, and sequence start/end and other properties.\r
-     * See PIRFile IO for its use.\r
-     */\r
-    final String[] seqTypes =\r
+  /**\r
+   * Translates between a String containing a set of colon-separated values\r
+   * on a single line, and sequence start/end and other properties.\r
+   * See PIRFile IO for its use.\r
+   */\r
+  final String[] seqTypes =\r
       {\r
       "sequence", "structure", "structureX", "structureN"};\r
   final String[] Fields =\r
@@ -87,7 +87,8 @@ public class ModellerDescription
   private resCode validResidueCode(String field)\r
   {\r
     Integer val = null;\r
-    com.stevesoft.pat.Regex r = new com.stevesoft.pat.Regex("\\s*((([-0-9]+).?)|FIRST|LAST|@)");\r
+    com.stevesoft.pat.Regex r = new com.stevesoft.pat.Regex(\r
+        "\\s*((([-0-9]+).?)|FIRST|LAST|@)");\r
 \r
     if (!r.search(field))\r
     {\r
@@ -98,8 +99,8 @@ public class ModellerDescription
     {\r
       value = r.stringMatched(1);\r
     }\r
-   // jalview.bin.Cache.log.debug("from '" + field + "' matched '" + value +\r
-   //                             "'");\r
+    // jalview.bin.Cache.log.debug("from '" + field + "' matched '" + value +\r
+    //                             "'");\r
     try\r
     {\r
       val = Integer.valueOf(value);\r
@@ -124,7 +125,7 @@ public class ModellerDescription
       field = st.nextToken(":");\r
       do\r
       {\r
-        if (seqTypes[i].equalsIgnoreCase(field) )\r
+        if (seqTypes[i].equalsIgnoreCase(field))\r
         {\r
           break;\r
         }\r
@@ -150,8 +151,8 @@ public class ModellerDescription
               }\r
               else\r
               {\r
-          //      jalview.bin.Cache.log.debug(\r
-         //           "Ignoring non-Modeller description: invalid integer-like field '" + field + "'");\r
+                //      jalview.bin.Cache.log.debug(\r
+                //           "Ignoring non-Modeller description: invalid integer-like field '" + field + "'");\r
                 type = -1; /* invalid field! - throw the FieldSet away */\r
               }\r
               ;\r
@@ -242,7 +243,7 @@ public class ModellerDescription
       if (seq.getDatasetSequence() != null &&\r
           seq.getDatasetSequence().getDBRef() != null)\r
       {\r
-        jalview.datamodel.DBRefEntry [] dbr = seq.getDatasetSequence().getDBRef();\r
+        jalview.datamodel.DBRefEntry[] dbr = seq.getDatasetSequence().getDBRef();\r
         int i, j;\r
         for (i = 0, j = dbr.length; i < j; i++)\r
         {\r
@@ -388,4 +389,3 @@ public class ModellerDescription
     return false;\r
   }\r
 }\r
-\r