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

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

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

SchemaTypeLoader.compilePath介绍

[英]Compiles an XPath
[中]编译XPath

代码示例

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

/**
 * Compiles an XPath, 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 name of context node.
 * The default is "this", as in "$this".
 *
 * @param  options  Options for the path. 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.
 */
public static String compilePath ( String pathExpr, XmlOptions options )
  throws XmlException
{
  return getContextTypeLoader().compilePath( pathExpr, options );
}

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

/**
 * Compiles an XPath, 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 name of context node.
 * The default is "this", as in "$this".
 *
 * @param  options  Options for the path. 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.
 */
public static String compilePath ( String pathExpr, XmlOptions options )
  throws XmlException
{
  return getContextTypeLoader().compilePath( pathExpr, options );
}

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

/**
 * Compiles an XPath, 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 name of context node.
 * The default is "this", as in "$this".
 *
 * @param  options  Options for the path. 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.
 */
public static String compilePath ( String pathExpr, XmlOptions options )
  throws XmlException
{
  return getContextTypeLoader().compilePath( pathExpr, options );
}

相关文章

微信公众号

最新文章

更多