Package org.intermine.template.xml
Class TemplateQueryHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.intermine.pathquery.PathQueryHandler
-
- org.intermine.template.xml.TemplateQueryHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
public class TemplateQueryHandler extends PathQueryHandler
Extension of PathQueryHandler to handle parsing TemplateQueries- 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 TemplateQueryHandler(java.util.Map<java.lang.String,TemplateQuery> templates, 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
-
TemplateQueryHandler
public TemplateQueryHandler(java.util.Map<java.lang.String,TemplateQuery> templates, int version)
Constructor- Parameters:
templates
- Map from template name to TemplateQueryversion
- 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
-
-