Class AbstractExpandedXmlWriter<T extends Interaction>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter<T>
-
- psidev.psi.mi.jami.xml.io.writer.expanded.AbstractExpandedXmlWriter<T>
-
- All Implemented Interfaces:
InteractionWriter<T>
- Direct Known Subclasses:
AbstractExpandedXmlMixWriter
,ExpandedXmlBinaryEvidenceWriter
,ExpandedXmlBinaryEvidenceWriter
,ExpandedXmlComplexWriter
,ExpandedXmlComplexWriter
,ExpandedXmlEvidenceWriter
,ExpandedXmlEvidenceWriter
,ExpandedXmlModelledBinaryWriter
,ExpandedXmlModelledBinaryWriter
,ExpandedXmlModelledWriter
,ExpandedXmlModelledWriter
,ExpandedXmlNamedBinaryEvidenceWriter
,ExpandedXmlNamedEvidenceWriter
,ExpandedXmlNamedModelledBinaryWriter
,ExpandedXmlNamedModelledWriter
,LightExpandedXmlBinaryWriter
,LightExpandedXmlBinaryWriter
,LightExpandedXmlNamedBinaryWriter
,LightExpandedXmlNamedWriter
,LightExpandedXmlWriter
,LightExpandedXmlWriter
public abstract class AbstractExpandedXmlWriter<T extends Interaction> extends AbstractXmlWriter<T>
Abstract class for expanded PSI-xml writers- Since:
18/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type)
Constructor for AbstractExpandedXmlWriter.AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, File file)
Constructor for AbstractExpandedXmlWriter.AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, OutputStream output)
Constructor for AbstractExpandedXmlWriter.AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, Writer writer)
Constructor for AbstractExpandedXmlWriter.protected
AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, XMLStreamWriter streamWriter, PsiXmlObjectCache elementCache)
Constructor for AbstractExpandedXmlWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<T>
getInteractionType()
getInteractionType.protected void
initialiseDefaultElementCache()
initialiseDefaultElementCache.protected void
initialiseOptionalWriters(PsiXmlExperimentWriter experimentWriter, PsiXmlElementWriter<String> availabilityWriter, PsiXmlElementWriter<Interactor> interactorWriter)
initialiseOptionalWriters.protected void
writeComplex(ModelledInteraction modelled)
writeComplex.protected void
writeInteraction()
writeInteraction.protected void
writeStartEntryContent()
writeStartEntryContent.-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter
close, end, extractSourceFromInteraction, flush, getComplexWriter, getCurrentInteraction, getCurrentSource, getElementCache, getInteractionsIterator, getInteractionWriter, getProcessedInteractions, getStreamWriter, getSubWritersFactory, getVersion, initialiseContext, initialiseDefaultInteractionSet, initialiseDefaultSource, initialiseSubWriters, initialiseSubWriters, isStarted, newXmlSource, reset, setAnnotationsWriter, setComplexWriter, setCurrentInteraction, setCurrentSource, setDefaultReleaseDate, setDefaultSource, setElementCache, setEntryAnnotations, setInteractionSet, setInteractionsIterator, setInteractionWriter, setSourceWriter, setStarted, setSubWritersFactory, setVersion, setWriteComplexesAsInteractors, start, write, write, write, writeComplexesAsInteractors, writeEndEntry, writeEndEntryContent, writeEndInteractionList, writeEntryAttributes, writeEntrySetAttributes, writeInteractionListContent, writeSource, writeStartEntry, writeStartInteractionList, writeSubComplexInEntry
-
-
-
-
Constructor Detail
-
AbstractExpandedXmlWriter
public AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type)
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version
- aPsiXmlVersion
object.type
- aClass
object.
-
AbstractExpandedXmlWriter
public AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, File file) throws IOException, XMLStreamException
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version
- aPsiXmlVersion
object.type
- aClass
object.file
- aFile
object.- Throws:
IOException
- if any.XMLStreamException
- if any.
-
AbstractExpandedXmlWriter
public AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, OutputStream output) throws XMLStreamException
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version
- aPsiXmlVersion
object.type
- aClass
object.output
- aOutputStream
object.- Throws:
XMLStreamException
- if any.
-
AbstractExpandedXmlWriter
public AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, Writer writer) throws XMLStreamException
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version
- aPsiXmlVersion
object.type
- aClass
object.writer
- aWriter
object.- Throws:
XMLStreamException
- if any.
-
AbstractExpandedXmlWriter
protected AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, XMLStreamWriter streamWriter, PsiXmlObjectCache elementCache)
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version
- aPsiXmlVersion
object.type
- aClass
object.streamWriter
- aXMLStreamWriter
object.elementCache
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
initialiseOptionalWriters
protected void initialiseOptionalWriters(PsiXmlExperimentWriter experimentWriter, PsiXmlElementWriter<String> availabilityWriter, PsiXmlElementWriter<Interactor> interactorWriter)
initialiseOptionalWriters.
- Specified by:
initialiseOptionalWriters
in classAbstractXmlWriter<T extends Interaction>
- Parameters:
experimentWriter
- aPsiXmlExperimentWriter
object.availabilityWriter
- aPsiXmlElementWriter
object.interactorWriter
- aPsiXmlElementWriter
object.
-
initialiseDefaultElementCache
protected void initialiseDefaultElementCache()
initialiseDefaultElementCache.
- Specified by:
initialiseDefaultElementCache
in classAbstractXmlWriter<T extends Interaction>
-
writeStartEntryContent
protected void writeStartEntryContent() throws XMLStreamException
writeStartEntryContent.
- Specified by:
writeStartEntryContent
in classAbstractXmlWriter<T extends Interaction>
- Throws:
XMLStreamException
- if any.
-
getInteractionType
protected Class<T> getInteractionType()
getInteractionType.
- Returns:
- a
Class
object.
-
writeInteraction
protected void writeInteraction() throws XMLStreamException
writeInteraction.
- Overrides:
writeInteraction
in classAbstractXmlWriter<T extends Interaction>
- Throws:
XMLStreamException
- if any.
-
writeComplex
protected void writeComplex(ModelledInteraction modelled)
writeComplex.
- Overrides:
writeComplex
in classAbstractXmlWriter<T extends Interaction>
- Parameters:
modelled
- aModelledInteraction
object.
-
-