Class XmlEvidenceStreamSource
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.datasource.AbstractPsiXmlStream<InteractionEvidence>
-
- psidev.psi.mi.jami.xml.model.extension.datasource.XmlEvidenceStreamSource
-
- All Implemented Interfaces:
ErrorHandler
,InteractionEvidenceStream<InteractionEvidence>
,InteractionStream<InteractionEvidence>
,MIDataSource
,MIFileDataSource
,MIFileParserListener
,PsiXmlParserListener
,PsiXmlStreamSource<InteractionEvidence>
public class XmlEvidenceStreamSource extends AbstractPsiXmlStream<InteractionEvidence> implements InteractionEvidenceStream<InteractionEvidence>
Datasource for Psi-xml interaction evidence- Since:
17/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from class psidev.psi.mi.jami.xml.model.extension.datasource.AbstractPsiXmlStream
SCHEMA_FEATURE, VALIDATION_FEATURE
-
Fields inherited from interface psidev.psi.mi.jami.datasource.MIFileDataSource
FILE_URI_PREFIX, URL_PREFIX_REGEXP
-
-
Constructor Summary
Constructors Constructor Description XmlEvidenceStreamSource()
Constructor for XmlEvidenceStreamSource.XmlEvidenceStreamSource(File file)
Constructor for XmlEvidenceStreamSource.XmlEvidenceStreamSource(InputStream input)
Constructor for XmlEvidenceStreamSource.XmlEvidenceStreamSource(Reader reader)
Constructor for XmlEvidenceStreamSource.XmlEvidenceStreamSource(URL url)
Constructor for XmlEvidenceStreamSource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterator<InteractionEvidence>
createXmlIterator()
createXmlIterator.protected void
initialiseExpansionMethod(ComplexExpansionMethod<? extends Interaction,? extends BinaryInteraction> expansionMethod)
initialiseExpansionMethod.protected void
initialiseXmlParser(File file)
initialiseXmlParser.protected void
initialiseXmlParser(InputStream input)
initialiseXmlParser.protected void
initialiseXmlParser(Reader reader)
initialiseXmlParser.protected void
initialiseXmlParser(URL url)
initialiseXmlParser.-
Methods inherited from class psidev.psi.mi.jami.xml.model.extension.datasource.AbstractPsiXmlStream
close, error, fatalError, getElementCache, getFileParserListener, getInteractionsIterator, getInteractorFactory, getParser, initialiseContext, isInitialised, onAliasWithoutName, onAnnotationWithoutTopic, onInteractionWithoutParticipants, onInvalidOrganismTaxid, onInvalidPosition, onInvalidRange, onInvalidStoichiometry, onInvalidSyntax, onMissingChecksumMethod, onMissingChecksumValue, onMissingConfidenceType, onMissingConfidenceValue, onMissingCvTermName, onMissingInteractorName, onMissingParameterType, onMissingParameterValue, onParticipantWithoutInteractor, onSeveralExperimentalRolesFound, onSeveralExperimentsFound, onSeveralExpressedInOrganismFound, onSeveralHostOrganismFound, onSyntaxWarning, onUnresolvedReference, onXrefWithoutDatabase, onXrefWithoutId, reInit, reset, setFileParserListener, setInteractorFactory, setMIFileParserListener, setParser, setXmlFileParserListener, validateSyntax, validateSyntax, warning
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.datasource.InteractionStream
getInteractionsIterator
-
Methods inherited from interface psidev.psi.mi.jami.datasource.MIDataSource
close, initialiseContext, reset
-
-
-
-
Constructor Detail
-
XmlEvidenceStreamSource
public XmlEvidenceStreamSource()
Constructor for XmlEvidenceStreamSource.
-
XmlEvidenceStreamSource
public XmlEvidenceStreamSource(File file)
Constructor for XmlEvidenceStreamSource.
- Parameters:
file
- aFile
object.
-
XmlEvidenceStreamSource
public XmlEvidenceStreamSource(InputStream input)
Constructor for XmlEvidenceStreamSource.
- Parameters:
input
- aInputStream
object.
-
XmlEvidenceStreamSource
public XmlEvidenceStreamSource(Reader reader)
Constructor for XmlEvidenceStreamSource.
- Parameters:
reader
- aReader
object.
-
-
Method Detail
-
initialiseXmlParser
protected void initialiseXmlParser(Reader reader)
initialiseXmlParser.
- Specified by:
initialiseXmlParser
in classAbstractPsiXmlStream<InteractionEvidence>
- Parameters:
reader
- aReader
object.
-
initialiseXmlParser
protected void initialiseXmlParser(File file)
initialiseXmlParser.
- Specified by:
initialiseXmlParser
in classAbstractPsiXmlStream<InteractionEvidence>
- Parameters:
file
- aFile
object.
-
initialiseXmlParser
protected void initialiseXmlParser(InputStream input)
initialiseXmlParser.
- Specified by:
initialiseXmlParser
in classAbstractPsiXmlStream<InteractionEvidence>
- Parameters:
input
- aInputStream
object.
-
initialiseXmlParser
protected void initialiseXmlParser(URL url)
initialiseXmlParser.
- Specified by:
initialiseXmlParser
in classAbstractPsiXmlStream<InteractionEvidence>
- Parameters:
url
- aURL
object.
-
initialiseExpansionMethod
protected void initialiseExpansionMethod(ComplexExpansionMethod<? extends Interaction,? extends BinaryInteraction> expansionMethod)
initialiseExpansionMethod.
- Specified by:
initialiseExpansionMethod
in classAbstractPsiXmlStream<InteractionEvidence>
- Parameters:
expansionMethod
- aComplexExpansionMethod
object.
-
createXmlIterator
protected Iterator<InteractionEvidence> createXmlIterator()
createXmlIterator.
- Specified by:
createXmlIterator
in classAbstractPsiXmlStream<InteractionEvidence>
- Returns:
- a
Iterator
object.
-
-