From be8fc58c18866427f263d220380d484c313eec58 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 13 Jan 2006 14:53:54 +0000 Subject: [PATCH] added getOriginalRoots() method for current archive. 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 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/org/vamsas/client/simpleclient/VamsasArchive.java b/src/org/vamsas/client/simpleclient/VamsasArchive.java index 80f6735..65b1d50 100644 --- a/src/org/vamsas/client/simpleclient/VamsasArchive.java +++ b/src/org/vamsas/client/simpleclient/VamsasArchive.java @@ -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 -- 1.7.10.2