|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biopax.paxtools.io.BioPAXIOHandlerAdapter
public abstract class BioPAXIOHandlerAdapter
| Field Summary | |
|---|---|
protected static java.lang.String |
bp
|
protected EditorMap |
editorMap
|
protected BioPAXFactory |
factory
|
protected BioPAXLevel |
level
|
protected java.util.Map<java.lang.String,java.lang.String> |
namespaces
|
protected static java.lang.String |
owl
|
protected static java.lang.String |
rdf
|
protected static java.lang.String |
rdfs
|
protected static java.lang.String |
xsd
|
| Constructor Summary | |
|---|---|
BioPAXIOHandlerAdapter()
|
|
BioPAXIOHandlerAdapter(BioPAXFactory factory,
BioPAXLevel level)
|
|
BioPAXIOHandlerAdapter(BioPAXLevel level)
|
|
| Method Summary | |
|---|---|
protected void |
bindValue(java.lang.String valueString,
PropertyEditor editor,
BioPAXElement bpe,
Model model)
|
Model |
convertFromMultipleOwlFiles(java.lang.String... files)
This is experimental and is not not complete. |
Model |
convertFromOWL(java.io.InputStream in)
Reads a BioPAX model from an OWL file input stream (in) and converts it to a model. |
void |
convertToOWL(Model model,
java.io.OutputStream outputStream,
java.lang.String... ids)
Similar to BioPAXIOHandler#convertToOWL(org.biopax.paxtools
.model.Model, Object), but
extracts a sub-model, converts it into BioPAX (OWL) format,
and writes it into the outputStream. |
protected void |
createAndAdd(Model model,
java.lang.String id,
java.lang.String localName)
|
protected abstract void |
createAndBind(Model model)
|
void |
fixReusedPEPs(boolean fixReusedPEPs)
Enables (true) or disables (false) the fixing of reused peps. |
EditorMap |
getEditorMap()
|
BioPAXFactory |
getFactory()
|
BioPAXLevel |
getLevel()
|
protected PropertyEditor |
getRDFCommentEditor(BioPAXElement bpe)
|
ReusedPEPHelper |
getReusedPEPHelper()
|
protected abstract void |
init(java.io.InputStream in)
|
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. |
protected BioPAXElement |
literalFixes(PropertyEditor editor,
BioPAXElement bpe,
Model model,
java.lang.String value)
|
protected abstract java.util.Map<java.lang.String,java.lang.String> |
readNameSpaces()
|
protected abstract void |
resetEditorMap()
Updates the member EditorMap for the new BioPAX level and factory (different implementations of EditorMap can be used in modules, e.g. |
protected void |
resetLevel(BioPAXLevel level,
BioPAXFactory factory)
|
protected java.lang.Object |
resourceFixes(BioPAXElement bpe,
java.lang.Object value)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.biopax.paxtools.io.BioPAXIOHandler |
|---|
convertToOWL |
| Field Detail |
|---|
protected BioPAXLevel level
protected BioPAXFactory factory
protected EditorMap editorMap
protected java.util.Map<java.lang.String,java.lang.String> namespaces
protected static final java.lang.String rdf
protected static final java.lang.String rdfs
protected static java.lang.String bp
protected static final java.lang.String xsd
protected static final java.lang.String owl
| Constructor Detail |
|---|
public BioPAXIOHandlerAdapter()
public BioPAXIOHandlerAdapter(BioPAXLevel level)
public BioPAXIOHandlerAdapter(BioPAXFactory factory,
BioPAXLevel level)
| Method Detail |
|---|
protected void resetLevel(BioPAXLevel level,
BioPAXFactory factory)
protected abstract void resetEditorMap()
public void fixReusedPEPs(boolean fixReusedPEPs)
fixReusedPEPs in interface BioPAXIOHandlerfixReusedPEPs - true if fixing is desiredfixReusedPEPspublic void treatNilAsNull(boolean treatNILasNull)
BioPAXIOHandler
treatNilAsNull in interface BioPAXIOHandlerpublic void setConvertingFromLevel1ToLevel2(boolean convertingFromLevel1ToLevel2)
BioPAXIOHandler
setConvertingFromLevel1ToLevel2 in interface BioPAXIOHandlerpublic boolean isTreatNilAsNull()
BioPAXIOHandler
isTreatNilAsNull in interface BioPAXIOHandlerpublic boolean isConvertingFromLevel1ToLevel2()
BioPAXIOHandler
isConvertingFromLevel1ToLevel2 in interface BioPAXIOHandlerpublic boolean isFixReusedPEPs()
BioPAXIOHandler
isFixReusedPEPs in interface BioPAXIOHandlerpublic ReusedPEPHelper getReusedPEPHelper()
public BioPAXFactory getFactory()
getFactory in interface BioPAXIOHandlerpublic void setFactory(BioPAXFactory factory)
setFactory in interface BioPAXIOHandlerfactory - used for creating objectspublic EditorMap getEditorMap()
getEditorMap in interface BioPAXIOHandlerpublic void setEditorMap(EditorMap editorMap)
setEditorMap in interface BioPAXIOHandlereditorMap - used for this handler.public BioPAXLevel getLevel()
getLevel in interface BioPAXIOHandler
public Model convertFromMultipleOwlFiles(java.lang.String... files)
throws java.io.FileNotFoundException
convertFromMultipleOwlFiles in interface BioPAXIOHandlerfiles - Dependency ordered biopax owl file names
java.io.FileNotFoundException - if any file can not be foundpublic Model convertFromOWL(java.io.InputStream in)
convertFromOWL in interface BioPAXIOHandlerin - inputStream from which the model will be read
protected void createAndAdd(Model model,
java.lang.String id,
java.lang.String localName)
protected abstract void init(java.io.InputStream in)
protected abstract java.util.Map<java.lang.String,java.lang.String> readNameSpaces()
protected abstract void createAndBind(Model model)
protected BioPAXElement literalFixes(PropertyEditor editor,
BioPAXElement bpe,
Model model,
java.lang.String value)
protected java.lang.Object resourceFixes(BioPAXElement bpe,
java.lang.Object value)
protected void bindValue(java.lang.String valueString,
PropertyEditor editor,
BioPAXElement bpe,
Model model)
protected PropertyEditor getRDFCommentEditor(BioPAXElement bpe)
public void convertToOWL(Model model,
java.io.OutputStream outputStream,
java.lang.String... ids)
BioPAXIOHandler#convertToOWL(org.biopax.paxtools
.model.Model, Object), but
extracts a sub-model, converts it into BioPAX (OWL) format,
and writes it into the outputStream.
Saved data can be then read via BioPAXIOHandler
interface (e.g., SimpleIOHandler).
convertToOWL in interface BioPAXIOHandlermodel - model to be converted into OWL formatoutputStream - output stream into which the output will be writtenids - the list of "root" element IDs to export (with all their properties/children altogether)
java.io.IOException - in case of I/O problems
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||