Megosztás a következőn keresztül:


IXPath Interface

Definition

XPath provides access to the XPath evaluation environment and expressions.

[Android.Runtime.Register("javax/xml/xpath/XPath", "", "Javax.Xml.Xpath.IXPathInvoker")]
public interface IXPath : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("javax/xml/xpath/XPath", "", "Javax.Xml.Xpath.IXPathInvoker")>]
type IXPath = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

XPath provides access to the XPath evaluation environment and expressions.

<table id="XPath-evaluation" border="1" cellpadding="2"> <thead> <tr> <th colspan="2">Evaluation of XPath Expressions.</th> </tr> </thead> <tbody> <tr> <td>context</td> <td> If a request is made to evaluate the expression in the absence of a context item, an empty document node will be used for the context. For the purposes of evaluating XPath expressions, a DocumentFragment is treated like a Document node. </td> </tr> <tr> <td>variables</td> <td> If the expression contains a variable reference, its value will be found through the XPathVariableResolver set with #setXPathVariableResolver(XPathVariableResolver resolver). An XPathExpressionException is raised if the variable resolver is undefined or the resolver returns null for the variable. The value of a variable must be immutable through the course of any single evaluation.</p> </td> </tr> <tr> <td>functions</td> <td> If the expression contains a function reference, the function will be found through the XPathFunctionResolver set with #setXPathFunctionResolver(XPathFunctionResolver resolver). An XPathExpressionException is raised if the function resolver is undefined or the function resolver returns null for the function.</p> </td> </tr> <tr> <td>QNames</td> <td> QNames in the expression are resolved against the XPath namespace context set with #setNamespaceContext(NamespaceContext nsContext). </td> </tr> <tr> <td>result</td> <td> This result of evaluating an expression is converted to an instance of the desired return type. Valid return types are defined in XPathConstants. Conversion to the return type follows XPath conversion rules.</p> </td> </tr> </table>

Added in 1.5.

Java documentation for javax.xml.xpath.XPath.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
NamespaceContext
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)
XPathFunctionResolver
XPathVariableResolver

Methods

Compile(String)

Compile an XPath expression for later evaluation.

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Evaluate(String, InputSource, QName)

Evaluate an XPath expression in the context of the specified InputSource and return the result as the specified type.

Evaluate(String, InputSource)

Evaluate an XPath expression in the context of the specified InputSource and return the result as a String.

Evaluate(String, Object, QName)

Evaluate an XPath expression in the specified context and return the result as the specified type.

Evaluate(String, Object)

Evaluate an XPath expression in the specified context and return the result as a String.

Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Reset()

Reset this XPath to its original configuration.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to