|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.xpath.XPathFactory net.sf.saxon.xpath.XPathFactoryImpl
public class XPathFactoryImpl
Saxon implementation of the JAXP 1.3 XPathFactory
Field Summary |
---|
Fields inherited from class javax.xml.xpath.XPathFactory |
---|
DEFAULT_OBJECT_MODEL_URI, DEFAULT_PROPERTY_NAME |
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. |
Methods inherited from class javax.xml.xpath.XPathFactory |
---|
newInstance, newInstance, newInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathFactoryImpl()
public XPathFactoryImpl(Configuration config)
config
- the Saxon configurationMethod Detail |
---|
public void setConfiguration(Configuration config)
config
- the Saxon Configuration to be usedpublic Configuration getConfiguration()
public boolean isObjectModelSupported(String model)
isObjectModelSupported
in class XPathFactory
model
- 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(String feature, boolean b) throws 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 XPathFactory
feature
- a URI identifying the featureb
- true to set the feature on, false to set it off
XPathFactoryConfigurationException
- if the feature name is not recognizedpublic boolean getFeature(String feature) throws XPathFactoryConfigurationException
FEATURE_SECURE_PROCESSING
FeatureKeys.SCHEMA_VALIDATION
: requests schema validation of source documents.
getFeature
in class XPathFactory
feature
- a URI identifying the feature
XPathFactoryConfigurationException
- if the feature name is not recognizedpublic void setXPathVariableResolver(XPathVariableResolver xPathVariableResolver)
setXPathVariableResolver
in class XPathFactory
xPathVariableResolver
- The object used to resolve references to variables.public void setXPathFunctionResolver(XPathFunctionResolver xPathFunctionResolver)
setXPathFunctionResolver
in class XPathFactory
xPathFunctionResolver
- The object used to resolve references to external functions.public XPath newXPath()
newXPath
in class XPathFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |