public class XalanXPathQueryExecuterFactory extends JRXPathQueryExecuterFactory
XalanXPathQueryExecuter
query executers.Modifier and Type | Field and Description |
---|---|
static String |
PARAMETER_DOCUMENT_BUILDER_FACTORY
Built-in parameter holdin the value of the
javax.xml.parsers.DocumentBuilderFactor used to create
documents of type org.w3c.dom.Document |
static String |
PARAMETER_XML_NAMESPACE_MAP
Parameter that holds the
java.util.Map<String,String> with XML namespace information in the
<prefix, uri> format |
static String |
XML_DETECT_NAMESPACES
Boolean parameter/property that specifies whether the XML document should be parsed for namespaces or not.
|
static String |
XML_NAMESPACE_PREFIX
Prefix for properties holding the namespace prefix and uri:
e.g.
|
PARAMETER_XML_DATA_DOCUMENT, PROPERTY_XML_DATE_PATTERN, PROPERTY_XML_NUMBER_PATTERN, XML_DATE_PATTERN, XML_FILE, XML_INPUT_STREAM, XML_LOCALE, XML_NUMBER_PATTERN, XML_SOURCE, XML_TIME_ZONE
QUERY_EXECUTER_FACTORY_PREFIX
Constructor and Description |
---|
XalanXPathQueryExecuterFactory() |
Modifier and Type | Method and Description |
---|---|
JRQueryExecuter |
createQueryExecuter(JasperReportsContext jasperReportsContext,
JRDataset dataset,
Map<String,? extends JRValueParameter> parameters)
Creates a query executer.
|
Object[] |
getBuiltinParameters()
Returns the built-in parameters associated with this query type.
|
supportsQueryParameterType
createQueryExecuter
public static final String PARAMETER_DOCUMENT_BUILDER_FACTORY
javax.xml.parsers.DocumentBuilderFactor
used to create
documents of type org.w3c.dom.Document
public static final String PARAMETER_XML_NAMESPACE_MAP
java.util.Map<String,String>
with XML namespace information in the
<prefix, uri> formatpublic static final String XML_NAMESPACE_PREFIX
This property has a lower priority than PARAMETER_XML_NAMESPACE_MAP
, which if it is specified it will cause
the prefixed properties not to be searched for.
public static final String XML_DETECT_NAMESPACES
This parameter is meaningful only when:
PARAMETER_XML_NAMESPACE_MAP
parameter is not provided or provided with a null
value
XML_NAMESPACE_PREFIX
;
false
public Object[] getBuiltinParameters()
QueryExecuterFactory
{"Param1", String.class, "Param2", "List.class"}
).getBuiltinParameters
in interface JRQueryExecuterFactory
getBuiltinParameters
in interface QueryExecuterFactory
getBuiltinParameters
in class JRXPathQueryExecuterFactory
public JRQueryExecuter createQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String,? extends JRValueParameter> parameters) throws JRException
QueryExecuterFactory
createQueryExecuter
in interface QueryExecuterFactory
createQueryExecuter
in class JRXPathQueryExecuterFactory
jasperReportsContext
- the JasperReportsContextdataset
- the dataset containing the query, fields, etcparameters
- map of value parameters (instances of JRValueParameter
)
indexed by nameJRException
Copyright © 2017. All rights reserved.