Class LightCompactXmlNamedWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter<T>
-
- psidev.psi.mi.jami.xml.io.writer.compact.AbstractCompactXmlWriter<Interaction>
-
- psidev.psi.mi.jami.xml.io.writer.compact.LightCompactXmlNamedWriter
-
- All Implemented Interfaces:
InteractionWriter<Interaction>
public class LightCompactXmlNamedWriter extends AbstractCompactXmlWriter<Interaction>
Compact PSI-XML writer for light interactions (no experimental evidences) having names. Participants, experiments and features are also assumed to have expanded names- Since:
19/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description LightCompactXmlNamedWriter(PsiXmlVersion version)Constructor for LightCompactXmlNamedWriter.LightCompactXmlNamedWriter(PsiXmlVersion version, File file)Constructor for LightCompactXmlNamedWriter.LightCompactXmlNamedWriter(PsiXmlVersion version, OutputStream output)Constructor for LightCompactXmlNamedWriter.LightCompactXmlNamedWriter(PsiXmlVersion version, Writer writer)Constructor for LightCompactXmlNamedWriter.LightCompactXmlNamedWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, PsiXmlObjectCache cache)Constructor for LightCompactXmlNamedWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitialiseSubWriters()initialiseSubWriters.protected voidregisterAvailabilities(Interaction interaction)registerAvailabilities.protected voidregisterExperiment(Interaction interaction)registerExperiment.-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.compact.AbstractCompactXmlWriter
close, getAvailabilities, getAvailabilityWriter, getExperiments, getExperimentWriter, getInteractionType, getInteractors, getInteractorWriter, initialiseContext, initialiseDefaultAvailabilitySet, initialiseDefaultElementCache, initialiseDefaultExperimentSet, initialiseDefaultInteractorSet, initialiseOptionalWriters, registerAllInteractionsProperties, registerAllInteractors, registerAllInteractorsAndExperimentsFrom, registerInteractionProperties, registerParticipantInteractor, registerParticipantPoolInteractor, reset, setAvailabilitySet, setAvailabilityWriter, setExperimentSet, setExperimentWriter, setInteractorSet, setInteractorWriter, writeStartEntryContent
-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter
end, extractSourceFromInteraction, flush, getComplexWriter, getCurrentInteraction, getCurrentSource, getElementCache, getInteractionsIterator, getInteractionWriter, getProcessedInteractions, getStreamWriter, getSubWritersFactory, getVersion, initialiseDefaultInteractionSet, initialiseDefaultSource, initialiseSubWriters, isStarted, newXmlSource, setAnnotationsWriter, setComplexWriter, setCurrentInteraction, setCurrentSource, setDefaultReleaseDate, setDefaultSource, setElementCache, setEntryAnnotations, setInteractionSet, setInteractionsIterator, setInteractionWriter, setSourceWriter, setStarted, setSubWritersFactory, setVersion, setWriteComplexesAsInteractors, start, write, write, write, writeComplex, writeComplexesAsInteractors, writeEndEntry, writeEndEntryContent, writeEndInteractionList, writeEntryAttributes, writeEntrySetAttributes, writeInteraction, writeInteractionListContent, writeSource, writeStartEntry, writeStartInteractionList, writeSubComplexInEntry
-
-
-
-
Constructor Detail
-
LightCompactXmlNamedWriter
public LightCompactXmlNamedWriter(PsiXmlVersion version)
Constructor for LightCompactXmlNamedWriter.
- Parameters:
version- aPsiXmlVersionobject.
-
LightCompactXmlNamedWriter
public LightCompactXmlNamedWriter(PsiXmlVersion version, File file) throws IOException, XMLStreamException
Constructor for LightCompactXmlNamedWriter.
- Parameters:
version- aPsiXmlVersionobject.file- aFileobject.- Throws:
IOException- if any.XMLStreamException- if any.
-
LightCompactXmlNamedWriter
public LightCompactXmlNamedWriter(PsiXmlVersion version, OutputStream output) throws XMLStreamException
Constructor for LightCompactXmlNamedWriter.
- Parameters:
version- aPsiXmlVersionobject.output- aOutputStreamobject.- Throws:
XMLStreamException- if any.
-
LightCompactXmlNamedWriter
public LightCompactXmlNamedWriter(PsiXmlVersion version, Writer writer) throws XMLStreamException
Constructor for LightCompactXmlNamedWriter.
- Parameters:
version- aPsiXmlVersionobject.writer- aWriterobject.- Throws:
XMLStreamException- if any.
-
LightCompactXmlNamedWriter
public LightCompactXmlNamedWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, PsiXmlObjectCache cache)
Constructor for LightCompactXmlNamedWriter.
- Parameters:
version- aPsiXmlVersionobject.streamWriter- aXMLStreamWriterobject.cache- aPsiXmlObjectCacheobject.
-
-
Method Detail
-
registerAvailabilities
protected void registerAvailabilities(Interaction interaction)
registerAvailabilities.
- Specified by:
registerAvailabilitiesin classAbstractCompactXmlWriter<Interaction>- Parameters:
interaction- a T object.
-
registerExperiment
protected void registerExperiment(Interaction interaction)
registerExperiment.
- Specified by:
registerExperimentin classAbstractCompactXmlWriter<Interaction>- Parameters:
interaction- a T object.
-
initialiseSubWriters
protected void initialiseSubWriters()
initialiseSubWriters.
- Specified by:
initialiseSubWritersin classAbstractXmlWriter<Interaction>
-
-