Package psidev.psi.mi.jami.listener.impl
Class MIFileParserLogger
- java.lang.Object
-
- psidev.psi.mi.jami.listener.impl.MIFileParserLogger
-
- All Implemented Interfaces:
MIFileParserListener
- Direct Known Subclasses:
CsvParserLogger,MitabParserLogger,PsiXmlParserLogger
public class MIFileParserLogger extends Object implements MIFileParserListener
Logger for MitabParser- Since:
24/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MIFileParserLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAliasWithoutName(FileSourceContext context)Listen to an event fired when an alias does not have a namevoidonAnnotationWithoutTopic(FileSourceContext context)Listen to an event fired when an annotation does not have a topicvoidonInteractionWithoutParticipants(Interaction interaction, FileSourceContext context)Listen to an event fired when an interaction is read and does not have any participants.voidonInvalidOrganismTaxid(String taxid, FileSourceContext context)Listen to an event fired when an organism does not have a valid taxid (positive integer or -1, -2, -3, -4, -5)voidonInvalidPosition(String message, FileSourceContext context)Listen to an event fired when a position is not validvoidonInvalidRange(String message, FileSourceContext context)Listen to an event fired when a range is not validvoidonInvalidStoichiometry(String message, FileSourceContext context)Listen to an event fired when a stoichiometry is not validvoidonInvalidSyntax(FileSourceContext context, Exception e)Listen to an invalid syntax causing an ExceptionvoidonMissingChecksumMethod(FileSourceContext context)Listen to an event fired when a checksum does not have a methodvoidonMissingChecksumValue(FileSourceContext context)Listen to an event fired when a checksum does not have a valuevoidonMissingConfidenceType(FileSourceContext context)Listen to an event fired when a confidence does not have a confidence typevoidonMissingConfidenceValue(FileSourceContext context)Listen to an event fired when a confidence does not have a valuevoidonMissingCvTermName(CvTerm term, FileSourceContext context, String message)Listen to an event fired when a CvTerm is read and does not have any names.voidonMissingInteractorName(Interactor interactor, FileSourceContext context)Listen to an event fired when an interactor is read and does not have any names.voidonMissingParameterType(FileSourceContext context)Listen to an event fired when a parameter does not have a typevoidonMissingParameterValue(FileSourceContext context)Listen to an event fired when a parameter does not have a valuevoidonParticipantWithoutInteractor(Participant participant, FileSourceContext context)Listen to en event fired when a Participant is read and no interactor details has been provided.voidonSyntaxWarning(FileSourceContext context, String message)Listen to an event fired when the syntax of the file is valid but the content is not expected or some information may be lost.voidonXrefWithoutDatabase(FileSourceContext context)Listen to an event fired when a xref does not have a databasevoidonXrefWithoutId(FileSourceContext context)Listen to an event fired when a xref does not have an id
-
-
-
Method Detail
-
onMissingCvTermName
public void onMissingCvTermName(CvTerm term, FileSourceContext context, String message)
Listen to an event fired when a CvTerm is read and does not have any names. At least a shortname is expected for each CvTerm so such a term may be loaded with an automatically generated shortname.- Specified by:
onMissingCvTermNamein interfaceMIFileParserListener- Parameters:
term- : cv without namecontext- : file contextmessage- : error message
-
onInvalidSyntax
public void onInvalidSyntax(FileSourceContext context, Exception e)
Listen to an invalid syntax causing an Exception- Specified by:
onInvalidSyntaxin interfaceMIFileParserListener- Parameters:
context- : file contexte- aExceptionobject.
-
onSyntaxWarning
public void onSyntaxWarning(FileSourceContext context, String message)
Listen to an event fired when the syntax of the file is valid but the content is not expected or some information may be lost.- Specified by:
onSyntaxWarningin interfaceMIFileParserListener- Parameters:
context- : file contextmessage- : warning message
-
onMissingInteractorName
public void onMissingInteractorName(Interactor interactor, FileSourceContext context)
Listen to an event fired when an interactor is read and does not have any names. At least a shortname is expected for each interactor so such an interactor may be loaded with an automatically generated shortname.- Specified by:
onMissingInteractorNamein interfaceMIFileParserListener- Parameters:
interactor- : interactor without namecontext- : file context
-
onParticipantWithoutInteractor
public void onParticipantWithoutInteractor(Participant participant, FileSourceContext context)
Listen to en event fired when a Participant is read and no interactor details has been provided. In such a case, the interactor can be automatically generated as an unknown interactor- Specified by:
onParticipantWithoutInteractorin interfaceMIFileParserListener- Parameters:
participant- : participant without interactorcontext- : file context
-
onInteractionWithoutParticipants
public void onInteractionWithoutParticipants(Interaction interaction, FileSourceContext context)
Listen to an event fired when an interaction is read and does not have any participants. The interaction may be loaded as an empty interaction.- Specified by:
onInteractionWithoutParticipantsin interfaceMIFileParserListener- Parameters:
interaction- : interaction without participantscontext- : file context
-
onInvalidOrganismTaxid
public void onInvalidOrganismTaxid(String taxid, FileSourceContext context)
Listen to an event fired when an organism does not have a valid taxid (positive integer or -1, -2, -3, -4, -5)- Specified by:
onInvalidOrganismTaxidin interfaceMIFileParserListener- Parameters:
taxid- : invalid taxidcontext- : file context
-
onMissingParameterValue
public void onMissingParameterValue(FileSourceContext context)
Listen to an event fired when a parameter does not have a value- Specified by:
onMissingParameterValuein interfaceMIFileParserListener- Parameters:
context- : file context
-
onMissingParameterType
public void onMissingParameterType(FileSourceContext context)
Listen to an event fired when a parameter does not have a type- Specified by:
onMissingParameterTypein interfaceMIFileParserListener- Parameters:
context- : file context
-
onMissingConfidenceValue
public void onMissingConfidenceValue(FileSourceContext context)
Listen to an event fired when a confidence does not have a value- Specified by:
onMissingConfidenceValuein interfaceMIFileParserListener- Parameters:
context- : file context
-
onMissingConfidenceType
public void onMissingConfidenceType(FileSourceContext context)
Listen to an event fired when a confidence does not have a confidence type- Specified by:
onMissingConfidenceTypein interfaceMIFileParserListener- Parameters:
context- : file context
-
onMissingChecksumValue
public void onMissingChecksumValue(FileSourceContext context)
Listen to an event fired when a checksum does not have a value- Specified by:
onMissingChecksumValuein interfaceMIFileParserListener- Parameters:
context- : file context
-
onMissingChecksumMethod
public void onMissingChecksumMethod(FileSourceContext context)
Listen to an event fired when a checksum does not have a method- Specified by:
onMissingChecksumMethodin interfaceMIFileParserListener- Parameters:
context- : file context
-
onInvalidPosition
public void onInvalidPosition(String message, FileSourceContext context)
Listen to an event fired when a position is not valid- Specified by:
onInvalidPositionin interfaceMIFileParserListener- Parameters:
message- : error messagecontext- : file context
-
onInvalidRange
public void onInvalidRange(String message, FileSourceContext context)
Listen to an event fired when a range is not valid- Specified by:
onInvalidRangein interfaceMIFileParserListener- Parameters:
message- : error messagecontext- : file context
-
onInvalidStoichiometry
public void onInvalidStoichiometry(String message, FileSourceContext context)
Listen to an event fired when a stoichiometry is not valid- Specified by:
onInvalidStoichiometryin interfaceMIFileParserListener- Parameters:
message- : : error messagecontext- : file context
-
onXrefWithoutDatabase
public void onXrefWithoutDatabase(FileSourceContext context)
Listen to an event fired when a xref does not have a database- Specified by:
onXrefWithoutDatabasein interfaceMIFileParserListener- Parameters:
context- : file context
-
onXrefWithoutId
public void onXrefWithoutId(FileSourceContext context)
Listen to an event fired when a xref does not have an id- Specified by:
onXrefWithoutIdin interfaceMIFileParserListener- Parameters:
context- : file context
-
onAnnotationWithoutTopic
public void onAnnotationWithoutTopic(FileSourceContext context)
Listen to an event fired when an annotation does not have a topic- Specified by:
onAnnotationWithoutTopicin interfaceMIFileParserListener- Parameters:
context- : file context
-
onAliasWithoutName
public void onAliasWithoutName(FileSourceContext context)
Listen to an event fired when an alias does not have a name- Specified by:
onAliasWithoutNamein interfaceMIFileParserListener- Parameters:
context- : file context
-
-