|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.xpath.XPathFactory
org.apache.xpath.jaxp.XPathFactoryImpl
public class XPathFactoryImpl
The XPathFactory builds XPaths.
| Field Summary | |
|---|---|
private static java.lang.String |
CLASS_NAME
Name of class as a constant to use for debugging. |
private boolean |
featureSecureProcessing
State of secure processing feature. |
private javax.xml.xpath.XPathFunctionResolver |
xPathFunctionResolver
XPathFunctionResolver for this XPathFactory and created XPaths. |
private javax.xml.xpath.XPathVariableResolver |
xPathVariableResolver
XPathVariableResolver for this XPathFactory and created XPaths |
| Fields inherited from class javax.xml.xpath.XPathFactory |
|---|
DEFAULT_OBJECT_MODEL_URI, DEFAULT_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
XPathFactoryImpl()
|
|
| Method Summary | |
|---|---|
boolean |
getFeature(java.lang.String name)
Get the state of the named feature. |
boolean |
isObjectModelSupported(java.lang.String objectModel)
Is specified object model supported by this XPathFactory? |
javax.xml.xpath.XPath |
newXPath()
Returns a new XPath object using the underlying
object model determined when the factory was instantiated. |
void |
setFeature(java.lang.String name,
boolean value)
Set a feature for this XPathFactory and
XPaths created by this factory. |
void |
setXPathFunctionResolver(javax.xml.xpath.XPathFunctionResolver resolver)
Establish a default function resolver. |
void |
setXPathVariableResolver(javax.xml.xpath.XPathVariableResolver resolver)
Establish a default variable resolver. |
| Methods inherited from class javax.xml.xpath.XPathFactory |
|---|
newInstance, newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String CLASS_NAME
Name of class as a constant to use for debugging.
private javax.xml.xpath.XPathFunctionResolver xPathFunctionResolver
XPathFunctionResolver for this XPathFactory and created XPaths.
private javax.xml.xpath.XPathVariableResolver xPathVariableResolver
XPathVariableResolver for this XPathFactory and created XPaths
private boolean featureSecureProcessing
State of secure processing feature.
| Constructor Detail |
|---|
public XPathFactoryImpl()
| Method Detail |
|---|
public boolean isObjectModelSupported(java.lang.String objectModel)
Is specified object model supported by this
XPathFactory?
isObjectModelSupported in class javax.xml.xpath.XPathFactoryobjectModel - Specifies the object model which the returned
XPathFactory will understand.
true if XPathFactory supports
objectModel, else false.
java.lang.NullPointerException - If objectModel is null.
java.lang.IllegalArgumentException - If objectModel.length() == 0.public javax.xml.xpath.XPath newXPath()
Returns a new XPath object using the underlying
object model determined when the factory was instantiated.
newXPath in class javax.xml.xpath.XPathFactoryXPath
public void setFeature(java.lang.String name,
boolean value)
throws javax.xml.xpath.XPathFactoryConfigurationException
Set a feature for this XPathFactory and
XPaths created by this factory.
Feature names are fully qualified URIs.
Implementations may define their own features.
An XPathFactoryConfigurationException is thrown if this
XPathFactory or the XPaths
it creates cannot support the feature.
It is possible for an XPathFactory to expose a feature
value but be unable to change its state.
See XPathFactory for full documentation
of specific features.
setFeature in class javax.xml.xpath.XPathFactoryname - Feature name.value - Is feature state true or false.
javax.xml.xpath.XPathFactoryConfigurationException - if this
XPathFactory or the XPaths
it creates cannot support this feature.
java.lang.NullPointerException - if name is
null.
public boolean getFeature(java.lang.String name)
throws javax.xml.xpath.XPathFactoryConfigurationException
Get the state of the named feature.
Feature names are fully qualified URIs.
Implementations may define their own features.
An XPathFactoryConfigurationException is thrown if this
XPathFactory or the XPaths
it creates cannot support the feature.
It is possible for an XPathFactory to expose a feature
value but be unable to change its state.
getFeature in class javax.xml.xpath.XPathFactoryname - Feature name.
javax.xml.xpath.XPathFactoryConfigurationException - if this
XPathFactory or the XPaths
it creates cannot support this feature.
java.lang.NullPointerException - if name is
null.public void setXPathFunctionResolver(javax.xml.xpath.XPathFunctionResolver resolver)
Establish a default function resolver.
Any XPath objects constructed from this factory will use
the specified resolver by default.
A NullPointerException is thrown if
resolver is null.
setXPathFunctionResolver in class javax.xml.xpath.XPathFactoryresolver - XPath function resolver.
java.lang.NullPointerException - If resolver is
null.public void setXPathVariableResolver(javax.xml.xpath.XPathVariableResolver resolver)
Establish a default variable resolver.
Any XPath objects constructed from this factory will use
the specified resolver by default.
A NullPointerException is thrown if resolver is null.
setXPathVariableResolver in class javax.xml.xpath.XPathFactoryresolver - Variable resolver.
java.lang.NullPointerException - If resolver is
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||