Package psidev.psi.mi.jami.xml.io.parser
Class AbstractFullPsiXmlParser<T extends Interaction>
- java.lang.Object
- 
- psidev.psi.mi.jami.xml.io.parser.AbstractFullPsiXmlParser<T>
 
- 
- All Implemented Interfaces:
- FullPsiXmlParser<T>,- PsiXmlParser<T>
 - Direct Known Subclasses:
- FullXmlComplexParser,- FullXmlEvidenceParser,- FullXmlModelledParser,- FullXmlParser,- LightFullXmlParser
 
 public abstract class AbstractFullPsiXmlParser<T extends Interaction> extends Object implements PsiXmlParser<T>, FullPsiXmlParser<T> This class if for parser that will load the all file in memory- Since:
- 07/11/13 
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractFullPsiXmlParser(File file)Constructor for AbstractFullPsiXmlParser.AbstractFullPsiXmlParser(InputStream inputStream)Constructor for AbstractFullPsiXmlParser.AbstractFullPsiXmlParser(Reader reader)Constructor for AbstractFullPsiXmlParser.AbstractFullPsiXmlParser(URL url)Constructor for AbstractFullPsiXmlParser.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()close.protected abstract javax.xml.bind.UnmarshallercreateJAXBUnmarshaller()createJAXBUnmarshaller.protected PsiXmlParserExceptioncreatePsiXmlExceptionFrom(String message, Exception e)createPsiXmlExceptionFrom.AbstractEntrySet<AbstractBaseEntry<T>>getEntrySet()Getter for the fieldentrySet.XmlInteractorFactorygetInteractorFactory()Getter for the fieldinteractorFactory.PsiXmlParserListenergetListener()getListener.PsiXmlVersiongetVersion()Getter for the fieldversion.booleanhasFinished()hasFinished.protected AbstractEntrySet<AbstractBaseEntry<T>>parseEntrySet()parseEntrySet.TparseNextInteraction()parseNextInteraction.voidreInit()reInit.voidsetCacheOfObjects(PsiXmlIdCache indexOfObjects)setCacheOfObjects.voidsetInteractorFactory(XmlInteractorFactory interactorFactory)setInteractorFactory.voidsetListener(PsiXmlParserListener listener)setListener.
 
- 
- 
- 
Constructor Detail- 
AbstractFullPsiXmlParserpublic AbstractFullPsiXmlParser(File file) throws javax.xml.bind.JAXBException, FileNotFoundException Constructor for AbstractFullPsiXmlParser. - Parameters:
- file- a- Fileobject.
- Throws:
- javax.xml.bind.JAXBException- if any.
- FileNotFoundException- if any.
 
 - 
AbstractFullPsiXmlParserpublic AbstractFullPsiXmlParser(InputStream inputStream) throws javax.xml.bind.JAXBException Constructor for AbstractFullPsiXmlParser. - Parameters:
- inputStream- a- InputStreamobject.
- Throws:
- javax.xml.bind.JAXBException- if any.
 
 - 
AbstractFullPsiXmlParserpublic AbstractFullPsiXmlParser(URL url) throws IOException, javax.xml.bind.JAXBException Constructor for AbstractFullPsiXmlParser. - Parameters:
- url- a- URLobject.
- Throws:
- IOException- if any.
- javax.xml.bind.JAXBException- if any.
 
 
- 
 - 
Method Detail- 
parseNextInteractionpublic T parseNextInteraction() throws PsiXmlParserException parseNextInteraction. - Specified by:
- parseNextInteractionin interface- PsiXmlParser<T extends Interaction>
- Returns:
- a T object.
- Throws:
- PsiXmlParserException- if any.
 
 - 
closepublic void close() throws MIIOExceptionclose. - Specified by:
- closein interface- FullPsiXmlParser<T extends Interaction>
- Specified by:
- closein interface- PsiXmlParser<T extends Interaction>
- Throws:
- MIIOException- if any.
 
 - 
getInteractorFactorypublic XmlInteractorFactory getInteractorFactory() Getter for the field interactorFactory.- Specified by:
- getInteractorFactoryin interface- PsiXmlParser<T extends Interaction>
- Returns:
- a XmlInteractorFactoryobject.
 
 - 
setInteractorFactorypublic void setInteractorFactory(XmlInteractorFactory interactorFactory) setInteractorFactory. - Specified by:
- setInteractorFactoryin interface- PsiXmlParser<T extends Interaction>
- Parameters:
- interactorFactory- a- XmlInteractorFactoryobject.
 
 - 
hasFinishedpublic boolean hasFinished() throws PsiXmlParserExceptionhasFinished. - Specified by:
- hasFinishedin interface- FullPsiXmlParser<T extends Interaction>
- Specified by:
- hasFinishedin interface- PsiXmlParser<T extends Interaction>
- Returns:
- a boolean.
- Throws:
- PsiXmlParserException- if any.
 
 - 
reInitpublic void reInit() throws MIIOExceptionreInit. - Specified by:
- reInitin interface- FullPsiXmlParser<T extends Interaction>
- Specified by:
- reInitin interface- PsiXmlParser<T extends Interaction>
- Throws:
- MIIOException- if any.
 
 - 
getListenerpublic PsiXmlParserListener getListener() getListener. - Specified by:
- getListenerin interface- FullPsiXmlParser<T extends Interaction>
- Specified by:
- getListenerin interface- PsiXmlParser<T extends Interaction>
- Returns:
- a PsiXmlParserListenerobject.
 
 - 
setListenerpublic void setListener(PsiXmlParserListener listener) setListener. - Specified by:
- setListenerin interface- FullPsiXmlParser<T extends Interaction>
- Specified by:
- setListenerin interface- PsiXmlParser<T extends Interaction>
- Parameters:
- listener- a- PsiXmlParserListenerobject.
 
 - 
setCacheOfObjectspublic void setCacheOfObjects(PsiXmlIdCache indexOfObjects) setCacheOfObjects. - Specified by:
- setCacheOfObjectsin interface- FullPsiXmlParser<T extends Interaction>
- Specified by:
- setCacheOfObjectsin interface- PsiXmlParser<T extends Interaction>
- Parameters:
- indexOfObjects- a- PsiXmlIdCacheobject.
 
 - 
getEntrySetpublic AbstractEntrySet<AbstractBaseEntry<T>> getEntrySet() throws PsiXmlParserException Getter for the field entrySet.- Specified by:
- getEntrySetin interface- FullPsiXmlParser<T extends Interaction>
- Returns:
- a AbstractEntrySetobject.
- Throws:
- PsiXmlParserException- if any.
 
 - 
createJAXBUnmarshallerprotected abstract javax.xml.bind.Unmarshaller createJAXBUnmarshaller() throws javax.xml.bind.JAXBExceptioncreateJAXBUnmarshaller. - Returns:
- a Unmarshallerobject.
- Throws:
- javax.xml.bind.JAXBException- if any.
 
 - 
parseEntrySetprotected AbstractEntrySet<AbstractBaseEntry<T>> parseEntrySet() throws PsiXmlParserException parseEntrySet. - Returns:
- a AbstractEntrySetobject.
- Throws:
- PsiXmlParserException- if any.
 
 - 
createPsiXmlExceptionFromprotected PsiXmlParserException createPsiXmlExceptionFrom(String message, Exception e) createPsiXmlExceptionFrom. - Parameters:
- message- a- Stringobject.
- e- a- Exceptionobject.
- Returns:
- a PsiXmlParserExceptionobject.
 
 - 
getVersionpublic PsiXmlVersion getVersion() Getter for the field version.- Specified by:
- getVersionin interface- PsiXmlParser<T extends Interaction>
- Returns:
- a PsiXmlVersionobject.
 
 
- 
 
-