Class 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 Detail

      • createUnmarshaller

        public javax.xml.bind.Unmarshaller createUnmarshaller​(PsiXmlVersion version,
                                                              InteractionCategory category)
                                                       throws javax.xml.bind.JAXBException

        createUnmarshaller.

        Parameters:
        version - : version of PSI XML format
        category - : 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 format
        category - : 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 - a InteractionCategory 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 - a InteractionCategory 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 - a InteractionCategory 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 - a InteractionCategory 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 - a InteractionCategory 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 - a InteractionCategory object.
        Returns:
        a Unmarshaller object.
        Throws:
        javax.xml.bind.JAXBException - if any.