Class PsiXmlElementWriterFactory
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.PsiXmlElementWriterFactory
-
public class PsiXmlElementWriterFactory extends Object
Factory to initialise PSI-XML element writers depending on the version and the interaction object category- Since:
23/04/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
-
-
-
Method Detail
-
getInstance
public static PsiXmlElementWriterFactory getInstance()
Getter for the field
instance
.- Returns:
- a
PsiXmlElementWriterFactory
object.
-
createInteractionWritersFor
public static PsiXmlInteractionWriter[] createInteractionWritersFor(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlType xmlType, InteractionCategory interactionCategory, ComplexType complexType, boolean extended, boolean named, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlElementWriter[] confidenceWriters, PsiXmlElementWriter<Checksum> checksumWriter, PsiXmlVariableNameWriter<CvTerm> interactionTypeWriter, PsiXmlVariableNameWriter<CvTerm> openCvWriter, PsiXmlExperimentWriter experimentWriter, PsiXmlElementWriter<String> availabilityWriter, PsiXmlElementWriter<Interactor> interactorWriter, PsiXmlPublicationWriter publicationWriter)
createInteractionWritersFor.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.xmlType
- aPsiXmlType
object.interactionCategory
- aInteractionCategory
object.complexType
- aComplexType
object.extended
- a boolean.named
- a boolean.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.confidenceWriters
- an array ofPsiXmlElementWriter
objects.checksumWriter
- aPsiXmlElementWriter
object.interactionTypeWriter
- aPsiXmlVariableNameWriter
object.openCvWriter
- aPsiXmlVariableNameWriter
object.experimentWriter
- aPsiXmlExperimentWriter
object.availabilityWriter
- aPsiXmlElementWriter
object.interactorWriter
- aPsiXmlElementWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.- Returns:
- an array of
PsiXmlInteractionWriter
objects.
-
createDefaultPsiXmlInteractionWriters
public static PsiXmlInteractionWriter[] createDefaultPsiXmlInteractionWriters(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlType xmlType, InteractionCategory interactionCategory, ComplexType complexType, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlElementWriter[] confidenceWriters, PsiXmlElementWriter<Checksum> checksumWriter, PsiXmlVariableNameWriter<CvTerm> interactionTypeWriter, PsiXmlExperimentWriter experimentWriter, PsiXmlElementWriter<String> availabilityWriter, PsiXmlParameterWriter[] parameterWriters, PsiXmlParticipantWriter[] participantWriters, PsiXmlElementWriter inferredInteractionWriter, PsiXmlPublicationWriter publicationWriter, PsiXmlVariableNameWriter<CvTerm> openCvWriter)
createDefaultPsiXmlInteractionWriters.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.xmlType
- aPsiXmlType
object.interactionCategory
- aInteractionCategory
object.complexType
- aComplexType
object.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.confidenceWriters
- an array ofPsiXmlElementWriter
objects.checksumWriter
- aPsiXmlElementWriter
object.interactionTypeWriter
- aPsiXmlVariableNameWriter
object.experimentWriter
- aPsiXmlExperimentWriter
object.availabilityWriter
- aPsiXmlElementWriter
object.parameterWriters
- an array ofPsiXmlParameterWriter
objects.participantWriters
- an array ofPsiXmlParticipantWriter
objects.inferredInteractionWriter
- aPsiXmlElementWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.openCvWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- an array of
PsiXmlInteractionWriter
objects.
-
createNamedPsiXmlInteractionWriters
public static PsiXmlInteractionWriter[] createNamedPsiXmlInteractionWriters(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlType xmlType, InteractionCategory interactionCategory, ComplexType complexType, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlElementWriter[] confidenceWriters, PsiXmlElementWriter<Checksum> checksumWriter, PsiXmlVariableNameWriter<CvTerm> interactionTypeWriter, PsiXmlExperimentWriter experimentWriter, PsiXmlElementWriter<String> availabilityWriter, PsiXmlParameterWriter[] parameterWriters, PsiXmlParticipantWriter[] participantWriters, PsiXmlElementWriter inferredInteractionWriter, PsiXmlPublicationWriter publicationWriter, PsiXmlVariableNameWriter<CvTerm> openCvWriter)
createNamedPsiXmlInteractionWriters.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.xmlType
- aPsiXmlType
object.interactionCategory
- aInteractionCategory
object.complexType
- aComplexType
object.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.confidenceWriters
- an array ofPsiXmlElementWriter
objects.checksumWriter
- aPsiXmlElementWriter
object.interactionTypeWriter
- aPsiXmlVariableNameWriter
object.experimentWriter
- aPsiXmlExperimentWriter
object.availabilityWriter
- aPsiXmlElementWriter
object.parameterWriters
- an array ofPsiXmlParameterWriter
objects.participantWriters
- an array ofPsiXmlParticipantWriter
objects.inferredInteractionWriter
- aPsiXmlElementWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.openCvWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- an array of
PsiXmlInteractionWriter
objects.
-
createExtendedPsiXmlInteractionWriters
public static PsiXmlInteractionWriter[] createExtendedPsiXmlInteractionWriters(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlType xmlType, InteractionCategory interactionCategory, ComplexType complexType, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlElementWriter[] confidenceWriters, PsiXmlElementWriter<Checksum> checksumWriter, PsiXmlVariableNameWriter<CvTerm> interactionTypeWriter, PsiXmlExperimentWriter experimentWriter, PsiXmlElementWriter<String> availabilityWriter, PsiXmlParameterWriter[] parameterWriters, PsiXmlParticipantWriter[] participantWriters, PsiXmlElementWriter inferredInteractionWriter, PsiXmlPublicationWriter publicationWriter, PsiXmlVariableNameWriter<CvTerm> openCvWriter)
createExtendedPsiXmlInteractionWriters.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.xmlType
- aPsiXmlType
object.interactionCategory
- aInteractionCategory
object.complexType
- aComplexType
object.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.confidenceWriters
- an array ofPsiXmlElementWriter
objects.checksumWriter
- aPsiXmlElementWriter
object.interactionTypeWriter
- aPsiXmlVariableNameWriter
object.experimentWriter
- aPsiXmlExperimentWriter
object.availabilityWriter
- aPsiXmlElementWriter
object.parameterWriters
- an array ofPsiXmlParameterWriter
objects.participantWriters
- an array ofPsiXmlParticipantWriter
objects.inferredInteractionWriter
- aPsiXmlElementWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.openCvWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- an array of
PsiXmlInteractionWriter
objects.
-
createAliasWriter
public static PsiXmlElementWriter<Alias> createAliasWriter(XMLStreamWriter streamWriter)
createAliasWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createAnnotationWriter
public static PsiXmlElementWriter<Annotation> createAnnotationWriter(XMLStreamWriter streamWriter)
createAnnotationWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createXrefWriter
public static PsiXmlXrefWriter createXrefWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlElementWriter<Annotation> annotationWriter)
createXrefWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.annotationWriter
- aPsiXmlElementWriter
object.- Returns:
- a
PsiXmlXrefWriter
object.
-
createPublicationWriter
public static PsiXmlPublicationWriter createPublicationWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlVersion version)
createPublicationWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.version
- aPsiXmlVersion
object.- Returns:
- a
PsiXmlPublicationWriter
object.
-
createOpenCvWriter
public static PsiXmlVariableNameWriter<CvTerm> createOpenCvWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter)
createOpenCvWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
createExperimentalCvWriter
public static PsiXmlVariableNameWriter<CvTerm> createExperimentalCvWriter(XMLStreamWriter streamWriter, PsiXmlVersion version, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlXrefWriter primaryRefWriter)
createExperimentalCvWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.version
- aPsiXmlVersion
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.aliasWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
createCvWriter
public static PsiXmlVariableNameWriter<CvTerm> createCvWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlXrefWriter primaryRefWriter)
createCvWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.aliasWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
createHostOrganismWriter
public static PsiXmlElementWriter<Organism> createHostOrganismWriter(XMLStreamWriter streamWriter, PsiXmlVersion version, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> annotationWriter, PsiXmlXrefWriter xrefWriter, PsiXmlVariableNameWriter<CvTerm> openCvWriter)
createHostOrganismWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.version
- aPsiXmlVersion
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.aliasWriter
- aPsiXmlElementWriter
object.annotationWriter
- aPsiXmlElementWriter
object.xrefWriter
- aPsiXmlXrefWriter
object.openCvWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createOrganismWriter
public static PsiXmlElementWriter<Organism> createOrganismWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> annotationWriter, PsiXmlXrefWriter xrefWriter, PsiXmlVariableNameWriter<CvTerm> openCvWriter)
createOrganismWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.aliasWriter
- aPsiXmlElementWriter
object.annotationWriter
- aPsiXmlElementWriter
object.xrefWriter
- aPsiXmlXrefWriter
object.openCvWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createChecksumWriter
public static PsiXmlElementWriter<Checksum> createChecksumWriter(XMLStreamWriter streamWriter)
createChecksumWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createConfidenceWriters
public static PsiXmlElementWriter<Confidence>[] createConfidenceWriters(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlVariableNameWriter<CvTerm> confidenceTypeWriter, PsiXmlPublicationWriter publicationWriter)
createConfidenceWriters.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.confidenceTypeWriter
- aPsiXmlVariableNameWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.- Returns:
- an array of
PsiXmlElementWriter
objects.
-
createResultingSequenceWriter
public static PsiXmlElementWriter<ResultingSequence> createResultingSequenceWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlXrefWriter refWriter)
createResultingSequenceWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.refWriter
- aPsiXmlXrefWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createCooperativityEvidenceWriter
public static PsiXmlElementWriter<CooperativityEvidence> createCooperativityEvidenceWriter(XMLStreamWriter streamWriter, boolean expanded, PsiXmlVariableNameWriter<CvTerm> cvWriter, PsiXmlPublicationWriter publicationWriter)
createCooperativityEvidenceWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.expanded
- a boolean.cvWriter
- aPsiXmlVariableNameWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createAllosteryWriter
public static PsiXmlElementWriter<Allostery> createAllosteryWriter(XMLStreamWriter streamWriter, boolean expanded, PsiXmlObjectCache objectIndex, PsiXmlVariableNameWriter<CvTerm> cvWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlPublicationWriter publicationWriter)
createAllosteryWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.expanded
- a boolean.objectIndex
- aPsiXmlObjectCache
object.cvWriter
- aPsiXmlVariableNameWriter
object.attributeWriter
- aPsiXmlElementWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createPreassemblyWriter
public static PsiXmlElementWriter<Preassembly> createPreassemblyWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVariableNameWriter<CvTerm> cvWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlPublicationWriter publicationWriter)
createPreassemblyWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.cvWriter
- aPsiXmlVariableNameWriter
object.attributeWriter
- aPsiXmlElementWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createCausalRelationshipWriter
public static PsiXmlCausalRelationshipWriter createCausalRelationshipWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVariableNameWriter<CvTerm> cvWriter)
createCausalRelationshipWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.cvWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- a
PsiXmlCausalRelationshipWriter
object.
-
createVariableParameterValueSetWriter
public static PsiXmlElementWriter<VariableParameterValueSet> createVariableParameterValueSetWriter(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex)
createVariableParameterValueSetWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createVariableParameterValueWriter
public static PsiXmlElementWriter<VariableParameterValue> createVariableParameterValueWriter(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex)
createVariableParameterValueWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createVariableParameterWriter
public static PsiXmlElementWriter<VariableParameter> createVariableParameterWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVariableNameWriter<CvTerm> cvWriter)
createVariableParameterWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.cvWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createPositionsWriter
public static PsiXmlElementWriter<Position>[] createPositionsWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlVariableNameWriter<CvTerm> statusWriter)
createPositionsWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.statusWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- an array of
PsiXmlElementWriter
objects.
-
createRangeWriter
public static PsiXmlElementWriter<Range> createRangeWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlXrefWriter refWriter, PsiXmlVariableNameWriter<CvTerm> statusWriter)
createRangeWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.refWriter
- aPsiXmlXrefWriter
object.statusWriter
- aPsiXmlVariableNameWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createParameterWriters
public static PsiXmlParameterWriter[] createParameterWriters(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlPublicationWriter publicationWriter)
createParameterWriters.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.publicationWriter
- aPsiXmlPublicationWriter
object.- Returns:
- an array of
PsiXmlParameterWriter
objects.
-
createAvailabilityWriter
public static PsiXmlElementWriter<String> createAvailabilityWriter(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex)
createAvailabilityWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createInferredInteractionWriter
public static PsiXmlElementWriter<Set<Feature>> createInferredInteractionWriter(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex)
createInferredInteractionWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createExtendedInferredInteractionWriter
public static PsiXmlElementWriter<AbstractInferredInteraction> createExtendedInferredInteractionWriter(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex)
createExtendedInferredInteractionWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createBindingFeaturesWriter
public static PsiXmlElementWriter<Set<Feature>> createBindingFeaturesWriter(XMLStreamWriter streamWriter, PsiXmlObjectCache objectIndex)
createBindingFeaturesWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createExperimentalInteractorWriter
public static PsiXmlElementWriter<AbstractExperimentalInteractor> createExperimentalInteractorWriter(XMLStreamWriter streamWriter, PsiXmlVersion version, PsiXmlObjectCache objectIndex, PsiXmlType xmlType)
createExperimentalInteractorWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.version
- aPsiXmlVersion
object.objectIndex
- aPsiXmlObjectCache
object.xmlType
- aPsiXmlType
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createSourceWriter
public static PsiXmlSourceWriter createSourceWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlVersion version, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlPublicationWriter publicationWriter)
createSourceWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.version
- aPsiXmlVersion
object.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.- Returns:
- a
PsiXmlSourceWriter
object.
-
createExperimentWriter
public static PsiXmlExperimentWriter createExperimentWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVersion version, boolean named, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlPublicationWriter publicationWriter, PsiXmlElementWriter<Organism> nonExperimentalHostOrganismWriter, PsiXmlVariableNameWriter<CvTerm> detectionMethodWriter, PsiXmlElementWriter<Confidence> confidenceWriter)
createExperimentWriter.
- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.named
- a boolean.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.publicationWriter
- aPsiXmlPublicationWriter
object.nonExperimentalHostOrganismWriter
- aPsiXmlElementWriter
object.detectionMethodWriter
- aPsiXmlVariableNameWriter
object.confidenceWriter
- aPsiXmlElementWriter
object.- Returns:
- a
PsiXmlExperimentWriter
object.
-
createInteractorWriter
public static PsiXmlElementWriter<Interactor> createInteractorWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlVariableNameWriter<CvTerm> interactorTypeWriter, PsiXmlElementWriter<Organism> organismWriter, PsiXmlElementWriter<Checksum> checksumWriter)
createInteractorWriter.
- Parameters:
version
- aPsiXmlVersion
object.streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.interactorTypeWriter
- aPsiXmlVariableNameWriter
object.organismWriter
- aPsiXmlElementWriter
object.checksumWriter
- aPsiXmlElementWriter
object.- Returns:
- a
PsiXmlElementWriter
object.
-
createFeatureWriter
public static <F extends Feature> PsiXmlElementWriter<F>[] createFeatureWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVersion version, InteractionCategory category, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlVariableNameWriter<CvTerm> featureTypeWriter, PsiXmlParameterWriter parameterWriter)
createFeatureWriter.
- Type Parameters:
F
- a F object.- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.category
- aInteractionCategory
object.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.featureTypeWriter
- aPsiXmlVariableNameWriter
object.parameterWriter
- aPsiXmlParameterWriter
object.- Returns:
- an array of
PsiXmlElementWriter
objects.
-
createParticipantWriter
public static <P extends Participant> PsiXmlParticipantWriter<P>[] createParticipantWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlType xmlType, InteractionCategory category, PsiXmlElementWriter<Alias> aliasWriter, PsiXmlElementWriter<Annotation> attributeWriter, PsiXmlXrefWriter primaryRefWriter, PsiXmlElementWriter<Confidence> confidenceWriter, PsiXmlElementWriter<Interactor> interactorWriter, PsiXmlVariableNameWriter<CvTerm> cvWriter, PsiXmlVariableNameWriter<CvTerm> openCvWriter, PsiXmlParameterWriter parameterWriter)
createParticipantWriter.
- Type Parameters:
P
- a P object.- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.xmlType
- aPsiXmlType
object.category
- aInteractionCategory
object.aliasWriter
- aPsiXmlElementWriter
object.attributeWriter
- aPsiXmlElementWriter
object.primaryRefWriter
- aPsiXmlXrefWriter
object.confidenceWriter
- aPsiXmlElementWriter
object.interactorWriter
- aPsiXmlElementWriter
object.cvWriter
- aPsiXmlVariableNameWriter
object.openCvWriter
- aPsiXmlVariableNameWriter
object.parameterWriter
- aPsiXmlParameterWriter
object.- Returns:
- an array of
PsiXmlParticipantWriter
objects.
-
createParticipantCandidateWriter
public static <P extends ParticipantCandidate> PsiXmlElementWriter<P>[] createParticipantCandidateWriter(XMLStreamWriter streamWriter, boolean extended, PsiXmlObjectCache objectIndex, PsiXmlVersion version, PsiXmlType xmlType, InteractionCategory category, PsiXmlElementWriter<Interactor> interactorWriter, PsiXmlElementWriter<ModelledFeature> modelledFeatureWriter, PsiXmlElementWriter<FeatureEvidence> featureEvidenceWriter)
createParticipantCandidateWriter.
- Type Parameters:
P
- a P object.- Parameters:
streamWriter
- aXMLStreamWriter
object.extended
- a boolean.objectIndex
- aPsiXmlObjectCache
object.version
- aPsiXmlVersion
object.xmlType
- aPsiXmlType
object.category
- aInteractionCategory
object.interactorWriter
- aPsiXmlElementWriter
object.modelledFeatureWriter
- aPsiXmlElementWriter
object.featureEvidenceWriter
- aPsiXmlElementWriter
object.- Returns:
- an array of
PsiXmlElementWriter
objects.
-
-