net.sf.saxon.xpath
public class XPathFactoryImpl extends XPathFactory
Constructor Summary | |
---|---|
XPathFactoryImpl()
Default constructor: this creates a Configuration as well as creating the XPathFactory. | |
XPathFactoryImpl(Configuration config)
Constructor using a user-supplied Configuration.
|
Method Summary | |
---|---|
Configuration | getConfiguration()
Get the Configuration object used by this XPathFactory |
boolean | getFeature(String feature)
Get a feature of this XPath implementation. |
boolean | isObjectModelSupported(String model)
Test whether a given object model is supported. |
XPath | newXPath()
Create an XPath evaluator |
void | setConfiguration(Configuration config)
Set the Configuration for the factory |
void | setFeature(String feature, boolean b)
Set a feature of this XPath implementation. |
void | setXPathFunctionResolver(XPathFunctionResolver xPathFunctionResolver)
Set a resolver for XPath functions. |
void | setXPathVariableResolver(XPathVariableResolver xPathVariableResolver)
Set a resolver for XPath variables. |
Parameters: config the Saxon configuration
Returns: the Saxon configuration
Parameters: feature a URI identifying the feature
Returns: true if the feature is on, false if it is off
Throws: XPathFactoryConfigurationException if the feature name is not recognized
Parameters: model The URI identifying the object model.
Returns: true if the object model is one of the following (provided that the supporting JAR file is available on the classpath) OBJECT_MODEL_SAXON, XPathConstants#DOM_OBJECT_MODEL, OBJECT_MODEL_JDOM, or OBJECT_MODEL_XOM, or OBJECT_MODEL_DOM4J. Saxon also allows user-defined external object models to be registered with the Configuration, and this method will return true in respect of any such model.
Returns: an XPath object, which can be used to compile and execute XPath expressions.
Parameters: config the Saxon Configuration to be used
Parameters: feature a URI identifying the feature b true to set the feature on, false to set it off
Throws: XPathFactoryConfigurationException if the feature name is not recognized
Parameters: xPathFunctionResolver The object used to resolve references to external functions.
Parameters: xPathVariableResolver The object used to resolve references to variables.