added getOriginalRoots() method for current archive.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 13 Jan 2006 14:53:54 +0000 (14:53 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 13 Jan 2006 14:53:54 +0000 (14:53 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@110 be28352e-c001-0410-b1a7-c7978e42abec

src/org/vamsas/client/simpleclient/VamsasArchive.java

index 80f6735..65b1d50 100644 (file)
@@ -421,7 +421,17 @@ public class VamsasArchive {
     }
     return null;
   }
-  
+  /**
+   * returns original document's root vamsas elements.
+   * @return
+   * @throws IOException
+   * @throws org.exolab.castor.xml.MarshalException
+   * @throws org.exolab.castor.xml.ValidationException
+   */
+  public object[] getOriginalRoots() throws IOException, 
+  org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException  {
+    return VamsasArchive.getOriginalRoots(this);
+  }
   /**
    * Access original document if it exists, and get VAMSAS root objects.
    * @return vector of vamsas roots from original document