gpt4 book ai didi

org.jaxen.saxpath.helpers.XPathReaderFactory类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 09:40:40 28 4
gpt4 key购买 nike

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

XPathReaderFactory介绍

[英]Create an org.jaxen.saxpath.XPathReader from either a system property, or a named class.

Similar to the SAX API, the XPathReaderFactory can create an XPathReader from a name of a class passed in directly, or by inspecting the system property org.saxpath.driver.
[中]创建一个组织。杰森。萨克斯帕斯。来自系统属性或命名类的XPathReader。
与SAX API类似,XPathReaderFactory可以从直接传入的类的名称创建XPathReader,或者通过检查系统属性org.saxpath.driver来创建XPathReader

代码示例

代码示例来源:origin: jaxen/jaxen

return createReader( className );

代码示例来源:origin: jaxen/jaxen

/** Construct given an XPath expression string. 
 *
 *  @param xpathExpr the XPath expression
 *
 *  @throws JaxenException if there is a syntax error while
 *          parsing the expression
 */
protected BaseXPath(String xpathExpr) throws JaxenException
{
  try
  {
    XPathReader reader = XPathReaderFactory.createReader();
    JaxenHandler handler = new JaxenHandler();
    reader.setXPathHandler( handler );
    reader.parse( xpathExpr );
    this.xpath = handler.getXPathExpr();
  }
  catch (org.jaxen.saxpath.XPathSyntaxException e)
  {
    throw new org.jaxen.XPathSyntaxException( e );
  }
  catch (SAXPathException e)
  {
    throw new JaxenException( e );
  }
  this.exprText = xpathExpr;
}

代码示例来源:origin: jaxen/jaxen

public static Pattern parse(String text) throws JaxenException, org.jaxen.saxpath.SAXPathException
{
  if ( USE_HANDLER )
  {
    XPathReader reader = XPathReaderFactory.createReader();
    PatternHandler handler = new PatternHandler();       
    
    handler.setXPathFactory( new DefaultXPathFactory() );            
    reader.setXPathHandler( handler );
    reader.parse( text );
    
    return handler.getPattern();
  }
  else
  {
    XPathReader reader = XPathReaderFactory.createReader();
    JaxenHandler handler = new JaxenHandler();
    
    handler.setXPathFactory( new DefaultXPathFactory() );            
    reader.setXPathHandler( handler );
    reader.parse( text );
    Pattern pattern = convertExpr( handler.getXPathExpr().getRootExpr() );
    return pattern.simplify();
  }
}

代码示例来源:origin: org.dhatim/milyn-smooks-core

XPathReader reader = XPathReaderFactory.createReader();
JaxenHandler handler = new JaxenHandler();
List<SelectorStep> selectorSteps = new ArrayList<SelectorStep>();

代码示例来源:origin: org.milyn/milyn-smooks-all

XPathReader reader = XPathReaderFactory.createReader();
JaxenHandler handler = new JaxenHandler();
List<SelectorStep> selectorSteps = new ArrayList<SelectorStep>();

代码示例来源:origin: org.milyn/milyn-smooks-core

XPathReader reader = XPathReaderFactory.createReader();
JaxenHandler handler = new JaxenHandler();
List<SelectorStep> selectorSteps = new ArrayList<SelectorStep>();

代码示例来源:origin: org.virtuslab/milyn-smooks-core

XPathReader reader = XPathReaderFactory.createReader();
JaxenHandler handler = new JaxenHandler();
List<SelectorStep> selectorSteps = new ArrayList<SelectorStep>();

代码示例来源:origin: smooks/smooks

XPathReader reader = XPathReaderFactory.createReader();
JaxenHandler handler = new JaxenHandler();
List<SelectorStep> selectorSteps = new ArrayList<SelectorStep>();

代码示例来源:origin: org.jboss.soa.bpel/riftsaw-bpel-compiler

XPathReader reader = XPathReaderFactory.createReader();
JaxenBpelHandler handler = new JaxenBpelHandler(_bpelNsURI, out, source.getNamespaceContext(),
    _compilerContext);

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com