Package org.intermine.api.xml
Class SavedQueryHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.intermine.pathquery.PathQueryHandler
-
- org.intermine.api.xml.SavedQueryHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
public class SavedQueryHandler extends PathQueryHandler
Extension of PathQueryHandler to handle parsing SavedQuerys- Author:
- Xavier Watkins
-
-
Field Summary
-
Fields inherited from class org.intermine.pathquery.PathQueryHandler
ATTRIBUTE_TYPES, constraintAttributes, constraintCode, constraintLogic, constraintPath, constraintValues, currentNodePath, query, version
-
-
Constructor Summary
Constructors Constructor Description SavedQueryHandler(java.util.Map<java.lang.String,SavedQuery> queries, java.util.Map savedBags, int version)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
void
startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)
-
Methods inherited from class org.intermine.pathquery.PathQueryHandler
addModel, characters, processConstraint, setOuterJoins, toStrings, validateName
-
-
-
-
Constructor Detail
-
SavedQueryHandler
public SavedQueryHandler(java.util.Map<java.lang.String,SavedQuery> queries, java.util.Map savedBags, int version)
Constructor- Parameters:
queries
- Map from saved query name to SavedQuerysavedBags
- Map from bag name to bagversion
- the version of the xml, an attribute on the profile manager
-
-
Method Detail
-
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
- Specified by:
startElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
startElement
in classPathQueryHandler
- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
- Specified by:
endElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endElement
in classPathQueryHandler
- Throws:
org.xml.sax.SAXException
-
-