public class XPathFactoryImpl
extends javax.xml.xpath.XPathFactory
| Constructor | Description |
|---|---|
XPathFactoryImpl() |
Default constructor: this creates a Configuration as well as creating the XPathFactory.
|
XPathFactoryImpl(Configuration config) |
Constructor using a user-supplied Configuration.
|
| Modifier and Type | Method | Description |
|---|---|---|
Configuration |
getConfiguration() |
Get the Configuration object used by this XPathFactory
|
boolean |
getFeature(java.lang.String feature) |
Get a feature of this XPath implementation.
|
boolean |
isObjectModelSupported(java.lang.String model) |
Test whether a given object model is supported.
|
protected Configuration |
makeConfiguration() |
|
javax.xml.xpath.XPath |
newXPath() |
Create an XPath evaluator
|
void |
setFeature(java.lang.String feature,
boolean b) |
Set a feature of this XPath implementation.
|
void |
setXPathFunctionResolver(javax.xml.xpath.XPathFunctionResolver xPathFunctionResolver) |
Set a resolver for XPath functions.
|
void |
setXPathVariableResolver(javax.xml.xpath.XPathVariableResolver xPathVariableResolver) |
Set a resolver for XPath variables.
|
public XPathFactoryImpl()
public XPathFactoryImpl(Configuration config)
config - the Saxon configurationprotected Configuration makeConfiguration()
public Configuration getConfiguration()
public boolean isObjectModelSupported(java.lang.String model)
isObjectModelSupported in class javax.xml.xpath.XPathFactorymodel - The URI identifying the object model.NamespaceConstant.OBJECT_MODEL_SAXON,
XPathConstants.DOM_OBJECT_MODEL,
NamespaceConstant.OBJECT_MODEL_JDOM, or
NamespaceConstant.OBJECT_MODEL_XOM, or
NamespaceConstant.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.public void setFeature(java.lang.String feature,
boolean b)
throws javax.xml.xpath.XPathFactoryConfigurationException
XMLConstants.FEATURE_SECURE_PROCESSING FeatureKeys.SCHEMA_VALIDATION: requests schema validation of source documents.
The property is rejected if the configuration is not schema-aware. setFeature in class javax.xml.xpath.XPathFactoryfeature - a URI identifying the featureb - true to set the feature on, false to set it offjavax.xml.xpath.XPathFactoryConfigurationException - if the feature name is not recognizedpublic boolean getFeature(java.lang.String feature)
throws javax.xml.xpath.XPathFactoryConfigurationException
FEATURE_SECURE_PROCESSING FeatureKeys.SCHEMA_VALIDATION: requests schema validation of source documents. getFeature in class javax.xml.xpath.XPathFactoryfeature - a URI identifying the featurejavax.xml.xpath.XPathFactoryConfigurationException - if the feature name is not recognizedpublic void setXPathVariableResolver(javax.xml.xpath.XPathVariableResolver xPathVariableResolver)
setXPathVariableResolver in class javax.xml.xpath.XPathFactoryxPathVariableResolver - The object used to resolve references to variables.public void setXPathFunctionResolver(javax.xml.xpath.XPathFunctionResolver xPathFunctionResolver)
setXPathFunctionResolver in class javax.xml.xpath.XPathFactoryxPathFunctionResolver - The object used to resolve references to external functions.public javax.xml.xpath.XPath newXPath()
newXPath in class javax.xml.xpath.XPathFactory