Package psidev.psi.mi.jami.xml.io.parser
Class JaxbUnmarshallerFactory
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.parser.JaxbUnmarshallerFactory
-
public class JaxbUnmarshallerFactory extends Object
Factory to initialise JAXB context depending on the version and the interaction object category- Since:
23/04/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.bind.Unmarshaller
createFullUnmarshaller(PsiXmlVersion version, InteractionCategory category)
createFullUnmarshaller.javax.xml.bind.Unmarshaller
createFullXml253JAXBUnmarshaller(InteractionCategory category)
createFullXml253JAXBUnmarshaller.javax.xml.bind.Unmarshaller
createFullXml254JAXBUnmarshaller(InteractionCategory category)
createFullXml254JAXBUnmarshaller.javax.xml.bind.Unmarshaller
createFullXml300JAXBUnmarshaller(InteractionCategory category)
createFullXml300JAXBUnmarshaller.javax.xml.bind.Unmarshaller
createUnmarshaller(PsiXmlVersion version, InteractionCategory category)
createUnmarshaller.javax.xml.bind.Unmarshaller
createXml253JAXBUnmarshaller(InteractionCategory category)
createXml253JAXBUnmarshaller.javax.xml.bind.Unmarshaller
createXml254JAXBUnmarshaller(InteractionCategory category)
createXml254JAXBUnmarshaller.javax.xml.bind.Unmarshaller
createXml300JAXBUnmarshaller(InteractionCategory category)
createXml300JAXBUnmarshaller.static JaxbUnmarshallerFactory
getInstance()
Getter for the fieldinstance
.
-
-
-
Method Detail
-
getInstance
public static JaxbUnmarshallerFactory getInstance()
Getter for the field
instance
.- Returns:
- a
JaxbUnmarshallerFactory
object.
-
createUnmarshaller
public javax.xml.bind.Unmarshaller createUnmarshaller(PsiXmlVersion version, InteractionCategory category) throws javax.xml.bind.JAXBException
createUnmarshaller.
- Parameters:
version
- : version of PSI XML formatcategory
- : Interaction object category (modelled, evidence, basic, ...)- Returns:
- JAXB unmarshaller initialised to parse interaction objects of a certain category in a specific version of the PSI-MI XML format. The unmarhsaller is initialised so it can be used in a streaming way
- Throws:
javax.xml.bind.JAXBException
- if any.
-
createFullUnmarshaller
public javax.xml.bind.Unmarshaller createFullUnmarshaller(PsiXmlVersion version, InteractionCategory category) throws javax.xml.bind.JAXBException
createFullUnmarshaller.
- Parameters:
version
- : version of PSI XML formatcategory
- : Interaction object category (modelled, evidence, basic, ...)- Returns:
- JAXB unmarshaller initialised to parse interaction objects of a certain category in a specific version of the PSI-MI XML format. The unmarhsaller is initialised so it can only be used to parse the all entrySet (no streaming)
- Throws:
javax.xml.bind.JAXBException
- if any.
-
createXml300JAXBUnmarshaller
public javax.xml.bind.Unmarshaller createXml300JAXBUnmarshaller(InteractionCategory category) throws javax.xml.bind.JAXBException
createXml300JAXBUnmarshaller.
- Parameters:
category
- aInteractionCategory
object.- Returns:
- a
Unmarshaller
object. - Throws:
javax.xml.bind.JAXBException
- if any.
-
createXml253JAXBUnmarshaller
public javax.xml.bind.Unmarshaller createXml253JAXBUnmarshaller(InteractionCategory category) throws javax.xml.bind.JAXBException
createXml253JAXBUnmarshaller.
- Parameters:
category
- aInteractionCategory
object.- Returns:
- a
Unmarshaller
object. - Throws:
javax.xml.bind.JAXBException
- if any.
-
createXml254JAXBUnmarshaller
public javax.xml.bind.Unmarshaller createXml254JAXBUnmarshaller(InteractionCategory category) throws javax.xml.bind.JAXBException
createXml254JAXBUnmarshaller.
- Parameters:
category
- aInteractionCategory
object.- Returns:
- a
Unmarshaller
object. - Throws:
javax.xml.bind.JAXBException
- if any.
-
createFullXml300JAXBUnmarshaller
public javax.xml.bind.Unmarshaller createFullXml300JAXBUnmarshaller(InteractionCategory category) throws javax.xml.bind.JAXBException
createFullXml300JAXBUnmarshaller.
- Parameters:
category
- aInteractionCategory
object.- Returns:
- a
Unmarshaller
object. - Throws:
javax.xml.bind.JAXBException
- if any.
-
createFullXml253JAXBUnmarshaller
public javax.xml.bind.Unmarshaller createFullXml253JAXBUnmarshaller(InteractionCategory category) throws javax.xml.bind.JAXBException
createFullXml253JAXBUnmarshaller.
- Parameters:
category
- aInteractionCategory
object.- Returns:
- a
Unmarshaller
object. - Throws:
javax.xml.bind.JAXBException
- if any.
-
createFullXml254JAXBUnmarshaller
public javax.xml.bind.Unmarshaller createFullXml254JAXBUnmarshaller(InteractionCategory category) throws javax.xml.bind.JAXBException
createFullXml254JAXBUnmarshaller.
- Parameters:
category
- aInteractionCategory
object.- Returns:
- a
Unmarshaller
object. - Throws:
javax.xml.bind.JAXBException
- if any.
-
-