Home | History | Annotate | Download | only in xpath

Lines Matching defs:xpathFactory

17 // $Id: XPathFactory.java 888889 2009-12-09 17:43:18Z mrglavas $
22 * <p>An <code>XPathFactory</code> instance can be used to create
32 public abstract class XPathFactory {
38 public static final String DEFAULT_PROPERTY_NAME = "javax.xml.xpath.XPathFactory";
48 * should be used to create a new instance of an <code>XPathFactory</code>.</p>
50 protected XPathFactory() {
54 * <p>Get a new <code>XPathFactory</code> instance using the default object model,
65 * @return Instance of an <code>XPathFactory</code>.
67 public static final XPathFactory newInstance() {
73 "XPathFactory#newInstance() failed to create an XPathFactory for the default object model: "
82 * <p>Get a new <code>XPathFactory</code> instance using the specified object model.</p>
84 * <p>To find a <code>XPathFactory</code> object,
98 * The class loader is asked for service provider provider-configuration files matching <code>javax.xml.xpath.XPathFactory</code>
108 * Platform default <code>XPathFactory</code> is located in a platform specific way.
109 * There must be a platform default XPathFactory for the W3C DOM, i.e. {@link #DEFAULT_OBJECT_MODEL_URI}.
127 * @return Instance of an <code>XPathFactory</code>.
133 public static final XPathFactory newInstance(final String uri)
137 "XPathFactory#newInstance(String uri) cannot be called with uri == null"
142 "XPathFactory#newInstance(String uri) cannot be called with uri == \"\""
148 classLoader = XPathFactory.class.getClassLoader();
150 XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).newFactory(uri);
151 if (xpathFactory == null) {
153 "No XPathFactory implementation found for the object model: "
157 return xpathFactory;
161 * @return Instance of an <code>XPathFactory</code>.
167 public static XPathFactory newInstance(String uri, String factoryClassName,
171 "XPathFactory#newInstance(String uri) cannot be called with uri == null"
176 "XPathFactory#newInstance(String uri) cannot be called with uri == \"\""
185 XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
186 if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) {
188 "No XPathFactory implementation found for the object model: "
192 return xpathFactory;
196 * <p>Is specified object model supported by this <code>XPathFactory</code>?</p>
198 * @param objectModel Specifies the object model which the returned <code>XPathFactory</code> will understand.
200 * @return <code>true</code> if <code>XPathFactory</code> supports <code>objectModel</code>, else <code>false</code>.
208 * <p>Set a feature for this <code>XPathFactory</code> and <code>XPath</code>s created by this factory.</p>
213 * An {@link XPathFactoryConfigurationException} is thrown if this <code>XPathFactory</code> or the <code>XPath</code>s
215 * It is possible for an <code>XPathFactory</code> to expose a feature value but be unable to change its state.
228 * @throws XPathFactoryConfigurationException if this <code>XPathFactory</code> or the <code>XPath</code>s
241 * An {@link XPathFactoryConfigurationException} is thrown if this <code>XPathFactory</code> or the <code>XPath</code>s
243 * It is possible for an <code>XPathFactory</code> to expose a feature value but be unable to change its state.
250 * @throws XPathFactoryConfigurationException if this <code>XPathFactory</code> or the <code>XPath</code>s
287 * model determined when the <code>XPathFactory</code> was instantiated.</p>