Class InterMineBagBinding


  • public class InterMineBagBinding
    extends java.lang.Object
    Parse InterMineIdBags in XML format
    Author:
    Mark Woodbridge
    • Constructor Detail

      • InterMineBagBinding

        public InterMineBagBinding()
    • Method Detail

      • marshal

        public java.lang.String marshal​(InterMineBag bag)
        Convert an InterMine bag to XML
        Parameters:
        bag - the InterMineIdBag
        Returns:
        the corresponding XML String
      • marshal

        public static void marshal​(InterMineBag bag,
                                   javax.xml.stream.XMLStreamWriter writer)
        Convert a InterMineIdBag to XML and write XML to given writer.
        Parameters:
        bag - the InterMineIdBag
        writer - the XMLStreamWriter to write to
      • unmarshal

        public static java.util.Map unmarshal​(java.io.Reader reader,
                                              ObjectStoreWriter uosw,
                                              ObjectStoreWriter osw,
                                              java.lang.Integer userId)
        Parse saved queries from a Reader
        Parameters:
        reader - the saved bags
        uosw - UserProfile ObjectStoreWriter
        osw - ObjectStoreWriter used to resolve object id's and write to ObjectStoreBags
        userId - an Integer
        Returns:
        map of queries read from XML