Class CompactXmlNamedModelledBinaryWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter<T>
-
- psidev.psi.mi.jami.xml.io.writer.compact.AbstractCompactXmlWriter<ModelledBinaryInteraction>
-
- psidev.psi.mi.jami.xml.io.writer.compact.CompactXmlNamedModelledBinaryWriter
-
- All Implemented Interfaces:
InteractionWriter<ModelledBinaryInteraction>
public class CompactXmlNamedModelledBinaryWriter extends AbstractCompactXmlWriter<ModelledBinaryInteraction>
Compact PSI-XML writer for named modelled binary interactions (no experimental evidences). Participants, features, experiments also have expanded names- Since:
19/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version)Constructor for CompactXmlNamedModelledBinaryWriter.CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version, File file)Constructor for CompactXmlNamedModelledBinaryWriter.CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version, OutputStream output)Constructor for CompactXmlNamedModelledBinaryWriter.CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version, Writer writer)Constructor for CompactXmlNamedModelledBinaryWriter.CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, PsiXmlObjectCache cache)Constructor for CompactXmlNamedModelledBinaryWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SourceextractSourceFromInteraction()extractSourceFromInteraction.protected voidinitialiseSubWriters()initialiseSubWriters.protected voidregisterAvailabilities(ModelledBinaryInteraction interaction)registerAvailabilities.protected voidregisterExperiment(ModelledBinaryInteraction interaction)registerExperiment.protected voidregisterInteractionProperties()registerInteractionProperties.-
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, registerParticipantInteractor, registerParticipantPoolInteractor, reset, setAvailabilitySet, setAvailabilityWriter, setExperimentSet, setExperimentWriter, setInteractorSet, setInteractorWriter, writeStartEntryContent
-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter
end, 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
-
CompactXmlNamedModelledBinaryWriter
public CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version)
Constructor for CompactXmlNamedModelledBinaryWriter.
- Parameters:
version- aPsiXmlVersionobject.
-
CompactXmlNamedModelledBinaryWriter
public CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version, File file) throws IOException, XMLStreamException
Constructor for CompactXmlNamedModelledBinaryWriter.
- Parameters:
version- aPsiXmlVersionobject.file- aFileobject.- Throws:
IOException- if any.XMLStreamException- if any.
-
CompactXmlNamedModelledBinaryWriter
public CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version, OutputStream output) throws XMLStreamException
Constructor for CompactXmlNamedModelledBinaryWriter.
- Parameters:
version- aPsiXmlVersionobject.output- aOutputStreamobject.- Throws:
XMLStreamException- if any.
-
CompactXmlNamedModelledBinaryWriter
public CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version, Writer writer) throws XMLStreamException
Constructor for CompactXmlNamedModelledBinaryWriter.
- Parameters:
version- aPsiXmlVersionobject.writer- aWriterobject.- Throws:
XMLStreamException- if any.
-
CompactXmlNamedModelledBinaryWriter
public CompactXmlNamedModelledBinaryWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, PsiXmlObjectCache cache)
Constructor for CompactXmlNamedModelledBinaryWriter.
- Parameters:
version- aPsiXmlVersionobject.streamWriter- aXMLStreamWriterobject.cache- aPsiXmlObjectCacheobject.
-
-
Method Detail
-
registerAvailabilities
protected void registerAvailabilities(ModelledBinaryInteraction interaction)
registerAvailabilities.
- Specified by:
registerAvailabilitiesin classAbstractCompactXmlWriter<ModelledBinaryInteraction>- Parameters:
interaction- a T object.
-
registerInteractionProperties
protected void registerInteractionProperties()
registerInteractionProperties.
- Overrides:
registerInteractionPropertiesin classAbstractCompactXmlWriter<ModelledBinaryInteraction>
-
registerExperiment
protected void registerExperiment(ModelledBinaryInteraction interaction)
registerExperiment.
- Specified by:
registerExperimentin classAbstractCompactXmlWriter<ModelledBinaryInteraction>- Parameters:
interaction- a T object.
-
extractSourceFromInteraction
protected Source extractSourceFromInteraction()
extractSourceFromInteraction.
- Overrides:
extractSourceFromInteractionin classAbstractXmlWriter<ModelledBinaryInteraction>- Returns:
- a
Sourceobject.
-
initialiseSubWriters
protected void initialiseSubWriters()
initialiseSubWriters.
- Specified by:
initialiseSubWritersin classAbstractXmlWriter<ModelledBinaryInteraction>
-
-