|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.task.DBTask
org.sigpath.task.xml.TExportBase
public abstract class TExportBase
Base Class for Exporting SigPath Entities to XML.
| Field Summary | |
|---|---|
protected DataSource |
dataSource
|
protected HashMap |
idMap
map spid -> castor object. |
protected List |
idRefActions
list of idref actions. |
protected SigpathSubmission |
root
|
protected boolean |
standaloneOutput
|
| Fields inherited from class org.sigpath.task.DBTask |
|---|
dbManager, embeddedTask, entityManager, errors, ftsm, progressListener, sigpathFactory, unitManager, userManager, xdebug |
| Constructor Summary | |
|---|---|
|
TExportBase(DataSource dataSource,
SigpathSubmission root,
HashMap spidsToTempIDs)
Creates an exporter that gets data to export from a DataSource. |
|
TExportBase(DataSource dataSource,
SigpathSubmission root,
HashMap spidsToTempIDs,
List idRefActions)
Creates an exporter that gets data to export from a DataSource. |
protected |
TExportBase(SigpathSubmission root,
HashMap spidsToTempIDs)
|
protected |
TExportBase(SigpathSubmission root,
HashMap spidsToTempIDs,
List idRefActions)
|
| Method Summary | |
|---|---|
protected Change_log |
addChangeLog(SigPathEntity spe)
Adds Change Log Information to XML Document. |
protected Reviews |
addReviews(SigPathEntity spe)
Adds Review Information to XML Document. |
protected void |
addStandalone(Model spModel)
adds a standalone model to the submission (assumes the submission is standalone) |
protected String |
clearEmptyField(String description)
|
Molecule[] |
componentsToMolecules(SigPathEntity entity)
Converts the components of a complex into XLM molecules. |
protected String |
constructReactionSummary(Interaction interaction)
|
protected InteractionRef |
createInteractionReference(Interaction interaction)
Return an XML interaction-ref element. |
Molecule |
createMolecule(Chemical sp_chem,
HashMap spidsToTempIDs,
SigpathSubmission root)
Creates a Castor molecule object given a SigPath chemical. |
static ExternalReference |
findUniqueAcDb(ExternalReferences refs,
EntityManager em)
Find a pair of accession code/database that uniquely identifies this molecule in the current database. |
protected String |
getACDB(Chemical chemical)
Returns a valid ACDB for a Chemical object. |
String |
getCreatedBy(PendingList jdoInstance)
|
CustomKinetic |
getCustomKinetic(Kinetic kinetic)
Gets the kinetic custom when the parameter is of class (KineticCustom). |
DataSource |
getDataSource()
|
protected EnzymaticParameters |
getEnzymaticReactionParameters(EnzymaticReaction spEnzymaticReaction)
|
protected Enzyme |
getEnzyme(EnzymaticReaction jdoInstance)
|
ExcludedReactions |
getExcludedReactions(Model spModel)
|
protected Formula |
getFormula(KineticCustom kinetic)
|
protected HashMap |
getIdMap()
Gets HashMap. |
protected KineticBindings |
getKineticBindings(KineticInteraction kInt)
|
protected KineticRef |
getKineticRef(KineticInteraction reaction)
|
ModelCompartments |
getModelCompartments(Model spModel)
|
NamedChemicalRef[] |
getNamedChemicalRef(NamedChemicalInteraction jdoInstance)
|
protected ParametersBindingsDeclaration |
getParametersBindingsDeclaration(KineticCustom kinetic)
|
protected PreviousVersion |
getPreviousVersion(Model spModel)
Get Prevoius Version from Model. |
Left |
getReactionLeftSide(Collection left)
|
Modifiers |
getReactionMidleSide(Collection modifiers)
|
protected Parameters |
getReactionParameters(Reaction reaction)
|
Right |
getReactionRightSide(Collection right)
|
protected SpeciesBindingsDeclaration |
getSpeciesBindingsDeclaration(KineticCustom kinetic)
|
protected TargetUnit |
getTargetUnit(Model spModel)
|
boolean |
isStandaloneOutput()
Deprecated. Use TExportStandaloneModel instead |
protected void |
postProcessConcentrationMeasurement(ConcentrationMeasurement spCM,
Concentration_measurement cm)
|
protected void |
postProcessEnzymaticReaction(EnzymaticReaction enzymaticReaction,
EnzymaticReaction castorInstance)
|
protected void |
postProcessModel(Model spModel,
Model model)
|
void |
postProcessPendingList(PendingList jdoInstance,
Pending_list castorInstance)
|
protected void |
postProcessReaction(Reaction jdoInstance,
Reaction castorInstance)
|
protected void |
processChemicals(Collection molecs,
StringBuffer text)
get short names for chemicals and builds a reaction's description while doing this |
protected void |
setDataSource(DataSource source)
|
protected void |
setProcessingUnit(String spid)
|
static boolean |
setSpid(Chemical sp_chem,
Molecule mol)
Sets a spid attribute on the molecule only if the chemical does not refers to background information, and if no idref is provided for the molecule. |
void |
setStandaloneOutput(boolean standaloneOutput)
Deprecated. Use TExportStandaloneModel instead |
| Methods inherited from class org.sigpath.task.DBTask |
|---|
_execute, close, delete, execute, getDbManager, getErrors, isEmbeddedTask, isTaskThrewException, reindex, resolve, setDbManager, setEmbeddedTask, setEmbeddedTask, setObtainTransactionsFrom, setProgressListener, setTaskThrewException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap idMap
protected SigpathSubmission root
protected boolean standaloneOutput
protected DataSource dataSource
protected List idRefActions
| Constructor Detail |
|---|
protected TExportBase(SigpathSubmission root,
HashMap spidsToTempIDs)
public TExportBase(DataSource dataSource,
SigpathSubmission root,
HashMap spidsToTempIDs)
root - Castor SigpathSubmission objectspidsToTempIDs - map of spids to temporary ids
protected TExportBase(SigpathSubmission root,
HashMap spidsToTempIDs,
List idRefActions)
public TExportBase(DataSource dataSource,
SigpathSubmission root,
HashMap spidsToTempIDs,
List idRefActions)
root - Castor SigpathSubmission objectspidsToTempIDs - map of spids to temporary ids| Method Detail |
|---|
public DataSource getDataSource()
protected void setDataSource(DataSource source)
protected HashMap getIdMap()
public boolean isStandaloneOutput()
public void setStandaloneOutput(boolean standaloneOutput)
standaloneOutput - true to generate standalone output. false
(default) otherwise.protected Change_log addChangeLog(SigPathEntity spe)
protected Reviews addReviews(SigPathEntity spe)
protected void addStandalone(Model spModel)
spModel - protected String clearEmptyField(String description)
public Molecule[] componentsToMolecules(SigPathEntity entity)
throws SigPathDatabaseException
entity -
SigPathDatabaseException
public Molecule createMolecule(Chemical sp_chem,
HashMap spidsToTempIDs,
SigpathSubmission root)
sp_chem - Sigpath ChemicalspidsToTempIDs - HashMap that maps spids to idRefsroot - SigpathSubmission root
public static ExternalReference findUniqueAcDb(ExternalReferences refs,
EntityManager em)
throws SigPathDatabaseException
SigPathDatabaseException
public static boolean setSpid(Chemical sp_chem,
Molecule mol)
sp_chem - Chemical (source)mol - molecule (destination).
public CustomKinetic getCustomKinetic(Kinetic kinetic)
kinetic -
protected EnzymaticParameters getEnzymaticReactionParameters(EnzymaticReaction spEnzymaticReaction)
protected Enzyme getEnzyme(EnzymaticReaction jdoInstance)
throws SigPathDatabaseException
SigPathDatabaseException
protected Formula getFormula(KineticCustom kinetic)
throws SigPathDatabaseException
SigPathDatabaseException
protected KineticBindings getKineticBindings(KineticInteraction kInt)
throws SigPathDatabaseException
SigPathDatabaseException
protected KineticRef getKineticRef(KineticInteraction reaction)
throws SigPathDatabaseException
reaction -
SigPathDatabaseException
public NamedChemicalRef[] getNamedChemicalRef(NamedChemicalInteraction jdoInstance)
throws SigPathDatabaseException
SigPathDatabaseException
protected ParametersBindingsDeclaration getParametersBindingsDeclaration(KineticCustom kinetic)
throws SigPathDatabaseException
SigPathDatabaseException
public Left getReactionLeftSide(Collection left)
throws SigPathDatabaseException
SigPathDatabaseException
public Modifiers getReactionMidleSide(Collection modifiers)
throws SigPathDatabaseException
SigPathDatabaseExceptionprotected Parameters getReactionParameters(Reaction reaction)
public Right getReactionRightSide(Collection right)
throws SigPathDatabaseException
SigPathDatabaseException
protected SpeciesBindingsDeclaration getSpeciesBindingsDeclaration(KineticCustom kinetic)
throws SigPathDatabaseException
SigPathDatabaseException
protected void postProcessConcentrationMeasurement(ConcentrationMeasurement spCM,
Concentration_measurement cm)
protected String getACDB(Chemical chemical)
chemical - The chemical to get the ACDB for
protected void postProcessEnzymaticReaction(EnzymaticReaction enzymaticReaction,
EnzymaticReaction castorInstance)
throws SigPathDatabaseException
SigPathDatabaseException
protected void postProcessReaction(Reaction jdoInstance,
Reaction castorInstance)
throws SigPathDatabaseException
SigPathDatabaseExceptionprotected void setProcessingUnit(String spid)
protected InteractionRef createInteractionReference(Interaction interaction)
interaction - The interaction the reference will point to.
protected String constructReactionSummary(Interaction interaction)
throws SigPathDatabaseException
SigPathDatabaseException
protected void processChemicals(Collection molecs,
StringBuffer text)
throws SigPathDatabaseException
molecs - text -
SigPathDatabaseExceptionprotected PreviousVersion getPreviousVersion(Model spModel)
spModel: - datamodel Model class
protected TargetUnit getTargetUnit(Model spModel)
public ModelCompartments getModelCompartments(Model spModel)
public ExcludedReactions getExcludedReactions(Model spModel)
protected void postProcessModel(Model spModel,
Model model)
public String getCreatedBy(PendingList jdoInstance)
public void postProcessPendingList(PendingList jdoInstance,
Pending_list castorInstance)
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||