org.biopax.paxtools.io
Interface BioPAXIOHandler

All Known Implementing Classes:
BioPAXIOHandlerAdapter, SimpleIOHandler

public interface BioPAXIOHandler

This interface defines IO related operations that can be performed on BioPAX models.


Method Summary
 Model convertFromMultipleOwlFiles(java.lang.String... files)
          This method will read multiple OWL document and will merge them into an in memory BioPAX model.
 Model convertFromOWL(java.io.InputStream in)
          This method will read the OWL document given by the input stream and will convert it into an in memory BioPAX model.
 void convertToOWL(Model model, java.io.OutputStream outputStream)
          This method will write the model to the output stream.
 void convertToOWL(Model model, java.io.OutputStream outputStream, java.lang.String... ids)
          This method will "excise" a new model from the given model that contains the objects with given ids and their dependents.
 void fixReusedPEPs(boolean fixReusedPEPs)
          This option is only applicable two level 2 models.
 EditorMap getEditorMap()
           
 BioPAXFactory getFactory()
           
 BioPAXLevel getLevel()
           
 boolean isConvertingFromLevel1ToLevel2()
          This flag will allow reader to automatically convert level1 classes to corresponding level 2 classes.
 boolean isFixReusedPEPs()
          This option is only applicable two level 2 models.
 boolean isTreatNilAsNull()
          This flag will fix a common legacy bug from BioCyc where the "NIL" string was used for representing unknown values.
 void setConvertingFromLevel1ToLevel2(boolean convertingFromLevel1ToLevel2)
          This flag will allow reader to automatically convert level1 classes to corresponding level 2 classes.
 void setEditorMap(EditorMap editorMap)
           
 void setFactory(BioPAXFactory factory)
           
 void treatNilAsNull(boolean treatNILasNull)
          This flag will fix a common legacy bug from BioCyc where the "NIL" string was used for representing unknown values.
 

Method Detail

fixReusedPEPs

void fixReusedPEPs(boolean fixReusedPEPs)
This option is only applicable two level 2 models. When enabled it will replicate illegally reused pysicalEntityParticipants in Level2 files.

Parameters:
fixReusedPEPs -

treatNilAsNull

void treatNilAsNull(boolean treatNILasNull)
This flag will fix a common legacy bug from BioCyc where the "NIL" string was used for representing unknown values.

Parameters:
treatNILasNull -

convertFromOWL

Model convertFromOWL(java.io.InputStream in)
This method will read the OWL document given by the input stream and will convert it into an in memory BioPAX model.

Parameters:
in -
Returns:

convertFromMultipleOwlFiles

Model convertFromMultipleOwlFiles(java.lang.String... files)
                                  throws java.io.FileNotFoundException
This method will read multiple OWL document and will merge them into an in memory BioPAX model.

Parameters:
files -
Returns:
Throws:
java.io.FileNotFoundException

convertToOWL

void convertToOWL(Model model,
                  java.io.OutputStream outputStream)
This method will write the model to the output stream. Default encoding is RDF/XML.

Parameters:
model -
outputStream -

setConvertingFromLevel1ToLevel2

void setConvertingFromLevel1ToLevel2(boolean convertingFromLevel1ToLevel2)
This flag will allow reader to automatically convert level1 classes to corresponding level 2 classes.

Parameters:
convertingFromLevel1ToLevel2 -

isTreatNilAsNull

boolean isTreatNilAsNull()
This flag will fix a common legacy bug from BioCyc where the "NIL" string was used for representing unknown values.

Returns:
true if this option is enabled.

isConvertingFromLevel1ToLevel2

boolean isConvertingFromLevel1ToLevel2()
This flag will allow reader to automatically convert level1 classes to corresponding level 2 classes.

Returns:
true if this option is enabled.

isFixReusedPEPs

boolean isFixReusedPEPs()
This option is only applicable two level 2 models. When enabled it will replicate illegally reused pysicalEntityParticipants in Level2 files.

Returns:
true if this option is enabled.

getFactory

BioPAXFactory getFactory()
Returns:
factory used for creating objects

setFactory

void setFactory(BioPAXFactory factory)
Parameters:
factory - used for creating objects

getEditorMap

EditorMap getEditorMap()
Returns:
EditorMap used for this handler.

setEditorMap

void setEditorMap(EditorMap editorMap)
Parameters:
editorMap - used for this handler.

getLevel

BioPAXLevel getLevel()
Returns:
The level of the model that is being read.

convertToOWL

void convertToOWL(Model model,
                  java.io.OutputStream outputStream,
                  java.lang.String... ids)
This method will "excise" a new model from the given model that contains the objects with given ids and their dependents.

Parameters:
model -
outputStream -
ids -


Copyright © 2011 BioPAX. All Rights Reserved.