Package org.intermine.api.xml
Class SavedQueryBinding
- java.lang.Object
-
- org.intermine.api.xml.SavedQueryBinding
-
public final class SavedQueryBinding extends java.lang.Object
Convert SavedQuerys to and from XML- Author:
- Thomas Riley
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
marshal(SavedQuery query, int version)
Convert a TemplateQuery to XMLstatic void
marshal(SavedQuery query, javax.xml.stream.XMLStreamWriter writer, int version)
Convert a SavedQuery to XML and write XML to given writer.static java.util.Map<java.lang.String,SavedQuery>
unmarshal(java.io.Reader reader, java.util.Map savedBags, int version)
Parse TemplateQuerys from XML
-
-
-
Method Detail
-
marshal
public static void marshal(SavedQuery query, javax.xml.stream.XMLStreamWriter writer, int version)
Convert a SavedQuery to XML and write XML to given writer.- Parameters:
query
- the SavedQuerywriter
- the XMLStreamWriter to write toversion
- the version number of the XML format, an attribute of the ProfileManager
-
marshal
public static java.lang.String marshal(SavedQuery query, int version)
Convert a TemplateQuery to XML- Parameters:
query
- the SavedQueryversion
- the version number of the XML format, an attribute of the ProfileManager- Returns:
- the corresponding XML String
-
unmarshal
public static java.util.Map<java.lang.String,SavedQuery> unmarshal(java.io.Reader reader, java.util.Map savedBags, int version)
Parse TemplateQuerys from XML- Parameters:
reader
- the saved queriessavedBags
- Map from bag name to bagversion
- the version of the XML, an attribute on the profile manager- Returns:
- a Map from query name to SavedQuery
-
-