public class QueryTemplateManager extends Object
Constructor and Description |
---|
QueryTemplateManager() |
QueryTemplateManager(InputStream xslIs) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultQueryTemplate(InputStream xslIs) |
void |
addQueryTemplate(String name,
InputStream xslIs) |
Document |
getQueryAsDOM(Properties formProperties) |
static Document |
getQueryAsDOM(Properties formProperties,
InputStream xslIs)
Slow means of constructing query - parses stylesheet from input stream
|
Document |
getQueryAsDOM(Properties formProperties,
String queryTemplateName) |
static Document |
getQueryAsDOM(Properties formProperties,
Templates template)
Fast means of constructing query using a cached,precompiled stylesheet
|
String |
getQueryAsXmlString(Properties formProperties) |
static String |
getQueryAsXmlString(Properties formProperties,
InputStream xslIs)
Slow means of constructing query parsing a stylesheet from an input stream
|
String |
getQueryAsXmlString(Properties formProperties,
String queryTemplateName) |
static String |
getQueryAsXmlString(Properties formProperties,
Templates template)
Fast means of constructing query using a precompiled stylesheet
|
static Templates |
getTemplates(InputStream xslIs)
Parses a query stylesheet for repeated use
|
static void |
transformCriteria(Properties formProperties,
InputStream xslIs,
Result result)
Slower transformation using an uncompiled stylesheet (suitable for development environment)
|
static void |
transformCriteria(Properties formProperties,
Templates template,
Result result)
Fast transformation using a pre-compiled stylesheet (suitable for production environments)
|
static void |
transformCriteria(Properties formProperties,
Transformer transformer,
Result result) |
public QueryTemplateManager()
public QueryTemplateManager(InputStream xslIs) throws TransformerConfigurationException, ParserConfigurationException, SAXException, IOException
public void addDefaultQueryTemplate(InputStream xslIs) throws TransformerConfigurationException, ParserConfigurationException, SAXException, IOException
public void addQueryTemplate(String name, InputStream xslIs) throws TransformerConfigurationException, ParserConfigurationException, SAXException, IOException
public String getQueryAsXmlString(Properties formProperties, String queryTemplateName) throws SAXException, IOException, ParserConfigurationException, TransformerException
public Document getQueryAsDOM(Properties formProperties, String queryTemplateName) throws SAXException, IOException, ParserConfigurationException, TransformerException
public String getQueryAsXmlString(Properties formProperties) throws SAXException, IOException, ParserConfigurationException, TransformerException
public Document getQueryAsDOM(Properties formProperties) throws SAXException, IOException, ParserConfigurationException, TransformerException
public static String getQueryAsXmlString(Properties formProperties, Templates template) throws SAXException, IOException, ParserConfigurationException, TransformerException
public static String getQueryAsXmlString(Properties formProperties, InputStream xslIs) throws SAXException, IOException, ParserConfigurationException, TransformerException
public static Document getQueryAsDOM(Properties formProperties, Templates template) throws SAXException, IOException, ParserConfigurationException, TransformerException
public static Document getQueryAsDOM(Properties formProperties, InputStream xslIs) throws SAXException, IOException, ParserConfigurationException, TransformerException
public static void transformCriteria(Properties formProperties, InputStream xslIs, Result result) throws SAXException, IOException, ParserConfigurationException, TransformerException
public static void transformCriteria(Properties formProperties, Templates template, Result result) throws SAXException, IOException, ParserConfigurationException, TransformerException
public static void transformCriteria(Properties formProperties, Transformer transformer, Result result) throws SAXException, IOException, ParserConfigurationException, TransformerException
public static Templates getTemplates(InputStream xslIs) throws ParserConfigurationException, SAXException, IOException, TransformerConfigurationException