Interface PsiXmlInteractionWriter<T extends Interaction>

    • Method Detail

      • getDefaultExperiment

        Experiment getDefaultExperiment()
        The default experiment that will be used to write a valid XML file but is not a real experiment attached to the interaction. It can be null in some specific cases.
        Returns:
        the default experiment used by this writer
      • setDefaultExperiment

        void setDefaultExperiment​(Experiment exp)
        Sets the default experiment that will be used to write a valid XML file even if the interaction does not have any valid experiment
        Parameters:
        exp - : default experiment
      • extractDefaultExperimentFrom

        Experiment extractDefaultExperimentFrom​(T interaction)

        extractDefaultExperimentFrom.

        Parameters:
        interaction - a T object.
        Returns:
        the default experiment for this interaction
      • writeComplexAsInteractor

        boolean writeComplexAsInteractor()

        writeComplexAsInteractor.

        Returns:
        true if the participant writer will write a complex as an interactor
      • setComplexAsInteractor

        void setComplexAsInteractor​(boolean complexAsInteractor)
        Sets the property of the writer to write a complex as an interactor or as an interaction
        Parameters:
        complexAsInteractor - a boolean.