Package org.intermine.api.xml
Class InterMineBagBinding
- java.lang.Object
-
- org.intermine.api.xml.InterMineBagBinding
-
public class InterMineBagBinding extends java.lang.Object
Parse InterMineIdBags in XML format- Author:
- Mark Woodbridge
-
-
Constructor Summary
Constructors Constructor Description InterMineBagBinding()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
marshal(InterMineBag bag)
Convert an InterMine bag to XMLstatic void
marshal(InterMineBag bag, javax.xml.stream.XMLStreamWriter writer)
Convert a InterMineIdBag to XML and write XML to given writer.static java.util.Map
unmarshal(java.io.Reader reader, ObjectStoreWriter uosw, ObjectStoreWriter osw, java.lang.Integer userId)
Parse saved queries from a Reader
-
-
-
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 InterMineIdBagwriter
- 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 bagsuosw
- UserProfile ObjectStoreWriterosw
- ObjectStoreWriter used to resolve object id's and write to ObjectStoreBagsuserId
- an Integer- Returns:
- map of queries read from XML
-
-