Class AbstractXmlIterator<T extends Interaction>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.iterator.AbstractXmlIterator<T>
-
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
XmlBinaryInteractionEvidenceIterator
,XmlBinaryInteractionIterator
,XmlComplexIterator
,XmlInteractionEvidenceIterator
,XmlInteractionIterator
,XmlModelledBinaryInteractionIterator
,XmlModelledInteractionIterator
public class AbstractXmlIterator<T extends Interaction> extends Object implements Iterator<T>
Abstract iterator for parsing xml interactions- Since:
17/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlIterator(PsiXmlParser<T> lineParser)
Constructor for AbstractXmlIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
hasNext.T
next()
next.void
remove()
remove.void
setParserListener(MIFileParserListener defaultParserListener)
Setter for the fieldparserListener
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
AbstractXmlIterator
public AbstractXmlIterator(PsiXmlParser<T> lineParser) throws MIIOException
Constructor for AbstractXmlIterator.
- Parameters:
lineParser
- aPsiXmlParser
object.- Throws:
MIIOException
- if any.
-
-
Method Detail
-
hasNext
public boolean hasNext()
hasNext.
- Specified by:
hasNext
in interfaceIterator<T extends Interaction>
- Returns:
- a boolean.
-
next
public T next() throws MIIOException
next.
- Specified by:
next
in interfaceIterator<T extends Interaction>
- Returns:
- a T object.
- Throws:
MIIOException
- if any.
-
remove
public void remove()
remove.
- Specified by:
remove
in interfaceIterator<T extends Interaction>
-
setParserListener
public void setParserListener(MIFileParserListener defaultParserListener)
Setter for the field
parserListener
.- Parameters:
defaultParserListener
- aMIFileParserListener
object.
-
-