|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.bioimport.XMLExport
public class XMLExport
Performs XML Export of Sigpath Data.
| Constructor Summary | |
|---|---|
XMLExport(PrintStream out,
String schemaURL,
boolean standaloneOutput,
boolean interactive)
Creates a new xml exmport using the specified schema url and print stream. |
|
XMLExport(XDebug xdebug)
Creates a new xml exmport using the default schema url. |
|
XMLExport(XDebug xdebug,
String schema)
Creates a new xml exmport using the specified schema url. |
|
| Method Summary | |
|---|---|
static Vector |
collectModifiedChemicals()
|
static void |
displayCommandLineUsage()
Displays the Command Line Usage. |
String |
displaySubmission(SigpathSubmission submission)
Outputs XML. |
String |
exportAll()
Exports everything. |
String |
exportAll(List list)
Exports everything in the list. |
String |
exportBySpid(String spid)
Exports the SigPathEntity that that spid refers to. |
SigpathSubmission |
exportComplex(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
If spid is null exports all complexes. |
SigpathSubmission |
exportComponents(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
If spid is null exports all complexes and modified chemicals. |
SigpathSubmission |
exportConcentrations(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
|
void |
exportDataSource(SPDBManager dbm,
SigpathSubmission submission,
HashMap spidsToCastorInstances,
DataSource dataSource)
Export SigPath instances to XML |
SigpathSubmission |
exportModels(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
|
SigpathSubmission |
exportModifiedChemical(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
If spid is null exports all modified chemicals. |
SigpathSubmission |
exportNamedChemicalInteractions(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
If spid is null exports all named chemical interactions. |
SigpathSubmission |
exportNamedChemicals(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
If spid is null exports all named chemicals. |
SigpathSubmission |
exportPathways(SigpathSubmission submission,
HashMap spidsToTempIDs,
DataSource dataSource)
Export Pathways - If spid is null exports all Pathways. |
SigpathSubmission |
exportPendingReviews(SigpathSubmission submission,
HashMap spidsToTempIDs,
DataSource dataSource)
Export PendingList - If spid is null exports all Pathways. |
SigpathSubmission |
exportProteins(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
If spid is null exports all proteins. |
SigpathSubmission |
exportSmallMolecules(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
Export small molecules to XML Submission. |
List |
getIdrefActions()
|
int |
getNumOfTempIDs()
|
XDebug |
getXDebug()
Get the XDebug object associated with this export. |
boolean |
isStandaloneOutput()
Should this model be exported standalone? |
static void |
main(String[] args)
|
void |
setProgressListener(ProgressListener progressListener)
Set a progress listener for this export. |
void |
setStandaloneOutput(boolean standaloneOutput)
Decide if the output should be standalone. |
void |
writeSubmission(SigpathSubmission submission,
Writer writer)
Writes the submission to the given writer object. |
void |
writeSubmissionWithoutValidation(SigpathSubmission submission,
Writer writer)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLExport(XDebug xdebug)
xdebug - debug object
public XMLExport(XDebug xdebug,
String schema)
xdebug - debug objectschema - url of the schema to use
public XMLExport(PrintStream out,
String schemaURL,
boolean standaloneOutput,
boolean interactive)
throws IOException,
SigPathDatabaseException,
MarshalException,
ValidationException
out - PrintStream to write xml toschemaURL - URL of the schema to use when generating the xmlstandaloneOutput - true if the output should include all the
data it needs to be a complete submissioninteractive - true if the export should prompt the user for input.
IOException
SigPathDatabaseException
MarshalException
ValidationException| Method Detail |
|---|
public XDebug getXDebug()
public void setProgressListener(ProgressListener progressListener)
progressListener - public static void displayCommandLineUsage()
public void writeSubmission(SigpathSubmission submission,
Writer writer)
throws IOException,
ValidationException,
MarshalException
submission - Submission to writewriter - The writer
IOException
ValidationException
MarshalException
public void writeSubmissionWithoutValidation(SigpathSubmission submission,
Writer writer)
throws IOException,
ValidationException,
MarshalException
submission - Submission to writewriter - The writer
IOException
ValidationException
MarshalException
public String displaySubmission(SigpathSubmission submission)
throws MarshalException,
ValidationException,
IOException
MarshalException
ValidationException
IOException
public SigpathSubmission exportSmallMolecules(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
submission - The castor xml submission where the molecules will be
writtenspidsToTempIDs - The spid to xml-id map. Relation between spid and
xml id is written in this map during the callspid - SigPath identifier of one molecule, or null, to export all
molecules.
SigPathDatabaseException
public SigpathSubmission exportProteins(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportComponents(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportComplex(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportModifiedChemical(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportNamedChemicals(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportConcentrations(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportModels(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportPathways(SigpathSubmission submission,
HashMap spidsToTempIDs,
DataSource dataSource)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportPendingReviews(SigpathSubmission submission,
HashMap spidsToTempIDs,
DataSource dataSource)
throws SigPathDatabaseException
SigPathDatabaseException
public SigpathSubmission exportNamedChemicalInteractions(SigpathSubmission submission,
HashMap spidsToTempIDs,
String spid)
throws SigPathDatabaseException
SigPathDatabaseException
public String exportBySpid(String spid)
throws SigPathDatabaseException,
IOException,
ValidationException,
MarshalException
spid - of the entity to export.
SigPathDatabaseException
IOException
ValidationException
MarshalException
public String exportAll(List list)
throws SigPathDatabaseException,
ValidationException,
MarshalException,
IOException
list - List of spids
SigPathDatabaseException
ValidationException
MarshalException
IOExceptionpublic int getNumOfTempIDs()
public List getIdrefActions()
public void exportDataSource(SPDBManager dbm,
SigpathSubmission submission,
HashMap spidsToCastorInstances,
DataSource dataSource)
throws SigPathDatabaseException
submission - The submission where to store exported instancesspidsToCastorInstances - Id to castor instance map.dataSource - Source of SigPathEntity instances.
SigPathDatabaseException
public String exportAll()
throws SigPathDatabaseException,
ValidationException,
MarshalException,
IOException
SigPathDatabaseException
ValidationException
MarshalException
IOException
public static Vector collectModifiedChemicals()
throws SigPathDatabaseException
SigPathDatabaseExceptionpublic boolean isStandaloneOutput()
public void setStandaloneOutput(boolean standaloneOutput)
standaloneOutput - frue to generate standalone output. false
(default) otherwise.
public static void main(String[] args)
throws IOException,
ValidationException,
MarshalException,
SigPathDatabaseException
IOException
ValidationException
MarshalException
SigPathDatabaseException
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||