Package psidev.psi.mi.jami.tab.io.parser
Class AbstractInteractionEvidenceLineParser<T extends InteractionEvidence>
- java.lang.Object
-
- psidev.psi.mi.jami.tab.io.parser.MitabLineParser<T,P,F>
-
- psidev.psi.mi.jami.tab.io.parser.AbstractInteractionLineParser<T,ParticipantEvidence,FeatureEvidence>
-
- psidev.psi.mi.jami.tab.io.parser.AbstractInteractionEvidenceLineParser<T>
-
- All Implemented Interfaces:
MitabLineParserConstants
- Direct Known Subclasses:
BinaryEvidenceLineParser
,InteractionEvidenceLineParser
public abstract class AbstractInteractionEvidenceLineParser<T extends InteractionEvidence> extends AbstractInteractionLineParser<T,ParticipantEvidence,FeatureEvidence>
Abstract class for Interaction evidence parsers- Since:
04/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from class psidev.psi.mi.jami.tab.io.parser.MitabLineParser
jj_nt, token, token_source
-
Fields inherited from interface psidev.psi.mi.jami.tab.io.parser.MitabLineParserConstants
CLOSE_PAREN, COLON, COLUMN_SEPARATOR, COMMENT, DASH, DEFAULT, EOF, FIELD_SEPARATOR, LINE_SEPARATOR, OPEN_PAREN, QUOTED_STRING, RANGE_SEPARATOR, tokenImage, UNRESERVED_STRING
-
-
Constructor Summary
Constructors Constructor Description AbstractInteractionEvidenceLineParser(InputStream stream)
Constructor for AbstractInteractionEvidenceLineParser.AbstractInteractionEvidenceLineParser(InputStream stream, String encoding)
Constructor for AbstractInteractionEvidenceLineParser.AbstractInteractionEvidenceLineParser(Reader stream)
Constructor for AbstractInteractionEvidenceLineParser.AbstractInteractionEvidenceLineParser(MitabLineParserTokenManager tm)
Constructor for AbstractInteractionEvidenceLineParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MitabExperiment
createExperimentFrom(MitabPublication publication, Collection<MitabCvTerm> detMethod, Collection<MitabOrganism> host)
createExperimentFrom.protected MitabPublication
createPublicationFrom(Collection<MitabAuthor> firstAuthor, Collection<MitabXref> pubId, Collection<MitabSource> source)
createPublicationFrom.protected void
initialiseAuthorAndPublicationDate(MitabPublication publication, MitabAuthor author)
initialiseAuthorAndPublicationDate.protected void
initialiseHostOrganism(Collection<MitabOrganism> organisms, MitabExperiment exp)
initialiseHostOrganism.protected void
initialiseInteractionAnnotations(Collection<MitabAnnotation> annots, T interaction)
initialiseInteractionAnnotations.protected boolean
initialisePublicationIdentifiers(Collection<MitabXref> pubId, MitabPublication publication, boolean hasInitialisedLocator)
initialisePublicationIdentifiers.-
Methods inherited from class psidev.psi.mi.jami.tab.io.parser.AbstractInteractionLineParser
createAliasFromAltId, createChecksumFromAlias, createChecksumFromAltId, createChecksumFromId, createInteraction, createInteractorFrom, fillInteractorWithAliases, fillInteractorWithAlternativeIdentifiers, findInteractorShortNameAndFullNameFrom, getInteractorFactory, getParserListener, hasFinished, initialiseExpansionMethod, initialiseInteractionIdentifiers, initialiseOrganism, processInteractorPool, processTextFor, ReInit, ReInit, ReInit, ReInit, setInteractorFactory, setParserListener
-
Methods inherited from class psidev.psi.mi.jami.tab.io.parser.MitabLineParser
alias, aliases, annotation, annotations, author, checksum, checksums, complexExpansion, confidence, confidences, cvTerm, cvTerms, date, dates, disable_tracing, enable_tracing, expansion, feature, features, firstAuthors, generateParseException, getNextToken, getToken, id, ids, MitabLine, negative, organism, parameter, parameters, range, safeFreeText, safePosition, safeStoichiometry, safeString, source, sourceDbs, stoichiometry, stoichiometryList, taxId
-
-
-
-
Constructor Detail
-
AbstractInteractionEvidenceLineParser
public AbstractInteractionEvidenceLineParser(InputStream stream)
Constructor for AbstractInteractionEvidenceLineParser.
- Parameters:
stream
- aInputStream
object.
-
AbstractInteractionEvidenceLineParser
public AbstractInteractionEvidenceLineParser(InputStream stream, String encoding)
Constructor for AbstractInteractionEvidenceLineParser.
- Parameters:
stream
- aInputStream
object.encoding
- aString
object.
-
AbstractInteractionEvidenceLineParser
public AbstractInteractionEvidenceLineParser(Reader stream)
Constructor for AbstractInteractionEvidenceLineParser.
- Parameters:
stream
- aReader
object.
-
AbstractInteractionEvidenceLineParser
public AbstractInteractionEvidenceLineParser(MitabLineParserTokenManager tm)
Constructor for AbstractInteractionEvidenceLineParser.
- Parameters:
tm
- aMitabLineParserTokenManager
object.
-
-
Method Detail
-
initialiseInteractionAnnotations
protected void initialiseInteractionAnnotations(Collection<MitabAnnotation> annots, T interaction)
initialiseInteractionAnnotations.
- Parameters:
annots
- aCollection
object.interaction
- a T object.
-
createExperimentFrom
protected MitabExperiment createExperimentFrom(MitabPublication publication, Collection<MitabCvTerm> detMethod, Collection<MitabOrganism> host)
createExperimentFrom.
- Parameters:
publication
- aMitabPublication
object.detMethod
- aCollection
object.host
- aCollection
object.- Returns:
- a
MitabExperiment
object.
-
initialiseHostOrganism
protected void initialiseHostOrganism(Collection<MitabOrganism> organisms, MitabExperiment exp)
initialiseHostOrganism.
- Parameters:
organisms
- aCollection
object.exp
- aMitabExperiment
object.
-
createPublicationFrom
protected MitabPublication createPublicationFrom(Collection<MitabAuthor> firstAuthor, Collection<MitabXref> pubId, Collection<MitabSource> source)
createPublicationFrom.
- Parameters:
firstAuthor
- aCollection
object.pubId
- aCollection
object.source
- aCollection
object.- Returns:
- a
MitabPublication
object.
-
initialisePublicationIdentifiers
protected boolean initialisePublicationIdentifiers(Collection<MitabXref> pubId, MitabPublication publication, boolean hasInitialisedLocator)
initialisePublicationIdentifiers.
- Parameters:
pubId
- aCollection
object.publication
- aMitabPublication
object.hasInitialisedLocator
- a boolean.- Returns:
- a boolean.
-
initialiseAuthorAndPublicationDate
protected void initialiseAuthorAndPublicationDate(MitabPublication publication, MitabAuthor author)
initialiseAuthorAndPublicationDate.
- Parameters:
publication
- aMitabPublication
object.author
- aMitabAuthor
object.
-
-