org.apache.xmlbeans.SchemaTypeLoader.compileQuery()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中org.apache.xmlbeans.SchemaTypeLoader.compileQuery()方法的一些代码示例,展示了SchemaTypeLoader.compileQuery()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SchemaTypeLoader.compileQuery()方法的具体详情如下:
包路径:org.apache.xmlbeans.SchemaTypeLoader
类名称:SchemaTypeLoader
方法名:compileQuery

SchemaTypeLoader.compileQuery介绍

[英]Compiles an XQuery
[中]编译一个XQuery

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

/**
 * Compiles an XQuery, returning a String equal to that which was passed,
 * but whose identity is that of one which has been precompiled and cached;
 * takes an option for specifying text that indicates the context node.
 *
 * @param  options  Options for the query. For example, you can call
 * the {@link XmlOptions#setXqueryCurrentNodeVar(String) XmlOptions.setXqueryCurrentNodeVar(String)}
 * method to specify a particular name for the expression
 * variable that indicates the context node and the
 * {@link XmlOptions#setXqueryVariables(java.util.Map) XmlOptions.setXqueryVariables(Map)}
 * method to map external variable names to values.
 */
public static String compileQuery ( String queryExpr, XmlOptions options )
  throws XmlException
{
  return getContextTypeLoader().compileQuery( queryExpr, options );
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

/**
 * Compiles an XQuery, returning a String equal to that which was passed,
 * but whose identity is that of one which has been precompiled and cached;
 * takes an option for specifying text that indicates the context node.
 *
 * @param  options  Options for the query. For example, you can call
 * the {@link XmlOptions#setXqueryCurrentNodeVar(String) XmlOptions.setXqueryCurrentNodeVar(String)}
 * method to specify a particular name for the expression
 * variable that indicates the context node and the
 * {@link XmlOptions#setXqueryVariables(java.util.Map) XmlOptions.setXqueryVariables(Map)}
 * method to map external variable names to values.
 */
public static String compileQuery ( String queryExpr, XmlOptions options )
  throws XmlException
{
  return getContextTypeLoader().compileQuery( queryExpr, options );
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

/**
 * Compiles an XQuery, returning a String equal to that which was passed,
 * but whose identity is that of one which has been precompiled and cached;
 * takes an option for specifying text that indicates the context node.
 *
 * @param  options  Options for the query. For example, you can call
 * the {@link XmlOptions#setXqueryCurrentNodeVar(String) XmlOptions.setXqueryCurrentNodeVar(String)}
 * method to specify a particular name for the expression
 * variable that indicates the context node and the
 * {@link XmlOptions#setXqueryVariables(java.util.Map) XmlOptions.setXqueryVariables(Map)}
 * method to map external variable names to values.
 */
public static String compileQuery ( String queryExpr, XmlOptions options )
  throws XmlException
{
  return getContextTypeLoader().compileQuery( queryExpr, options );
}

相关文章

微信公众号

最新文章

更多