Interface PsiXmlIdCache

  • All Known Implementing Classes:
    InMemoryPsiXmlCache, PsiXmlFileIndexCache

    public interface PsiXmlIdCache
    Index that can retrieve a MI object given its id
    Since:
    06/11/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Method Detail

      • getAvailability

        AbstractAvailability getAvailability​(int id)

        getAvailability.

        Parameters:
        id - a int.
        Returns:
        the availability registered with this id, null if it does not exist
      • registerExperiment

        void registerExperiment​(int id,
                                Experiment object)
        Register an experiment with an id
        Parameters:
        id - a int.
        object - a Experiment object.
      • getExperiment

        Experiment getExperiment​(int id)

        getExperiment.

        Parameters:
        id - a int.
        Returns:
        the experiment registered with this id, null if it does not exist
      • registerInteraction

        void registerInteraction​(int id,
                                 Interaction object)
        Register an interaction with an id
        Parameters:
        id - a int.
        object - a Interaction object.
      • getInteraction

        Interaction getInteraction​(int id)

        getInteraction.

        Parameters:
        id - a int.
        Returns:
        the interaction registered with this id, null if it does not exist
      • registerInteractor

        void registerInteractor​(int id,
                                Interactor object)
        Register an interactor with an id
        Parameters:
        id - a int.
        object - a Interactor object.
      • getInteractor

        Interactor getInteractor​(int id)

        getInteractor.

        Parameters:
        id - a int.
        Returns:
        the interactor registered with this id, null if it does not exist
      • registerParticipant

        void registerParticipant​(int id,
                                 Entity object)
        Register a participant with an id
        Parameters:
        id - a int.
        object - a Entity object.
      • getParticipant

        Entity getParticipant​(int id)

        getParticipant.

        Parameters:
        id - a int.
        Returns:
        the participant registered with this id, null if it does not exist
      • registerFeature

        void registerFeature​(int id,
                             Feature object)
        Register a feature with an id
        Parameters:
        id - a int.
        object - a Feature object.
      • getFeature

        Feature getFeature​(int id)

        getFeature.

        Parameters:
        id - a int.
        Returns:
        the feature registered with this id, null if it does not exist
      • registerComplexParticipant

        void registerComplexParticipant​(int id,
                                        ModelledEntity object)
        Register a participant involved in a complex with an id
        Parameters:
        id - a int.
        object - a ModelledEntity object.
      • getComplexParticipant

        ModelledEntity getComplexParticipant​(int id)

        getComplexParticipant.

        Parameters:
        id - a int.
        Returns:
        the participant registered with this id, null if it does not exist
      • registerComplexFeature

        void registerComplexFeature​(int id,
                                    ModelledFeature object)
        Register a complex feature with an id
        Parameters:
        id - a int.
        object - a ModelledFeature object.
      • getComplexFeature

        ModelledFeature getComplexFeature​(int id)

        getComplexFeature.

        Parameters:
        id - a int.
        Returns:
        the feature registered with this id, null if it does not exist
      • registerComplex

        void registerComplex​(int id,
                             Complex object)
        Register a complex with an id
        Parameters:
        id - a int.
        object - a Complex object.
      • getComplex

        Complex getComplex​(int id)

        getComplex.

        Parameters:
        id - a int.
        Returns:
        the complex registered with this id, null if it does not exist
      • registerVariableParameterValue

        void registerVariableParameterValue​(int id,
                                            VariableParameterValue object)
        Register a variable parameter value with an id
        Parameters:
        id - a int.
        object - a VariableParameterValue object.
      • getVariableParameterValue

        VariableParameterValue getVariableParameterValue​(int id)

        getVariableParameterValue.

        Parameters:
        id - a int.
        Returns:
        the variable parameter value registered with this id, null if it does not exist
      • clear

        void clear()
        Clear all existing records
      • close

        void close()
        Close cache
      • containsExperiment

        boolean containsExperiment​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsAvailability

        boolean containsAvailability​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsInteraction

        boolean containsInteraction​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsInteractor

        boolean containsInteractor​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsParticipant

        boolean containsParticipant​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsFeature

        boolean containsFeature​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsVariableParameter

        boolean containsVariableParameter​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsComplex

        boolean containsComplex​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsComplexParticipant

        boolean containsComplexParticipant​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • containsComplexFeature

        boolean containsComplexFeature​(int id)
        To know if it contains a specific id
        Parameters:
        id - a int.
        Returns:
        a boolean.
      • registerModelledFeatureLoadedFrom

        ModelledFeature registerModelledFeatureLoadedFrom​(Feature f)

        registerModelledFeatureLoadedFrom.

        Parameters:
        f - : the loaded feature
        Returns:
        the converted and registered modelled feature
      • registerModelledParticipantLoadedFrom

        ModelledEntity registerModelledParticipantLoadedFrom​(Entity f)

        registerModelledParticipantLoadedFrom.

        Parameters:
        f - : the loaded participant
        Returns:
        the converted and registered modelled participant
      • registerComplexLoadedFrom

        Complex registerComplexLoadedFrom​(Interaction f)

        registerComplexLoadedFrom.

        Parameters:
        f - : the loaded interaction
        Returns:
        the converted and registered complex