PageRenderTime 50ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/Generated/v4.4/Javax.Xml.Xpath.cs

https://gitlab.com/Pfhoenix/api
C# | 635 lines | 205 code | 59 blank | 371 comment | 0 complexity | a37fd980397d5797441659f2d61a09c3 MD5 | raw file
  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Javax.Xml.Xpath.cs
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. #pragma warning disable 1717
  17. namespace Javax.Xml.Xpath
  18. {
  19. /// <summary>
  20. /// <para>XPath constants.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para> </para><para>1.5 </para></para>
  21. /// </summary>
  22. /// <java-name>
  23. /// javax/xml/xpath/XPathConstants
  24. /// </java-name>
  25. [Dot42.DexImport("javax/xml/xpath/XPathConstants", AccessFlags = 33)]
  26. public partial class XPathConstants
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>The XPath 1.0 number data type.</para><para>Maps to Java Double.</para>
  31. /// </summary>
  32. /// <java-name>
  33. /// NUMBER
  34. /// </java-name>
  35. [Dot42.DexImport("NUMBER", "Ljavax/xml/namespace/QName;", AccessFlags = 25)]
  36. public static readonly global::Javax.Xml.Namespace.QName NUMBER;
  37. /// <summary>
  38. /// <para>The XPath 1.0 string data type.</para><para>Maps to Java String.</para>
  39. /// </summary>
  40. /// <java-name>
  41. /// STRING
  42. /// </java-name>
  43. [Dot42.DexImport("STRING", "Ljavax/xml/namespace/QName;", AccessFlags = 25)]
  44. public static readonly global::Javax.Xml.Namespace.QName STRING;
  45. /// <summary>
  46. /// <para>The XPath 1.0 boolean data type.</para><para>Maps to Java Boolean.</para>
  47. /// </summary>
  48. /// <java-name>
  49. /// BOOLEAN
  50. /// </java-name>
  51. [Dot42.DexImport("BOOLEAN", "Ljavax/xml/namespace/QName;", AccessFlags = 25)]
  52. public static readonly global::Javax.Xml.Namespace.QName BOOLEAN;
  53. /// <summary>
  54. /// <para>The XPath 1.0 NodeSet data type.</para><para>Maps to Java org.w3c.dom.NodeList.</para>
  55. /// </summary>
  56. /// <java-name>
  57. /// NODESET
  58. /// </java-name>
  59. [Dot42.DexImport("NODESET", "Ljavax/xml/namespace/QName;", AccessFlags = 25)]
  60. public static readonly global::Javax.Xml.Namespace.QName NODESET;
  61. /// <summary>
  62. /// <para>The XPath 1.0 NodeSet data type.</para><para>Maps to Java org.w3c.dom.Node.</para>
  63. /// </summary>
  64. /// <java-name>
  65. /// NODE
  66. /// </java-name>
  67. [Dot42.DexImport("NODE", "Ljavax/xml/namespace/QName;", AccessFlags = 25)]
  68. public static readonly global::Javax.Xml.Namespace.QName NODE;
  69. /// <summary>
  70. /// <para>The URI for the DOM object model, "http://java.sun.com/jaxp/xpath/dom".</para>
  71. /// </summary>
  72. /// <java-name>
  73. /// DOM_OBJECT_MODEL
  74. /// </java-name>
  75. [Dot42.DexImport("DOM_OBJECT_MODEL", "Ljava/lang/String;", AccessFlags = 25)]
  76. public const string DOM_OBJECT_MODEL = "http://java.sun.com/jaxp/xpath/dom";
  77. /// <summary>
  78. /// <para>Private constructor to prevent instantiation.</para>
  79. /// </summary>
  80. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  81. internal XPathConstants() /* MethodBuilder.Create */
  82. {
  83. }
  84. }
  85. /// <summary>
  86. /// <para><code>XPathFunctionResolver</code> provides access to the set of user defined <code>XPathFunction</code>s.</para><para>XPath functions are resolved by name and arity. The resolver is not needed for XPath built-in functions and the resolver <b><b>cannot</b></b> be used to override those functions.</para><para>In particular, the resolver is only called for functions in an another namespace (functions with an explicit prefix). This means that you cannot use the <code>XPathFunctionResolver</code> to implement specifications like which extend the function library of XPath 1.0 in the same namespace. This is a consequence of the design of the resolver.</para><para>If you wish to implement additional built-in functions, you will have to extend the underlying implementation directly.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para> </para><para>1.5 </para></para>
  87. /// </summary>
  88. /// <java-name>
  89. /// javax/xml/xpath/XPathFunctionResolver
  90. /// </java-name>
  91. [Dot42.DexImport("javax/xml/xpath/XPathFunctionResolver", AccessFlags = 1537)]
  92. public partial interface IXPathFunctionResolver
  93. /* scope: __dot42__ */
  94. {
  95. /// <summary>
  96. /// <para>Find a function in the set of available functions.</para><para>If <code>functionName</code> or <code>arity</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown.</para><para></para>
  97. /// </summary>
  98. /// <returns>
  99. /// <para>The function or <code>null</code> if no function named <code>functionName</code> with <code>arity</code> arguments exists.</para>
  100. /// </returns>
  101. /// <java-name>
  102. /// resolveFunction
  103. /// </java-name>
  104. [Dot42.DexImport("resolveFunction", "(Ljavax/xml/namespace/QName;I)Ljavax/xml/xpath/XPathFunction;", AccessFlags = 1025)]
  105. global::Javax.Xml.Xpath.IXPathFunction ResolveFunction(global::Javax.Xml.Namespace.QName functionName, int arity) /* MethodBuilder.Create */ ;
  106. }
  107. /// <summary>
  108. /// <para><code>XPathFunction</code> provides access to XPath functions.</para><para>Functions are identified by QName and arity in XPath.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para>1.5 </para></para>
  109. /// </summary>
  110. /// <java-name>
  111. /// javax/xml/xpath/XPathFunction
  112. /// </java-name>
  113. [Dot42.DexImport("javax/xml/xpath/XPathFunction", AccessFlags = 1537)]
  114. public partial interface IXPathFunction
  115. /* scope: __dot42__ */
  116. {
  117. /// <summary>
  118. /// <para>Evaluate the function with the specified arguments.</para><para>To the greatest extent possible, side-effects should be avoided in the definition of extension functions. The implementation evaluating an XPath expression is under no obligation to call extension functions in any particular order or any particular number of times.</para><para></para>
  119. /// </summary>
  120. /// <returns>
  121. /// <para>The result of evaluating the <code>XPath</code> function as an <code>Object</code>.</para>
  122. /// </returns>
  123. /// <java-name>
  124. /// evaluate
  125. /// </java-name>
  126. [Dot42.DexImport("evaluate", "(Ljava/util/List;)Ljava/lang/Object;", AccessFlags = 1025)]
  127. object Evaluate(global::Java.Util.IList<object> args) /* MethodBuilder.Create */ ;
  128. }
  129. /// <summary>
  130. /// <para><code>XPathVariableResolver</code> provides access to the set of user defined XPath variables.</para><para>The <code>XPathVariableResolver</code> and the XPath evaluator must adhere to a contract that cannot be directly enforced by the API. Although variables may be mutable, that is, an application may wish to evaluate the same XPath expression more than once with different variable values, in the course of evaluating any single XPath expression, a variable's value <b><b>must</b></b> be immutable.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para>1.5 </para></para>
  131. /// </summary>
  132. /// <java-name>
  133. /// javax/xml/xpath/XPathVariableResolver
  134. /// </java-name>
  135. [Dot42.DexImport("javax/xml/xpath/XPathVariableResolver", AccessFlags = 1537)]
  136. public partial interface IXPathVariableResolver
  137. /* scope: __dot42__ */
  138. {
  139. /// <summary>
  140. /// <para>Find a variable in the set of available variables.</para><para>If <code>variableName</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown.</para><para></para>
  141. /// </summary>
  142. /// <returns>
  143. /// <para>The variables value, or <code>null</code> if no variable named <code>variableName</code> exists. The value returned must be of a type appropriate for the underlying object model.</para>
  144. /// </returns>
  145. /// <java-name>
  146. /// resolveVariable
  147. /// </java-name>
  148. [Dot42.DexImport("resolveVariable", "(Ljavax/xml/namespace/QName;)Ljava/lang/Object;", AccessFlags = 1025)]
  149. object ResolveVariable(global::Javax.Xml.Namespace.QName variableName) /* MethodBuilder.Create */ ;
  150. }
  151. /// <summary>
  152. /// <para><code>XPathExpressionException</code> represents an error in an XPath expression.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para>1.5 </para></para>
  153. /// </summary>
  154. /// <java-name>
  155. /// javax/xml/xpath/XPathExpressionException
  156. /// </java-name>
  157. [Dot42.DexImport("javax/xml/xpath/XPathExpressionException", AccessFlags = 33)]
  158. public partial class XPathExpressionException : global::Javax.Xml.Xpath.XPathException
  159. /* scope: __dot42__ */
  160. {
  161. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  162. public XPathExpressionException(string @string) /* MethodBuilder.Create */
  163. {
  164. }
  165. [Dot42.DexImport("<init>", "(Ljava/lang/Throwable;)V", AccessFlags = 1)]
  166. public XPathExpressionException(global::System.Exception exception) /* MethodBuilder.Create */
  167. {
  168. }
  169. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  170. internal XPathExpressionException() /* TypeBuilder.AddDefaultConstructor */
  171. {
  172. }
  173. }
  174. /// <summary>
  175. /// <para><code>XPath</code> provides access to the XPath evaluation environment and expressions.</para><para><table></table></para><para>Evaluation of XPath Expressions. &lt;/thead&gt; &lt;tbody&gt; </para><para>context </para><para>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. </para><para>variables </para><para>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 <code>null</code> for the variable. The value of a variable must be immutable through the course of any single evaluation.</para><para>functions </para><para>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 <code>null</code> for the function.</para><para>QNames </para><para>QNames in the expression are resolved against the XPath namespace context set with setNamespaceContext(NamespaceContext nsContext). </para><para>result </para><para>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.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>569998 </para>, <title>Date:</title><para>2007-08-26 21:40:02 -0700 (Sun, 26 Aug 2007) </para><para> </para><para>1.5 </para></para>
  176. /// </summary>
  177. /// <java-name>
  178. /// javax/xml/xpath/XPath
  179. /// </java-name>
  180. [Dot42.DexImport("javax/xml/xpath/XPath", AccessFlags = 1537)]
  181. public partial interface IXPath
  182. /* scope: __dot42__ */
  183. {
  184. /// <summary>
  185. /// <para>Reset this <code>XPath</code> to its original configuration.</para><para><code>XPath</code> is reset to the same state as when it was created with XPathFactory#newXPath(). <code>reset()</code> is designed to allow the reuse of existing <code>XPath</code>s thus saving resources associated with the creation of new <code>XPath</code>s.</para><para>The reset <code>XPath</code> is not guaranteed to have the same XPathFunctionResolver, XPathVariableResolver or NamespaceContext <code>Object</code>s, e.g. Object#equals(Object obj). It is guaranteed to have a functionally equal <code>XPathFunctionResolver</code>, <code>XPathVariableResolver</code> and <code>NamespaceContext</code>.</para>
  186. /// </summary>
  187. /// <java-name>
  188. /// reset
  189. /// </java-name>
  190. [Dot42.DexImport("reset", "()V", AccessFlags = 1025)]
  191. void Reset() /* MethodBuilder.Create */ ;
  192. /// <summary>
  193. /// <para>Establish a variable resolver.</para><para>A <code>NullPointerException</code> is thrown if <code>resolver</code> is <code>null</code>.</para><para></para>
  194. /// </summary>
  195. /// <java-name>
  196. /// setXPathVariableResolver
  197. /// </java-name>
  198. [Dot42.DexImport("setXPathVariableResolver", "(Ljavax/xml/xpath/XPathVariableResolver;)V", AccessFlags = 1025)]
  199. void SetXPathVariableResolver(global::Javax.Xml.Xpath.IXPathVariableResolver resolver) /* MethodBuilder.Create */ ;
  200. /// <summary>
  201. /// <para>Return the current variable resolver.</para><para><code>null</code> is returned in no variable resolver is in effect.</para><para></para>
  202. /// </summary>
  203. /// <returns>
  204. /// <para>Current variable resolver. </para>
  205. /// </returns>
  206. /// <java-name>
  207. /// getXPathVariableResolver
  208. /// </java-name>
  209. [Dot42.DexImport("getXPathVariableResolver", "()Ljavax/xml/xpath/XPathVariableResolver;", AccessFlags = 1025)]
  210. global::Javax.Xml.Xpath.IXPathVariableResolver GetXPathVariableResolver() /* MethodBuilder.Create */ ;
  211. /// <summary>
  212. /// <para>Establish a function resolver.</para><para>A <code>NullPointerException</code> is thrown if <code>resolver</code> is <code>null</code>.</para><para></para>
  213. /// </summary>
  214. /// <java-name>
  215. /// setXPathFunctionResolver
  216. /// </java-name>
  217. [Dot42.DexImport("setXPathFunctionResolver", "(Ljavax/xml/xpath/XPathFunctionResolver;)V", AccessFlags = 1025)]
  218. void SetXPathFunctionResolver(global::Javax.Xml.Xpath.IXPathFunctionResolver resolver) /* MethodBuilder.Create */ ;
  219. /// <summary>
  220. /// <para>Return the current function resolver.</para><para><code>null</code> is returned in no function resolver is in effect.</para><para></para>
  221. /// </summary>
  222. /// <returns>
  223. /// <para>Current function resolver. </para>
  224. /// </returns>
  225. /// <java-name>
  226. /// getXPathFunctionResolver
  227. /// </java-name>
  228. [Dot42.DexImport("getXPathFunctionResolver", "()Ljavax/xml/xpath/XPathFunctionResolver;", AccessFlags = 1025)]
  229. global::Javax.Xml.Xpath.IXPathFunctionResolver GetXPathFunctionResolver() /* MethodBuilder.Create */ ;
  230. /// <summary>
  231. /// <para>Establish a namespace context.</para><para>A <code>NullPointerException</code> is thrown if <code>nsContext</code> is <code>null</code>.</para><para></para>
  232. /// </summary>
  233. /// <java-name>
  234. /// setNamespaceContext
  235. /// </java-name>
  236. [Dot42.DexImport("setNamespaceContext", "(Ljavax/xml/namespace/NamespaceContext;)V", AccessFlags = 1025)]
  237. void SetNamespaceContext(global::Javax.Xml.Namespace.INamespaceContext nsContext) /* MethodBuilder.Create */ ;
  238. /// <summary>
  239. /// <para>Return the current namespace context.</para><para><code>null</code> is returned in no namespace context is in effect.</para><para></para>
  240. /// </summary>
  241. /// <returns>
  242. /// <para>Current Namespace context. </para>
  243. /// </returns>
  244. /// <java-name>
  245. /// getNamespaceContext
  246. /// </java-name>
  247. [Dot42.DexImport("getNamespaceContext", "()Ljavax/xml/namespace/NamespaceContext;", AccessFlags = 1025)]
  248. global::Javax.Xml.Namespace.INamespaceContext GetNamespaceContext() /* MethodBuilder.Create */ ;
  249. /// <summary>
  250. /// <para>Compile an XPath expression for later evaluation.</para><para>If <code>expression</code> contains any XPathFunctions, they must be available via the XPathFunctionResolver. An XPathExpressionException will be thrown if the <code>XPathFunction</code> cannot be resolved with the <code>XPathFunctionResolver</code>.</para><para>If <code>expression</code> is <code>null</code>, a <code>NullPointerException</code> is thrown.</para><para></para>
  251. /// </summary>
  252. /// <returns>
  253. /// <para>Compiled XPath expression.</para>
  254. /// </returns>
  255. /// <java-name>
  256. /// compile
  257. /// </java-name>
  258. [Dot42.DexImport("compile", "(Ljava/lang/String;)Ljavax/xml/xpath/XPathExpression;", AccessFlags = 1025)]
  259. global::Javax.Xml.Xpath.IXPathExpression Compile(string expression) /* MethodBuilder.Create */ ;
  260. /// <java-name>
  261. /// evaluate
  262. /// </java-name>
  263. [Dot42.DexImport("evaluate", "(Ljava/lang/String;Ljava/lang/Object;Ljavax/xml/namespace/QName;)Ljava/lang/Objec" +
  264. "t;", AccessFlags = 1025)]
  265. object Evaluate(string @string, object @object, global::Javax.Xml.Namespace.QName qName) /* MethodBuilder.Create */ ;
  266. /// <java-name>
  267. /// evaluate
  268. /// </java-name>
  269. [Dot42.DexImport("evaluate", "(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;", AccessFlags = 1025)]
  270. string Evaluate(string @string, object @object) /* MethodBuilder.Create */ ;
  271. /// <java-name>
  272. /// evaluate
  273. /// </java-name>
  274. [Dot42.DexImport("evaluate", "(Ljava/lang/String;Lorg/xml/sax/InputSource;Ljavax/xml/namespace/QName;)Ljava/lan" +
  275. "g/Object;", AccessFlags = 1025)]
  276. object Evaluate(string @string, global::Org.Xml.Sax.InputSource inputSource, global::Javax.Xml.Namespace.QName qName) /* MethodBuilder.Create */ ;
  277. /// <java-name>
  278. /// evaluate
  279. /// </java-name>
  280. [Dot42.DexImport("evaluate", "(Ljava/lang/String;Lorg/xml/sax/InputSource;)Ljava/lang/String;", AccessFlags = 1025)]
  281. string Evaluate(string @string, global::Org.Xml.Sax.InputSource inputSource) /* MethodBuilder.Create */ ;
  282. }
  283. /// <summary>
  284. /// <para><code>XPathFactoryConfigurationException</code> represents a configuration error in a <code>XPathFactory</code> environment.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para>1.5 </para></para>
  285. /// </summary>
  286. /// <java-name>
  287. /// javax/xml/xpath/XPathFactoryConfigurationException
  288. /// </java-name>
  289. [Dot42.DexImport("javax/xml/xpath/XPathFactoryConfigurationException", AccessFlags = 33)]
  290. public partial class XPathFactoryConfigurationException : global::Javax.Xml.Xpath.XPathException
  291. /* scope: __dot42__ */
  292. {
  293. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  294. public XPathFactoryConfigurationException(string @string) /* MethodBuilder.Create */
  295. {
  296. }
  297. [Dot42.DexImport("<init>", "(Ljava/lang/Throwable;)V", AccessFlags = 1)]
  298. public XPathFactoryConfigurationException(global::System.Exception exception) /* MethodBuilder.Create */
  299. {
  300. }
  301. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  302. internal XPathFactoryConfigurationException() /* TypeBuilder.AddDefaultConstructor */
  303. {
  304. }
  305. }
  306. /// <summary>
  307. /// <para>An <code>XPathFactory</code> instance can be used to create javax.xml.xpath.XPath objects.</para><para>See newInstance(String uri) for lookup mechanism.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>888889 </para>, <title>Date:</title><para>2009-12-09 09:43:18 -0800 (Wed, 09 Dec 2009) </para><para>1.5 </para></para>
  308. /// </summary>
  309. /// <java-name>
  310. /// javax/xml/xpath/XPathFactory
  311. /// </java-name>
  312. [Dot42.DexImport("javax/xml/xpath/XPathFactory", AccessFlags = 1057)]
  313. public abstract partial class XPathFactory
  314. /* scope: __dot42__ */
  315. {
  316. /// <summary>
  317. /// <para>The default property name according to the JAXP spec.</para>
  318. /// </summary>
  319. /// <java-name>
  320. /// DEFAULT_PROPERTY_NAME
  321. /// </java-name>
  322. [Dot42.DexImport("DEFAULT_PROPERTY_NAME", "Ljava/lang/String;", AccessFlags = 25)]
  323. public const string DEFAULT_PROPERTY_NAME = "javax.xml.xpath.XPathFactory";
  324. /// <summary>
  325. /// <para>Default Object Model URI.</para>
  326. /// </summary>
  327. /// <java-name>
  328. /// DEFAULT_OBJECT_MODEL_URI
  329. /// </java-name>
  330. [Dot42.DexImport("DEFAULT_OBJECT_MODEL_URI", "Ljava/lang/String;", AccessFlags = 25)]
  331. public const string DEFAULT_OBJECT_MODEL_URI = "http://java.sun.com/jaxp/xpath/dom";
  332. /// <summary>
  333. /// <para>Protected constructor as newInstance(), newInstance(String uri) or newInstance(String uri, String factoryClassName, ClassLoader classLoader) should be used to create a new instance of an <code>XPathFactory</code>.</para>
  334. /// </summary>
  335. [Dot42.DexImport("<init>", "()V", AccessFlags = 4)]
  336. protected internal XPathFactory() /* MethodBuilder.Create */
  337. {
  338. }
  339. /// <summary>
  340. /// <para>Get a new <code>XPathFactory</code> instance using the default object model, DEFAULT_OBJECT_MODEL_URI, the W3C DOM.</para><para>This method is functionally equivalent to:</para><para><pre>
  341. /// newInstance(DEFAULT_OBJECT_MODEL_URI)
  342. /// </pre></para><para>Since the implementation for the W3C DOM is always available, this method will never fail.</para><para></para>
  343. /// </summary>
  344. /// <returns>
  345. /// <para>Instance of an <code>XPathFactory</code>. </para>
  346. /// </returns>
  347. /// <java-name>
  348. /// newInstance
  349. /// </java-name>
  350. [Dot42.DexImport("newInstance", "()Ljavax/xml/xpath/XPathFactory;", AccessFlags = 25)]
  351. public static global::Javax.Xml.Xpath.XPathFactory NewInstance() /* MethodBuilder.Create */
  352. {
  353. return default(global::Javax.Xml.Xpath.XPathFactory);
  354. }
  355. /// <summary>
  356. /// <para>Get a new <code>XPathFactory</code> instance using the specified object model.</para><para>To find a <code>XPathFactory</code> object, this method looks the following places in the following order where "the class loader" refers to the context class loader:</para><para><ol><li><para>If the system property DEFAULT_PROPERTY_NAME + ":uri" is present, where uri is the parameter to this method, then its value is read as a class name. The method will try to create a new instance of this class by using the class loader, and returns it if it is successfully created. </para></li><li><para>${java.home}/lib/jaxp.properties is read and the value associated with the key being the system property above is looked for. If present, the value is processed just like above. </para></li><li><para>The class loader is asked for service provider provider-configuration files matching <code>javax.xml.xpath.XPathFactory</code> in the resource directory META-INF/services. See the JAR File Specification for file format and parsing rules. Each potential service provider is required to implement the method: <pre>
  357. /// isObjectModelSupported(String objectModel)
  358. /// </pre> The first service provider found in class loader order that supports the specified object model is returned. </para></li><li><para>Platform default <code>XPathFactory</code> is located in a platform specific way. There must be a platform default XPathFactory for the W3C DOM, i.e. DEFAULT_OBJECT_MODEL_URI. </para></li></ol></para><para>If everything fails, an <code>XPathFactoryConfigurationException</code> will be thrown.</para><para>Tip for Trouble-shooting:</para><para>See java.util.Properties#load(java.io.InputStream) for exactly how a property file is parsed. In particular, colons ':' need to be escaped in a property file, so make sure the URIs are properly escaped in it. For example:</para><para><pre>
  359. /// http\://java.sun.com/jaxp/xpath/dom=org.acme.DomXPathFactory
  360. /// </pre></para><para></para>
  361. /// </summary>
  362. /// <returns>
  363. /// <para>Instance of an <code>XPathFactory</code>.</para>
  364. /// </returns>
  365. /// <java-name>
  366. /// newInstance
  367. /// </java-name>
  368. [Dot42.DexImport("newInstance", "(Ljava/lang/String;)Ljavax/xml/xpath/XPathFactory;", AccessFlags = 25)]
  369. public static global::Javax.Xml.Xpath.XPathFactory NewInstance(string uri) /* MethodBuilder.Create */
  370. {
  371. return default(global::Javax.Xml.Xpath.XPathFactory);
  372. }
  373. /// <summary>
  374. /// <para></para>
  375. /// </summary>
  376. /// <returns>
  377. /// <para>Instance of an <code>XPathFactory</code>.</para>
  378. /// </returns>
  379. /// <java-name>
  380. /// newInstance
  381. /// </java-name>
  382. [Dot42.DexImport("newInstance", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/xpath/XPa" +
  383. "thFactory;", AccessFlags = 9)]
  384. public static global::Javax.Xml.Xpath.XPathFactory NewInstance(string uri, string factoryClassName, global::Java.Lang.ClassLoader classLoader) /* MethodBuilder.Create */
  385. {
  386. return default(global::Javax.Xml.Xpath.XPathFactory);
  387. }
  388. /// <summary>
  389. /// <para>Is specified object model supported by this <code>XPathFactory</code>?</para><para></para>
  390. /// </summary>
  391. /// <returns>
  392. /// <para><code>true</code> if <code>XPathFactory</code> supports <code>objectModel</code>, else <code>false</code>.</para>
  393. /// </returns>
  394. /// <java-name>
  395. /// isObjectModelSupported
  396. /// </java-name>
  397. [Dot42.DexImport("isObjectModelSupported", "(Ljava/lang/String;)Z", AccessFlags = 1025)]
  398. public abstract bool IsObjectModelSupported(string objectModel) /* MethodBuilder.Create */ ;
  399. /// <summary>
  400. /// <para>Set a feature for this <code>XPathFactory</code> and <code>XPath</code>s created by this factory.</para><para>Feature names are fully qualified java.net.URIs. Implementations may define their own features. An XPathFactoryConfigurationException is thrown if this <code>XPathFactory</code> or the <code>XPath</code>s it creates cannot support the feature. It is possible for an <code>XPathFactory</code> to expose a feature value but be unable to change its state. </para><para>All implementations are required to support the javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING feature. When the feature is <code>true</code>, any reference to an external function is an error. Under these conditions, the implementation must not call the XPathFunctionResolver and must throw an XPathFunctionException. </para><para></para>
  401. /// </summary>
  402. /// <java-name>
  403. /// setFeature
  404. /// </java-name>
  405. [Dot42.DexImport("setFeature", "(Ljava/lang/String;Z)V", AccessFlags = 1025)]
  406. public abstract void SetFeature(string name, bool value) /* MethodBuilder.Create */ ;
  407. /// <summary>
  408. /// <para>Get the state of the named feature.</para><para>Feature names are fully qualified java.net.URIs. Implementations may define their own features. An XPathFactoryConfigurationException is thrown if this <code>XPathFactory</code> or the <code>XPath</code>s it creates cannot support the feature. It is possible for an <code>XPathFactory</code> to expose a feature value but be unable to change its state. </para><para></para>
  409. /// </summary>
  410. /// <returns>
  411. /// <para>State of the named feature.</para>
  412. /// </returns>
  413. /// <java-name>
  414. /// getFeature
  415. /// </java-name>
  416. [Dot42.DexImport("getFeature", "(Ljava/lang/String;)Z", AccessFlags = 1025)]
  417. public abstract bool GetFeature(string name) /* MethodBuilder.Create */ ;
  418. /// <summary>
  419. /// <para>Establish a default variable resolver.</para><para>Any <code>XPath</code> objects constructed from this factory will use the specified resolver by default.</para><para>A <code>NullPointerException</code> is thrown if <code>resolver</code> is <code>null</code>.</para><para></para>
  420. /// </summary>
  421. /// <java-name>
  422. /// setXPathVariableResolver
  423. /// </java-name>
  424. [Dot42.DexImport("setXPathVariableResolver", "(Ljavax/xml/xpath/XPathVariableResolver;)V", AccessFlags = 1025)]
  425. public abstract void SetXPathVariableResolver(global::Javax.Xml.Xpath.IXPathVariableResolver resolver) /* MethodBuilder.Create */ ;
  426. /// <summary>
  427. /// <para>Establish a default function resolver.</para><para>Any <code>XPath</code> objects constructed from this factory will use the specified resolver by default.</para><para>A <code>NullPointerException</code> is thrown if <code>resolver</code> is <code>null</code>.</para><para></para>
  428. /// </summary>
  429. /// <java-name>
  430. /// setXPathFunctionResolver
  431. /// </java-name>
  432. [Dot42.DexImport("setXPathFunctionResolver", "(Ljavax/xml/xpath/XPathFunctionResolver;)V", AccessFlags = 1025)]
  433. public abstract void SetXPathFunctionResolver(global::Javax.Xml.Xpath.IXPathFunctionResolver resolver) /* MethodBuilder.Create */ ;
  434. /// <summary>
  435. /// <para>Return a new <code>XPath</code> using the underlying object model determined when the <code>XPathFactory</code> was instantiated.</para><para></para>
  436. /// </summary>
  437. /// <returns>
  438. /// <para>New instance of an <code>XPath</code>. </para>
  439. /// </returns>
  440. /// <java-name>
  441. /// newXPath
  442. /// </java-name>
  443. [Dot42.DexImport("newXPath", "()Ljavax/xml/xpath/XPath;", AccessFlags = 1025)]
  444. public abstract global::Javax.Xml.Xpath.IXPath NewXPath() /* MethodBuilder.Create */ ;
  445. }
  446. /// <summary>
  447. /// <para><code>XPathFunctionException</code> represents an error with an XPath function.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para>1.5 </para></para>
  448. /// </summary>
  449. /// <java-name>
  450. /// javax/xml/xpath/XPathFunctionException
  451. /// </java-name>
  452. [Dot42.DexImport("javax/xml/xpath/XPathFunctionException", AccessFlags = 33)]
  453. public partial class XPathFunctionException : global::Javax.Xml.Xpath.XPathExpressionException
  454. /* scope: __dot42__ */
  455. {
  456. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  457. public XPathFunctionException(string @string) /* MethodBuilder.Create */
  458. {
  459. }
  460. [Dot42.DexImport("<init>", "(Ljava/lang/Throwable;)V", AccessFlags = 1)]
  461. public XPathFunctionException(global::System.Exception exception) /* MethodBuilder.Create */
  462. {
  463. }
  464. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  465. internal XPathFunctionException() /* TypeBuilder.AddDefaultConstructor */
  466. {
  467. }
  468. }
  469. /// <summary>
  470. /// <para><code>XPathException</code> represents a generic XPath exception.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para>1.5 </para></para>
  471. /// </summary>
  472. /// <java-name>
  473. /// javax/xml/xpath/XPathException
  474. /// </java-name>
  475. [Dot42.DexImport("javax/xml/xpath/XPathException", AccessFlags = 33)]
  476. public partial class XPathException : global::System.Exception
  477. /* scope: __dot42__ */
  478. {
  479. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  480. public XPathException(string @string) /* MethodBuilder.Create */
  481. {
  482. }
  483. [Dot42.DexImport("<init>", "(Ljava/lang/Throwable;)V", AccessFlags = 1)]
  484. public XPathException(global::System.Exception exception) /* MethodBuilder.Create */
  485. {
  486. }
  487. /// <java-name>
  488. /// getCause
  489. /// </java-name>
  490. [Dot42.DexImport("getCause", "()Ljava/lang/Throwable;", AccessFlags = 1)]
  491. public override global::System.Exception GetCause() /* MethodBuilder.Create */
  492. {
  493. return default(global::System.Exception);
  494. }
  495. /// <java-name>
  496. /// printStackTrace
  497. /// </java-name>
  498. [Dot42.DexImport("printStackTrace", "(Ljava/io/PrintStream;)V", AccessFlags = 1)]
  499. public override void PrintStackTrace(global::Java.Io.PrintStream s) /* MethodBuilder.Create */
  500. {
  501. }
  502. /// <java-name>
  503. /// printStackTrace
  504. /// </java-name>
  505. [Dot42.DexImport("printStackTrace", "()V", AccessFlags = 1)]
  506. public override void PrintStackTrace() /* MethodBuilder.Create */
  507. {
  508. }
  509. /// <java-name>
  510. /// printStackTrace
  511. /// </java-name>
  512. [Dot42.DexImport("printStackTrace", "(Ljava/io/PrintWriter;)V", AccessFlags = 1)]
  513. public override void PrintStackTrace(global::Java.Io.PrintWriter s) /* MethodBuilder.Create */
  514. {
  515. }
  516. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  517. internal XPathException() /* TypeBuilder.AddDefaultConstructor */
  518. {
  519. }
  520. }
  521. /// <summary>
  522. /// <para><code>XPathExpression</code> provides access to compiled XPath expressions.</para><para><table></table></para><para>Evaluation of XPath Expressions. &lt;/thead&gt; &lt;tbody&gt; </para><para>context </para><para>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. </para><para>variables </para><para>If the expression contains a variable reference, its value will be found through the XPathVariableResolver. An XPathExpressionException is raised if the variable resolver is undefined or the resolver returns <code>null</code> for the variable. The value of a variable must be immutable through the course of any single evaluation.</para><para>functions </para><para>If the expression contains a function reference, the function will be found through the XPathFunctionResolver. An XPathExpressionException is raised if the function resolver is undefined or the function resolver returns <code>null</code> for the function.</para><para>QNames </para><para>QNames in the expression are resolved against the XPath namespace context. </para><para>result </para><para>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.</para><para><para> </para><simplesectsep></simplesectsep><para> </para><para></para><title>Revision:</title><para>446598 </para>, <title>Date:</title><para>2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) </para><para> </para><para>1.5 </para></para>
  523. /// </summary>
  524. /// <java-name>
  525. /// javax/xml/xpath/XPathExpression
  526. /// </java-name>
  527. [Dot42.DexImport("javax/xml/xpath/XPathExpression", AccessFlags = 1537)]
  528. public partial interface IXPathExpression
  529. /* scope: __dot42__ */
  530. {
  531. /// <summary>
  532. /// <para>Evaluate the compiled XPath expression in the context of the specified <code>InputSource</code> and return the result as the specified type.</para><para>This method builds a data model for the InputSource and calls evaluate(Object item, QName returnType) on the resulting document object.</para><para>See for context item evaluation, variable, function and QName resolution and return type conversion.</para><para>If <code>returnType</code> is not one of the types defined in XPathConstants, then an <code>IllegalArgumentException</code> is thrown.</para><para>If <code>source</code> or <code>returnType</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown.</para><para></para>
  533. /// </summary>
  534. /// <returns>
  535. /// <para>The <code>Object</code> that is the result of evaluating the expression and converting the result to <code>returnType</code>.</para>
  536. /// </returns>
  537. /// <java-name>
  538. /// evaluate
  539. /// </java-name>
  540. [Dot42.DexImport("evaluate", "(Ljava/lang/Object;Ljavax/xml/namespace/QName;)Ljava/lang/Object;", AccessFlags = 1025)]
  541. object Evaluate(object source, global::Javax.Xml.Namespace.QName returnType) /* MethodBuilder.Create */ ;
  542. /// <summary>
  543. /// <para>Evaluate the compiled XPath expression in the context of the specified <code>InputSource</code> and return the result as a <code>String</code>.</para><para>This method calls evaluate(InputSource source, QName returnType) with a <code>returnType</code> of XPathConstants#STRING.</para><para>See for context item evaluation, variable, function and QName resolution and return type conversion.</para><para>If <code>source</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown.</para><para></para>
  544. /// </summary>
  545. /// <returns>
  546. /// <para>The <code>String</code> that is the result of evaluating the expression and converting the result to a <code>String</code>.</para>
  547. /// </returns>
  548. /// <java-name>
  549. /// evaluate
  550. /// </java-name>
  551. [Dot42.DexImport("evaluate", "(Ljava/lang/Object;)Ljava/lang/String;", AccessFlags = 1025)]
  552. string Evaluate(object source) /* MethodBuilder.Create */ ;
  553. /// <summary>
  554. /// <para>Evaluate the compiled XPath expression in the context of the specified <code>InputSource</code> and return the result as the specified type.</para><para>This method builds a data model for the InputSource and calls evaluate(Object item, QName returnType) on the resulting document object.</para><para>See for context item evaluation, variable, function and QName resolution and return type conversion.</para><para>If <code>returnType</code> is not one of the types defined in XPathConstants, then an <code>IllegalArgumentException</code> is thrown.</para><para>If <code>source</code> or <code>returnType</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown.</para><para></para>
  555. /// </summary>
  556. /// <returns>
  557. /// <para>The <code>Object</code> that is the result of evaluating the expression and converting the result to <code>returnType</code>.</para>
  558. /// </returns>
  559. /// <java-name>
  560. /// evaluate
  561. /// </java-name>
  562. [Dot42.DexImport("evaluate", "(Lorg/xml/sax/InputSource;Ljavax/xml/namespace/QName;)Ljava/lang/Object;", AccessFlags = 1025)]
  563. object Evaluate(global::Org.Xml.Sax.InputSource source, global::Javax.Xml.Namespace.QName returnType) /* MethodBuilder.Create */ ;
  564. /// <summary>
  565. /// <para>Evaluate the compiled XPath expression in the context of the specified <code>InputSource</code> and return the result as a <code>String</code>.</para><para>This method calls evaluate(InputSource source, QName returnType) with a <code>returnType</code> of XPathConstants#STRING.</para><para>See for context item evaluation, variable, function and QName resolution and return type conversion.</para><para>If <code>source</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown.</para><para></para>
  566. /// </summary>
  567. /// <returns>
  568. /// <para>The <code>String</code> that is the result of evaluating the expression and converting the result to a <code>String</code>.</para>
  569. /// </returns>
  570. /// <java-name>
  571. /// evaluate
  572. /// </java-name>
  573. [Dot42.DexImport("evaluate", "(Lorg/xml/sax/InputSource;)Ljava/lang/String;", AccessFlags = 1025)]
  574. string Evaluate(global::Org.Xml.Sax.InputSource source) /* MethodBuilder.Create */ ;
  575. }
  576. }