Package psidev.psi.mi.jami.xml.io.parser
Class AbstractPsixmlBinaryParser<T extends Interaction,B extends BinaryInteraction>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.parser.AbstractPsixmlBinaryParser<T,B>
-
- All Implemented Interfaces:
PsiXmlParser<B>
- Direct Known Subclasses:
FullXmlBinaryEvidenceParser
,FullXmlBinaryParser
,FullXmlModelledBinaryParser
,LightFullXmlBinaryParser
,LightXmlBinaryParser
,XmlBinaryEvidenceParser
,XmlBinaryParser
,XmlModelledBinaryParser
public abstract class AbstractPsixmlBinaryParser<T extends Interaction,B extends BinaryInteraction> extends Object implements PsiXmlParser<B>
Abstract class for a binary interaction parser- Since:
17/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractPsixmlBinaryParser(PsiXmlParser<T> delegateParser)
Constructor for AbstractPsixmlBinaryParser.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
close.protected PsiXmlParser<T>
getDelegateParser()
Getter for the fielddelegateParser
.protected ComplexExpansionMethod<T,B>
getExpansionMethod()
Getter for the fieldexpansionMethod
.XmlInteractorFactory
getInteractorFactory()
getInteractorFactory.PsiXmlParserListener
getListener()
getListener.PsiXmlVersion
getVersion()
getVersion.boolean
hasFinished()
hasFinished.protected abstract ComplexExpansionMethod<T,B>
initialiseDefaultExpansionMethod()
initialiseDefaultExpansionMethod.protected BinaryInteractionFactory
instantiateInteractionFactory()
instantiateInteractionFactory.B
parseNextInteraction()
parseNextInteraction.void
reInit()
reInit.void
setCacheOfObjects(PsiXmlIdCache indexOfObjects)
setCacheOfObjects.void
setExpansionMethod(ComplexExpansionMethod<T,B> expansionMethod)
Setter for the fieldexpansionMethod
.void
setInteractorFactory(XmlInteractorFactory factory)
setInteractorFactory.void
setListener(PsiXmlParserListener listener)
setListener.
-
-
-
Constructor Detail
-
AbstractPsixmlBinaryParser
public AbstractPsixmlBinaryParser(PsiXmlParser<T> delegateParser)
Constructor for AbstractPsixmlBinaryParser.
- Parameters:
delegateParser
- aPsiXmlParser
object.
-
-
Method Detail
-
parseNextInteraction
public B parseNextInteraction() throws PsiXmlParserException
parseNextInteraction.
- Specified by:
parseNextInteraction
in interfacePsiXmlParser<T extends Interaction>
- Returns:
- a T object.
- Throws:
PsiXmlParserException
- if any.
-
hasFinished
public boolean hasFinished() throws PsiXmlParserException
hasFinished.
- Specified by:
hasFinished
in interfacePsiXmlParser<T extends Interaction>
- Returns:
- a boolean.
- Throws:
PsiXmlParserException
- if any.
-
reInit
public void reInit() throws MIIOException
reInit.
- Specified by:
reInit
in interfacePsiXmlParser<T extends Interaction>
- Throws:
MIIOException
- if any.
-
close
public void close()
close.
- Specified by:
close
in interfacePsiXmlParser<T extends Interaction>
-
getListener
public PsiXmlParserListener getListener()
getListener.
- Specified by:
getListener
in interfacePsiXmlParser<T extends Interaction>
- Returns:
- a
PsiXmlParserListener
object.
-
setListener
public void setListener(PsiXmlParserListener listener)
setListener.
- Specified by:
setListener
in interfacePsiXmlParser<T extends Interaction>
- Parameters:
listener
- aPsiXmlParserListener
object.
-
setExpansionMethod
public void setExpansionMethod(ComplexExpansionMethod<T,B> expansionMethod)
Setter for the field
expansionMethod
.- Parameters:
expansionMethod
- aComplexExpansionMethod
object.
-
instantiateInteractionFactory
protected BinaryInteractionFactory instantiateInteractionFactory()
instantiateInteractionFactory.
- Returns:
- a
BinaryInteractionFactory
object.
-
setCacheOfObjects
public void setCacheOfObjects(PsiXmlIdCache indexOfObjects)
setCacheOfObjects.
- Specified by:
setCacheOfObjects
in interfacePsiXmlParser<T extends Interaction>
- Parameters:
indexOfObjects
- aPsiXmlIdCache
object.
-
getInteractorFactory
public XmlInteractorFactory getInteractorFactory()
getInteractorFactory.
- Specified by:
getInteractorFactory
in interfacePsiXmlParser<T extends Interaction>
- Returns:
- a
XmlInteractorFactory
object.
-
setInteractorFactory
public void setInteractorFactory(XmlInteractorFactory factory)
setInteractorFactory.
- Specified by:
setInteractorFactory
in interfacePsiXmlParser<T extends Interaction>
- Parameters:
factory
- aXmlInteractorFactory
object.
-
getVersion
public PsiXmlVersion getVersion()
getVersion.
- Specified by:
getVersion
in interfacePsiXmlParser<T extends Interaction>
- Returns:
- a
PsiXmlVersion
object.
-
getExpansionMethod
protected ComplexExpansionMethod<T,B> getExpansionMethod()
Getter for the field
expansionMethod
.- Returns:
- a
ComplexExpansionMethod
object.
-
initialiseDefaultExpansionMethod
protected abstract ComplexExpansionMethod<T,B> initialiseDefaultExpansionMethod()
initialiseDefaultExpansionMethod.
- Returns:
- a
ComplexExpansionMethod
object.
-
getDelegateParser
protected PsiXmlParser<T> getDelegateParser()
Getter for the field
delegateParser
.- Returns:
- a
PsiXmlParser
object.
-
-