Class SimpleJsonInteractionWriter<I extends Interaction>

    • Constructor Detail

      • SimpleJsonInteractionWriter

        public SimpleJsonInteractionWriter​(Writer writer,
                                           Map<Feature,​Integer> processedFeatures,
                                           Map<String,​String> processedInteractors,
                                           Map<Entity,​Integer> processedParticipants)

        Constructor for SimpleJsonInteractionWriter.

        Parameters:
        writer - a Writer object.
        processedFeatures - a Map object.
        processedInteractors - a Map object.
        processedParticipants - a Map object.
    • Method Detail

      • generateInteractionIdentifier

        protected String[] generateInteractionIdentifier​(I object,
                                                         Xref preferredIdentifier)

        generateInteractionIdentifier.

        Parameters:
        object - a I object.
        preferredIdentifier - a Xref object.
        Returns:
        an array of String objects.
      • writeExpansionMethod

        protected void writeExpansionMethod​(CvTerm expansion)
                                     throws IOException

        writeExpansionMethod.

        Parameters:
        expansion - a CvTerm object.
        Throws:
        IOException - if any.
      • writeOtherExpansionMethodProperties

        protected void writeOtherExpansionMethodProperties()
                                                    throws IOException

        writeOtherExpansionMethodProperties.

        Throws:
        IOException - if any.
      • writeAllIdentifiers

        protected void writeAllIdentifiers​(I object)
                                    throws IOException

        writeAllIdentifiers.

        Parameters:
        object - a I object.
        Throws:
        IOException - if any.
      • writeOtherIdentifiers

        protected void writeOtherIdentifiers​(I object)
                                      throws IOException

        writeOtherIdentifiers.

        Parameters:
        object - a I object.
        Throws:
        IOException - if any.
      • hasIdentifiers

        protected boolean hasIdentifiers​(I object)

        hasIdentifiers.

        Parameters:
        object - a I object.
        Returns:
        a boolean.
      • writeOtherProperties

        protected void writeOtherProperties​(I object)
                                     throws IOException

        writeOtherProperties.

        Parameters:
        object - a I object.
        Throws:
        IOException - if any.
      • setIdentifierWriter

        public void setIdentifierWriter​(JsonElementWriter<Xref> identifierWriter)

        Setter for the field identifierWriter.

        Parameters:
        identifierWriter - a JsonElementWriter object.
      • initialiseDefaultParticipantWriter

        protected void initialiseDefaultParticipantWriter()

        initialiseDefaultParticipantWriter.

      • setParticipantWriter

        public void setParticipantWriter​(JsonElementWriter participantWriter)

        Setter for the field participantWriter.

        Parameters:
        participantWriter - a JsonElementWriter object.
      • getWriter

        protected Writer getWriter()

        Getter for the field writer.

        Returns:
        a Writer object.
      • getProcessedInteractors

        protected Map<String,​String> getProcessedInteractors()

        Getter for the field processedInteractors.

        Returns:
        a Map object.
      • getProcessedFeatures

        protected Map<Feature,​Integer> getProcessedFeatures()

        Getter for the field processedFeatures.

        Returns:
        a Map object.
      • getProcessedParticipants

        protected Map<Entity,​Integer> getProcessedParticipants()

        Getter for the field processedParticipants.

        Returns:
        a Map object.