Package psidev.psi.mi.jami.xml
Class XmlEntryContext
- java.lang.Object
-
- psidev.psi.mi.jami.xml.XmlEntryContext
-
public class XmlEntryContext extends Object
The xml entry context is a context threadlocal that will be valid for the whole xml entry but will be cleared after each entry in the entrySet- Since:
26/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
clear.Entry
getCurrentEntry()
Getter for the fieldcurrentEntry
.static XmlEntryContext
getInstance()
Getter for the fieldinstance
.XmlInteractorFactory
getInteractorFactory()
Getter for the fieldinteractorFactory
.PsiXmlParserListener
getListener()
Getter for the fieldlistener
.boolean
hasInferredInteractions()
hasInferredInteractions.boolean
hasUnresolvedReferences()
hasUnresolvedReferences.void
initialiseInferredInteractionList()
initialiseInferredInteractionList.void
initialiseReferencesList()
initialiseReferencesList.void
registerAvailability(int id, AbstractAvailability o)
registerAvailability.void
registerBindingFeature(BindingFeatures infer)
registerBindingFeature.void
registerComplex(int id, Complex o)
registerComplex.void
registerComplexFeature(int id, ModelledFeature o)
registerComplexFeature.void
registerComplexParticipant(int id, ModelledEntity o)
registerComplexParticipant.void
registerExperiment(int id, Experiment o)
registerExperiment.void
registerFeature(int id, Feature o)
registerFeature.void
registerInferredInteraction(AbstractInferredInteraction infer)
registerInferredInteraction.void
registerInteraction(int id, Interaction o)
registerInteraction.void
registerInteractor(int id, Interactor o)
registerInteractor.void
registerParticipant(int id, Entity o)
registerParticipant.void
registerReference(XmlIdReference ref)
registerReference.void
registerVariableParameterValue(int id, VariableParameterValue o)
registerVariableParameterValue.static void
remove()
remove.void
resolveInferredInteractionRefs()
resolveInferredInteractionRefs.void
resolveInteractorAndExperimentRefs()
resolveInteractorAndExperimentRefs.void
setCurrentSource(Entry entry)
setCurrentSource.void
setElementCache(PsiXmlIdCache elementCache)
Setter for the fieldelementCache
.void
setInteractorFactory(XmlInteractorFactory interactorFactory)
Setter for the fieldinteractorFactory
.void
setListener(PsiXmlParserListener listener)
Setter for the fieldlistener
.
-
-
-
Method Detail
-
getInstance
public static XmlEntryContext getInstance()
Getter for the field
instance
.- Returns:
- a
XmlEntryContext
object.
-
remove
public static void remove()
remove.
-
clear
public void clear()
clear.
-
getInteractorFactory
public XmlInteractorFactory getInteractorFactory()
Getter for the field
interactorFactory
.- Returns:
- a
XmlInteractorFactory
object.
-
setInteractorFactory
public void setInteractorFactory(XmlInteractorFactory interactorFactory)
Setter for the field
interactorFactory
.- Parameters:
interactorFactory
- aXmlInteractorFactory
object.
-
getCurrentEntry
public Entry getCurrentEntry()
Getter for the field
currentEntry
.- Returns:
- a
Entry
object.
-
setCurrentSource
public void setCurrentSource(Entry entry)
setCurrentSource.
- Parameters:
entry
- aEntry
object.
-
getListener
public PsiXmlParserListener getListener()
Getter for the field
listener
.- Returns:
- a
PsiXmlParserListener
object.
-
setListener
public void setListener(PsiXmlParserListener listener)
Setter for the field
listener
.- Parameters:
listener
- aPsiXmlParserListener
object.
-
setElementCache
public void setElementCache(PsiXmlIdCache elementCache)
Setter for the field
elementCache
.- Parameters:
elementCache
- aPsiXmlIdCache
object.
-
registerAvailability
public void registerAvailability(int id, AbstractAvailability o)
registerAvailability.
- Parameters:
id
- a int.o
- aAbstractAvailability
object.
-
registerExperiment
public void registerExperiment(int id, Experiment o)
registerExperiment.
- Parameters:
id
- a int.o
- aExperiment
object.
-
registerInteractor
public void registerInteractor(int id, Interactor o)
registerInteractor.
- Parameters:
id
- a int.o
- aInteractor
object.
-
registerInteraction
public void registerInteraction(int id, Interaction o)
registerInteraction.
- Parameters:
id
- a int.o
- aInteraction
object.
-
registerParticipant
public void registerParticipant(int id, Entity o)
registerParticipant.
- Parameters:
id
- a int.o
- aEntity
object.
-
registerFeature
public void registerFeature(int id, Feature o)
registerFeature.
- Parameters:
id
- a int.o
- aFeature
object.
-
registerComplexParticipant
public void registerComplexParticipant(int id, ModelledEntity o)
registerComplexParticipant.
- Parameters:
id
- a int.o
- aModelledEntity
object.
-
registerComplexFeature
public void registerComplexFeature(int id, ModelledFeature o)
registerComplexFeature.
- Parameters:
id
- a int.o
- aModelledFeature
object.
-
registerVariableParameterValue
public void registerVariableParameterValue(int id, VariableParameterValue o)
registerVariableParameterValue.
- Parameters:
id
- a int.o
- aVariableParameterValue
object.
-
registerComplex
public void registerComplex(int id, Complex o)
registerComplex.
- Parameters:
id
- a int.o
- aComplex
object.
-
registerInferredInteraction
public void registerInferredInteraction(AbstractInferredInteraction infer)
registerInferredInteraction.
- Parameters:
infer
- aAbstractInferredInteraction
object.
-
registerBindingFeature
public void registerBindingFeature(BindingFeatures infer)
registerBindingFeature.
- Parameters:
infer
- aBindingFeatures
object.
-
registerReference
public void registerReference(XmlIdReference ref)
registerReference.
- Parameters:
ref
- aXmlIdReference
object.
-
hasInferredInteractions
public boolean hasInferredInteractions()
hasInferredInteractions.
- Returns:
- a boolean.
-
hasUnresolvedReferences
public boolean hasUnresolvedReferences()
hasUnresolvedReferences.
- Returns:
- a boolean.
-
initialiseInferredInteractionList
public void initialiseInferredInteractionList()
initialiseInferredInteractionList.
-
initialiseReferencesList
public void initialiseReferencesList()
initialiseReferencesList.
-
resolveInteractorAndExperimentRefs
public void resolveInteractorAndExperimentRefs()
resolveInteractorAndExperimentRefs.
-
resolveInferredInteractionRefs
public void resolveInferredInteractionRefs()
resolveInferredInteractionRefs.
-
-