JAL-281 created Nexus and PhyloXML parser classes
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 19 Dec 2017 14:34:24 +0000 (14:34 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 19 Dec 2017 14:34:24 +0000 (14:34 +0000)
src/jalview/ext/forester/io/NexusParser.java [new file with mode: 0644]
src/jalview/ext/forester/io/PhyloXMLParser.java [new file with mode: 0644]
src/jalview/ext/forester/io/TreeParser.java [deleted file]

diff --git a/src/jalview/ext/forester/io/NexusParser.java b/src/jalview/ext/forester/io/NexusParser.java
new file mode 100644 (file)
index 0000000..d48b033
--- /dev/null
@@ -0,0 +1,105 @@
+package jalview.ext.forester.io;
+
+import jalview.api.FeatureSettingsModelI;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceI;
+import jalview.ext.treeviewer.TreeI;
+import jalview.ext.treeviewer.TreeParserI;
+import jalview.io.AlignmentFileReaderI;
+import jalview.io.DataSourceType;
+
+import java.io.IOException;
+
+public class NexusParser implements TreeParserI, AlignmentFileReaderI
+{
+
+
+  public NexusParser()
+  {
+
+  }
+
+  @Override
+  public TreeI[] parse() throws IOException
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public void setSource(Object source) throws IOException
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  public String getName()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public SequenceI[] getSeqsAsArray()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public void addAnnotations(AlignmentI al)
+  {
+    // TODO Auto-generated method stub
+    
+  }
+
+  @Override
+  public void addGroups(AlignmentI al)
+  {
+    // TODO Auto-generated method stub
+    
+  }
+
+  @Override
+  public void setSeqs(SequenceI[] sequencesArray)
+  {
+    // TODO Auto-generated method stub
+    
+  }
+
+  @Override
+  public boolean hasWarningMessage()
+  {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+  @Override
+  public String getWarningMessage()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public String getInFile()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public DataSourceType getDataSourceType()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public FeatureSettingsModelI getFeatureColourScheme()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+}
diff --git a/src/jalview/ext/forester/io/PhyloXMLParser.java b/src/jalview/ext/forester/io/PhyloXMLParser.java
new file mode 100644 (file)
index 0000000..8194d21
--- /dev/null
@@ -0,0 +1,100 @@
+package jalview.ext.forester.io;
+
+import jalview.api.FeatureSettingsModelI;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceI;
+import jalview.ext.treeviewer.TreeI;
+import jalview.ext.treeviewer.TreeParserI;
+import jalview.io.AlignmentFileReaderI;
+import jalview.io.DataSourceType;
+
+import java.io.IOException;
+
+public class PhyloXMLParser implements TreeParserI, AlignmentFileReaderI
+{
+
+  @Override
+  public SequenceI[] getSeqsAsArray()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public void addAnnotations(AlignmentI al)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  public void addGroups(AlignmentI al)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  public void setSeqs(SequenceI[] sequencesArray)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  public boolean hasWarningMessage()
+  {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+  @Override
+  public String getWarningMessage()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public String getInFile()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public DataSourceType getDataSourceType()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public FeatureSettingsModelI getFeatureColourScheme()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public TreeI[] parse() throws IOException
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  @Override
+  public void setSource(Object source) throws IOException
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  public String getName()
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+}
diff --git a/src/jalview/ext/forester/io/TreeParser.java b/src/jalview/ext/forester/io/TreeParser.java
deleted file mode 100644 (file)
index 29131c5..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-package jalview.ext.forester.io;
-
-public class TreeParser // implements ExternalTreeParserI<MainFrame>
-{
-
-  public TreeParser()
-  {
-
-  }
-}