Package psidev.psi.mi.jami.html
Class MIHtmlWriter
- java.lang.Object
-
- psidev.psi.mi.jami.html.AbstractMIHtmlWriter<Interaction,Participant,Feature>
-
- psidev.psi.mi.jami.html.MIHtmlWriter
-
- All Implemented Interfaces:
InteractionWriter<Interaction>
public class MIHtmlWriter extends AbstractMIHtmlWriter<Interaction,Participant,Feature>
MI writer for a mix of interactions- Since:
09/12/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MIHtmlWriter()Constructor for MIHtmlWriter.MIHtmlWriter(File file)Constructor for MIHtmlWriter.MIHtmlWriter(OutputStream output)Constructor for MIHtmlWriter.MIHtmlWriter(Writer writer)Constructor for MIHtmlWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()closevoidinitialiseContext(Map<String,Object> options)Initialise the context of the InteractionWriter given a map of optionsvoidreset()resetvoidwrite(Collection<? extends Interaction> interactions)writevoidwrite(Iterator<? extends Interaction> interactions)Writes Interaction objects using iteratorvoidwrite(Interaction interaction)writeprotected voidwriteConfidences(Interaction interaction)writeConfidencesprotected voidwriteConfidences(Participant participant)writeConfidencesprotected voidwriteCooperativeEffects(Interaction interaction)writeCooperativeEffectsprotected voidwriteDetectionMethods(Feature feature)writeDetectionMethodsprotected voidwriteExperiment(Interaction interaction)writeExperimentprotected voidwriteExperimentalPreparations(Participant participant)writeExperimentalPreparationsprotected voidwriteExperimentalRole(Participant participant)writeExperimentalRoleprotected voidwriteExpressedInOrganism(Participant participant)writeExpressedInOrganismprotected voidwriteGeneralProperties(Interaction interaction)writeGeneralPropertiesprotected voidwriteParameters(Interaction interaction)writeParametersprotected voidwriteParameters(Participant participant)writeParametersprotected voidwriteParticipantIdentificationMethods(Participant participant)writeParticipantIdentificationMethods-
Methods inherited from class psidev.psi.mi.jami.html.AbstractMIHtmlWriter
end, flush, getComplexesToWrite, getComplexWriter, getProcessedObjects, getWriter, setWriteHeader, start, writeCvTerm, writeEndDocument, writeFeature, writeHeader, writeHtmlStyle, writeInteractionAnchor, writeInteractionList, writeInteractor, writeModelledInteraction, writeOrganism, writeParticipant, writeProperty, writePropertyWithQualifier, writerEndBody, writerStartBody, writeStartDocument, writeSubTitle, writeTag
-
-
-
-
Constructor Detail
-
MIHtmlWriter
public MIHtmlWriter()
Constructor for MIHtmlWriter.
-
MIHtmlWriter
public MIHtmlWriter(File file) throws IOException
Constructor for MIHtmlWriter.
- Parameters:
file- aFileobject.- Throws:
IOException- if any.
-
MIHtmlWriter
public MIHtmlWriter(OutputStream output)
Constructor for MIHtmlWriter.
- Parameters:
output- aOutputStreamobject.
-
-
Method Detail
-
close
public void close() throws MIIOExceptionclose
- Specified by:
closein interfaceInteractionWriter<Interaction>- Overrides:
closein classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Throws:
MIIOException- if any.
-
reset
public void reset() throws MIIOExceptionreset
- Specified by:
resetin interfaceInteractionWriter<Interaction>- Overrides:
resetin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Throws:
MIIOException- if any.
-
initialiseContext
public void initialiseContext(Map<String,Object> options)
Initialise the context of the InteractionWriter given a map of options- Specified by:
initialiseContextin interfaceInteractionWriter<Interaction>- Overrides:
initialiseContextin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
options- : the options given by the user
-
write
public void write(Iterator<? extends Interaction> interactions) throws MIIOException
Writes Interaction objects using iterator- Specified by:
writein interfaceInteractionWriter<Interaction>- Overrides:
writein classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
interactions- : the iterator of interactions to write- Throws:
MIIOException- : if cannot write
-
write
public void write(Collection<? extends Interaction> interactions) throws MIIOException
write
- Specified by:
writein interfaceInteractionWriter<Interaction>- Overrides:
writein classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
interactions- aCollectionobject.- Throws:
MIIOException- if any.
-
write
public void write(Interaction interaction) throws MIIOException
write
- Specified by:
writein interfaceInteractionWriter<Interaction>- Overrides:
writein classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
interaction- a T object.- Throws:
MIIOException- if any.
-
writeCooperativeEffects
protected void writeCooperativeEffects(Interaction interaction)
writeCooperativeEffects
- Specified by:
writeCooperativeEffectsin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
interaction- a T object.
-
writeConfidences
protected void writeConfidences(Interaction interaction) throws IOException
writeConfidences
- Specified by:
writeConfidencesin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
interaction- a T object.- Throws:
IOException- if any.
-
writeParameters
protected void writeParameters(Interaction interaction) throws IOException
writeParameters
- Specified by:
writeParametersin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
interaction- a T object.- Throws:
IOException- if any.
-
writeDetectionMethods
protected void writeDetectionMethods(Feature feature) throws IOException
writeDetectionMethods
- Specified by:
writeDetectionMethodsin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
feature- a F object.- Throws:
IOException- if any.
-
writeGeneralProperties
protected void writeGeneralProperties(Interaction interaction) throws IOException
writeGeneralProperties
- Specified by:
writeGeneralPropertiesin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
interaction- a T object.- Throws:
IOException- if any.
-
writeExperiment
protected void writeExperiment(Interaction interaction) throws IOException
writeExperiment
- Specified by:
writeExperimentin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
interaction- a T object.- Throws:
IOException- if any.
-
writeConfidences
protected void writeConfidences(Participant participant) throws IOException
writeConfidences
- Specified by:
writeConfidencesin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
participant- a P object.- Throws:
IOException- if any.
-
writeParameters
protected void writeParameters(Participant participant) throws IOException
writeParameters
- Specified by:
writeParametersin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
participant- a P object.- Throws:
IOException- if any.
-
writeExperimentalPreparations
protected void writeExperimentalPreparations(Participant participant) throws IOException
writeExperimentalPreparations
- Specified by:
writeExperimentalPreparationsin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
participant- a P object.- Throws:
IOException- if any.
-
writeExpressedInOrganism
protected void writeExpressedInOrganism(Participant participant) throws IOException
writeExpressedInOrganism
- Specified by:
writeExpressedInOrganismin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
participant- a P object.- Throws:
IOException- if any.
-
writeExperimentalRole
protected void writeExperimentalRole(Participant participant) throws IOException
writeExperimentalRole
- Specified by:
writeExperimentalRolein classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
participant- a P object.- Throws:
IOException- if any.
-
writeParticipantIdentificationMethods
protected void writeParticipantIdentificationMethods(Participant participant) throws IOException
writeParticipantIdentificationMethods
- Specified by:
writeParticipantIdentificationMethodsin classAbstractMIHtmlWriter<Interaction,Participant,Feature>- Parameters:
participant- a P object.- Throws:
IOException- if any.
-
-