gpt4 book ai didi

org.jaxen.saxpath.helpers.XPathReaderFactory.createReader()方法的使用及代码示例

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

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

XPathReaderFactory.createReader介绍

[英]Create an XPathReader using the value of the org.saxpath.driver system property.
[中]使用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