Package org.biojava.nbio.ontology.obo
Class OboFileHandler
- java.lang.Object
-
- org.biojava.nbio.ontology.obo.OboFileHandler
-
- All Implemented Interfaces:
OboFileEventListener
public class OboFileHandler extends Object implements OboFileEventListener
A file handler for .obo files- Author:
- Andreas Prlic
-
-
Field Summary
Fields Modifier and Type Field Description static StringALT_IDstatic StringBROAD_SYNONYMstatic StringCOMMENTstatic StringDEFstatic StringDISJOINT_FROMstatic StringEXACT_SYNONYMstatic StringID_KEYstatic StringINTERSECTION_OFstatic StringIS_Astatic StringIS_OBSOLETEstatic StringNAMEstatic StringNAMESPACEstatic StringNARROW_SYNONYMstatic StringONTOLOGYstatic StringREL_SYNONYMstatic StringRELATIONSHIPstatic StringREPLACED_BYstatic StringSUBSETstatic StringSYNONYMstatic StringTERMstatic StringTYPEDEFstatic StringXREF_ANALOG
-
Constructor Summary
Constructors Constructor Description OboFileHandler(Ontology ontology)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddocumentEnd()end of parsing a new OBO filevoiddocumentStart()starting to parse a new OBO filevoidnewKey(String key, String value)found a new key in the filevoidnewOboFileHeader()parsed a new OBO file headervoidnewStanza(String stanza)parsed a new stanza in the filevoidnewSynonym(Synonym synonym)a new synonym has been found
-
-
-
Field Detail
-
TERM
public static final String TERM
- See Also:
- Constant Field Values
-
TYPEDEF
public static final String TYPEDEF
- See Also:
- Constant Field Values
-
ONTOLOGY
public static final String ONTOLOGY
- See Also:
- Constant Field Values
-
ID_KEY
public static final String ID_KEY
- See Also:
- Constant Field Values
-
SYNONYM
public static final String SYNONYM
- See Also:
- Constant Field Values
-
EXACT_SYNONYM
public static final String EXACT_SYNONYM
- See Also:
- Constant Field Values
-
BROAD_SYNONYM
public static final String BROAD_SYNONYM
- See Also:
- Constant Field Values
-
NARROW_SYNONYM
public static final String NARROW_SYNONYM
- See Also:
- Constant Field Values
-
REL_SYNONYM
public static final String REL_SYNONYM
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
DEF
public static final String DEF
- See Also:
- Constant Field Values
-
XREF_ANALOG
public static final String XREF_ANALOG
- See Also:
- Constant Field Values
-
COMMENT
public static final String COMMENT
- See Also:
- Constant Field Values
-
IS_A
public static final String IS_A
- See Also:
- Constant Field Values
-
IS_OBSOLETE
public static final String IS_OBSOLETE
- See Also:
- Constant Field Values
-
RELATIONSHIP
public static final String RELATIONSHIP
- See Also:
- Constant Field Values
-
DISJOINT_FROM
public static final String DISJOINT_FROM
- See Also:
- Constant Field Values
-
SUBSET
public static final String SUBSET
- See Also:
- Constant Field Values
-
INTERSECTION_OF
public static final String INTERSECTION_OF
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
REPLACED_BY
public static final String REPLACED_BY
- See Also:
- Constant Field Values
-
ALT_ID
public static final String ALT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OboFileHandler
public OboFileHandler(Ontology ontology)
-
-
Method Detail
-
documentEnd
public void documentEnd()
Description copied from interface:OboFileEventListenerend of parsing a new OBO file- Specified by:
documentEndin interfaceOboFileEventListener
-
documentStart
public void documentStart()
Description copied from interface:OboFileEventListenerstarting to parse a new OBO file- Specified by:
documentStartin interfaceOboFileEventListener
-
newOboFileHeader
public void newOboFileHeader()
Description copied from interface:OboFileEventListenerparsed a new OBO file header- Specified by:
newOboFileHeaderin interfaceOboFileEventListener
-
newStanza
public void newStanza(String stanza)
Description copied from interface:OboFileEventListenerparsed a new stanza in the file- Specified by:
newStanzain interfaceOboFileEventListener
-
newKey
public void newKey(String key, String value)
Description copied from interface:OboFileEventListenerfound a new key in the file- Specified by:
newKeyin interfaceOboFileEventListener
-
newSynonym
public void newSynonym(Synonym synonym)
Description copied from interface:OboFileEventListenera new synonym has been found- Specified by:
newSynonymin interfaceOboFileEventListener
-
-