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.protectedAbstractExpandedXmlWriter(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 voidinitialiseDefaultElementCache()initialiseDefaultElementCache.protected voidinitialiseOptionalWriters(PsiXmlExperimentWriter experimentWriter, PsiXmlElementWriter<String> availabilityWriter, PsiXmlElementWriter<Interactor> interactorWriter)initialiseOptionalWriters.protected voidwriteComplex(ModelledInteraction modelled)writeComplex.protected voidwriteInteraction()writeInteraction.protected voidwriteStartEntryContent()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- aPsiXmlVersionobject.type- aClassobject.
-
AbstractExpandedXmlWriter
public AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, File file) throws IOException, XMLStreamException
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version- aPsiXmlVersionobject.type- aClassobject.file- aFileobject.- Throws:
IOException- if any.XMLStreamException- if any.
-
AbstractExpandedXmlWriter
public AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, OutputStream output) throws XMLStreamException
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version- aPsiXmlVersionobject.type- aClassobject.output- aOutputStreamobject.- Throws:
XMLStreamException- if any.
-
AbstractExpandedXmlWriter
public AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, Writer writer) throws XMLStreamException
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version- aPsiXmlVersionobject.type- aClassobject.writer- aWriterobject.- Throws:
XMLStreamException- if any.
-
AbstractExpandedXmlWriter
protected AbstractExpandedXmlWriter(PsiXmlVersion version, Class<T> type, XMLStreamWriter streamWriter, PsiXmlObjectCache elementCache)
Constructor for AbstractExpandedXmlWriter.
- Parameters:
version- aPsiXmlVersionobject.type- aClassobject.streamWriter- aXMLStreamWriterobject.elementCache- aPsiXmlObjectCacheobject.
-
-
Method Detail
-
initialiseOptionalWriters
protected void initialiseOptionalWriters(PsiXmlExperimentWriter experimentWriter, PsiXmlElementWriter<String> availabilityWriter, PsiXmlElementWriter<Interactor> interactorWriter)
initialiseOptionalWriters.
- Specified by:
initialiseOptionalWritersin classAbstractXmlWriter<T extends Interaction>- Parameters:
experimentWriter- aPsiXmlExperimentWriterobject.availabilityWriter- aPsiXmlElementWriterobject.interactorWriter- aPsiXmlElementWriterobject.
-
initialiseDefaultElementCache
protected void initialiseDefaultElementCache()
initialiseDefaultElementCache.
- Specified by:
initialiseDefaultElementCachein classAbstractXmlWriter<T extends Interaction>
-
writeStartEntryContent
protected void writeStartEntryContent() throws XMLStreamExceptionwriteStartEntryContent.
- Specified by:
writeStartEntryContentin classAbstractXmlWriter<T extends Interaction>- Throws:
XMLStreamException- if any.
-
getInteractionType
protected Class<T> getInteractionType()
getInteractionType.
- Returns:
- a
Classobject.
-
writeInteraction
protected void writeInteraction() throws XMLStreamExceptionwriteInteraction.
- Overrides:
writeInteractionin classAbstractXmlWriter<T extends Interaction>- Throws:
XMLStreamException- if any.
-
writeComplex
protected void writeComplex(ModelledInteraction modelled)
writeComplex.
- Overrides:
writeComplexin classAbstractXmlWriter<T extends Interaction>- Parameters:
modelled- aModelledInteractionobject.
-
-