uk.ac.vamsas.client.simpleclient
Class SimpleDocBinding

java.lang.Object
  extended byuk.ac.vamsas.client.simpleclient.SimpleDocBinding
Direct Known Subclasses:
SimpleDocument

public class SimpleDocBinding
extends java.lang.Object

Base class for SimpleClient Vamsas Document Object Manipulation holds static vamsasDocument from XML routines and state objects for a particular unmarshalled Document instance.

Author:
jimp

Field Summary
protected static org.apache.commons.logging.Log log
           
protected  VorbaIdFactory vorba
           
 
Constructor Summary
SimpleDocBinding()
           
 
Method Summary
 java.util.Vector getReferencedEntries(VamsasDocument doc, VamsasArchiveReader oReader)
          Extract all jarEntries in an archive referenced by the vamsas document LATER: a family of methods for finding extraneous jarEntries , and invalid appDataReferences
 VamsasDocument getVamsasDocument(VamsasArchiveReader oReader)
          Uses VorbaXmlBinder to retrieve the VamsasDocument from the given stream
 VorbaIdFactory getVorba()
           
 void setVorba(VorbaIdFactory vorba)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vorba

protected VorbaIdFactory vorba

log

protected static org.apache.commons.logging.Log log
Constructor Detail

SimpleDocBinding

public SimpleDocBinding()
Method Detail

getVorba

public VorbaIdFactory getVorba()
Returns:
Returns the vorba.

setVorba

public void setVorba(VorbaIdFactory vorba)
Parameters:
vorba - The vorba to set.

getVamsasDocument

public VamsasDocument getVamsasDocument(VamsasArchiveReader oReader)
                                 throws java.io.IOException,
                                        org.exolab.castor.xml.MarshalException,
                                        org.exolab.castor.xml.ValidationException
Uses VorbaXmlBinder to retrieve the VamsasDocument from the given stream

Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

getReferencedEntries

public java.util.Vector getReferencedEntries(VamsasDocument doc,
                                             VamsasArchiveReader oReader)
Extract all jarEntries in an archive referenced by the vamsas document LATER: a family of methods for finding extraneous jarEntries , and invalid appDataReferences

Parameters:
doc -
oReader -
Returns:
array of the subset of JarEntry names that are referenced in doc