com.sun.org.apache.xpath.internal.XPath.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(9.2k)|赞(0)|评价(0)|浏览(167)

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

XPath.<init>介绍

[英]Construct an XPath object.
[中]构造一个XPath对象。

代码示例

代码示例来源:origin: org.freemarker/freemarker

XPath xpath = new XPath(xpathQuery, null, customPrefixResolver, XPath.SELECT, null);
int ctxtNode = xpathContext.getDTMHandleFromNode(node);
XObject xresult = xpath.execute(xpathContext, ctxtNode, customPrefixResolver);

代码示例来源:origin: io.snappydata/gemfirexd-core

query = new XPath(queryExpr, null, new PrefixResolverDefault(
  dBuilder.newDocument()), XPath.SELECT);

代码示例来源:origin: io.snappydata/gemfirexd

query = new XPath(queryExpr, null, new PrefixResolverDefault(
  dBuilder.newDocument()), XPath.SELECT);

代码示例来源:origin: io.snappydata/snappydata-store-core

query = new XPath(queryExpr, null, new PrefixResolverDefault(
  dBuilder.newDocument()), XPath.SELECT);

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

com.sun.org.apache.xpath.internal.XPath xpath = new XPath (expression, null,
    prefixResolver, com.sun.org.apache.xpath.internal.XPath.SELECT );

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

com.sun.org.apache.xpath.internal.XPath xpath = new XPath (expression, null,
    prefixResolver, com.sun.org.apache.xpath.internal.XPath.SELECT );

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

XPath xpath = new XPath(xpathQuery, null, customPrefixResolver, XPath.SELECT, null);
int ctxtNode = xpathContext.getDTMHandleFromNode(node);
XObject xresult = xpath.execute(xpathContext, ctxtNode, customPrefixResolver);

代码示例来源:origin: org.eclipse.jetty.orbit/org.apache.taglibs.standard.glassfish

private XObject eval(String expression, Object contextItem)
  throws javax.xml.transform.TransformerException {
  com.sun.org.apache.xpath.internal.XPath xpath = new com.sun.org.apache.xpath.internal.XPath( expression,
    null, prefixResolver, com.sun.org.apache.xpath.internal.XPath.SELECT ); 
  com.sun.org.apache.xpath.internal.XPathContext xpathSupport = null;
  if ( functionResolver != null ) {
    com.sun.org.apache.xpath.internal.jaxp.JAXPExtensionsProvider jep = 
        new com.sun.org.apache.xpath.internal.jaxp.JAXPExtensionsProvider(
        functionResolver, featureSecureProcessing );
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext( jep );
  } else { 
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext();
  }
  XObject xobj = null;
  
  xpathSupport.setVarStack(new com.sun.org.apache.xpath.internal.jaxp.JAXPVariableStack(variableResolver));
  
  // If item is null, then we will create a a Dummy contextNode
  if ( contextItem instanceof Node ) {
    xobj = xpath.execute (xpathSupport, (Node)contextItem,
        prefixResolver );
  } else {
    xobj = xpath.execute ( xpathSupport, DTM.NULL, prefixResolver );
  }
  return xobj;
}

代码示例来源:origin: org.glassfish.web/jstl-impl

private XObject eval(String expression, Object contextItem)
  throws javax.xml.transform.TransformerException {
  com.sun.org.apache.xpath.internal.XPath xpath = new com.sun.org.apache.xpath.internal.XPath( expression,
    null, prefixResolver, com.sun.org.apache.xpath.internal.XPath.SELECT ); 
  com.sun.org.apache.xpath.internal.XPathContext xpathSupport = null;
  if ( functionResolver != null ) {
    com.sun.org.apache.xpath.internal.jaxp.JAXPExtensionsProvider jep = 
        new com.sun.org.apache.xpath.internal.jaxp.JAXPExtensionsProvider(
        functionResolver, featureSecureProcessing );
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext( jep );
  } else { 
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext();
  }
  XObject xobj = null;
  
  xpathSupport.setVarStack(new com.sun.org.apache.xpath.internal.jaxp.JAXPVariableStack(variableResolver));
  
  // If item is null, then we will create a a Dummy contextNode
  if ( contextItem instanceof Node ) {
    xobj = xpath.execute (xpathSupport, (Node)contextItem,
        prefixResolver );
  } else {
    xobj = xpath.execute ( xpathSupport, DTM.NULL, prefixResolver );
  }
  return xobj;
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

private XObject eval(String expression, Object contextItem)
  throws javax.xml.transform.TransformerException {
  com.sun.org.apache.xpath.internal.XPath xpath = new com.sun.org.apache.xpath.internal.XPath( expression,
    null, prefixResolver, com.sun.org.apache.xpath.internal.XPath.SELECT ); 
  com.sun.org.apache.xpath.internal.XPathContext xpathSupport = null;
  if ( functionResolver != null ) {
    JAXPExtensionsProvider jep = new JAXPExtensionsProvider(
        functionResolver, featureSecureProcessing );
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext( jep );
  } else { 
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext();
  }
  XObject xobj = null;
  
  xpathSupport.setVarStack(new JAXPVariableStack(variableResolver));
  
  // If item is null, then we will create a a Dummy contextNode
  if ( contextItem instanceof Node ) {
    xobj = xpath.execute (xpathSupport, (Node)contextItem,
        prefixResolver );
  } else {
    xobj = xpath.execute ( xpathSupport, DTM.NULL, prefixResolver );
  }
  return xobj;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

private XObject eval(String expression, Object contextItem)
  throws javax.xml.transform.TransformerException {
  com.sun.org.apache.xpath.internal.XPath xpath = new com.sun.org.apache.xpath.internal.XPath( expression,
    null, prefixResolver, com.sun.org.apache.xpath.internal.XPath.SELECT ); 
  com.sun.org.apache.xpath.internal.XPathContext xpathSupport = null;
  if ( functionResolver != null ) {
    JAXPExtensionsProvider jep = new JAXPExtensionsProvider(
        functionResolver, featureSecureProcessing );
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext( jep );
  } else { 
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext();
  }
  XObject xobj = null;
  
  xpathSupport.setVarStack(new JAXPVariableStack(variableResolver));
  
  // If item is null, then we will create a a Dummy contextNode
  if ( contextItem instanceof Node ) {
    xobj = xpath.execute (xpathSupport, (Node)contextItem,
        prefixResolver );
  } else {
    xobj = xpath.execute ( xpathSupport, DTM.NULL, prefixResolver );
  }
  return xobj;
}

代码示例来源:origin: javax.servlet/com.springsource.javax.servlet.jsp.jstl

private XObject eval(String expression, Object contextItem)
  throws javax.xml.transform.TransformerException {
  com.sun.org.apache.xpath.internal.XPath xpath = new com.sun.org.apache.xpath.internal.XPath( expression,
    null, prefixResolver, com.sun.org.apache.xpath.internal.XPath.SELECT ); 
  com.sun.org.apache.xpath.internal.XPathContext xpathSupport = null;
  if ( functionResolver != null ) {
    com.sun.org.apache.xpath.internal.jaxp.JAXPExtensionsProvider jep = 
        new com.sun.org.apache.xpath.internal.jaxp.JAXPExtensionsProvider(
        functionResolver, featureSecureProcessing );
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext( jep );
  } else { 
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext();
  }
  XObject xobj = null;
  
  xpathSupport.setVarStack(new com.sun.org.apache.xpath.internal.jaxp.JAXPVariableStack(variableResolver));
  
  // If item is null, then we will create a a Dummy contextNode
  if ( contextItem instanceof Node ) {
    xobj = xpath.execute (xpathSupport, (Node)contextItem,
        prefixResolver );
  } else {
    xobj = xpath.execute ( xpathSupport, DTM.NULL, prefixResolver );
  }
  return xobj;
}

代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-api-2.1

private XObject eval(String expression, Object contextItem)
  throws javax.xml.transform.TransformerException {
  com.sun.org.apache.xpath.internal.XPath xpath = new com.sun.org.apache.xpath.internal.XPath( expression,
    null, prefixResolver, com.sun.org.apache.xpath.internal.XPath.SELECT ); 
  com.sun.org.apache.xpath.internal.XPathContext xpathSupport = null;
  if ( functionResolver != null ) {
    com.sun.org.apache.xpath.internal.jaxp.JAXPExtensionsProvider jep = 
        new com.sun.org.apache.xpath.internal.jaxp.JAXPExtensionsProvider(
        functionResolver, featureSecureProcessing );
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext( jep );
  } else { 
    xpathSupport = new com.sun.org.apache.xpath.internal.XPathContext();
  }
  XObject xobj = null;
  
  xpathSupport.setVarStack(new com.sun.org.apache.xpath.internal.jaxp.JAXPVariableStack(variableResolver));
  
  // If item is null, then we will create a a Dummy contextNode
  if ( contextItem instanceof Node ) {
    xobj = xpath.execute (xpathSupport, (Node)contextItem,
        prefixResolver );
  } else {
    xobj = xpath.execute ( xpathSupport, DTM.NULL, prefixResolver );
  }
  return xobj;
}

代码示例来源:origin: org.freemarker/freemarker-gae

XPath xpath = new XPath(xpathQuery, null, customPrefixResolver, XPath.SELECT, null);
int ctxtNode = xpathContext.getDTMHandleFromNode(node);
XObject xresult = xpath.execute(xpathContext, ctxtNode, customPrefixResolver);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

XPath xpath = new XPath(xpathQuery, null, customPrefixResolver, XPath.SELECT, null);
int ctxtNode = xpathContext.getDTMHandleFromNode(node);
XObject xresult = xpath.execute(xpathContext, ctxtNode, customPrefixResolver);

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

XPath xpath =  new XPath(expression,null,
   ((null == resolver) ? new DummyPrefixResolver() : ((PrefixResolver)resolver)), 
   XPath.SELECT);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

XPath xpath =  new XPath(expression,null,
   ((null == resolver) ? new DummyPrefixResolver() : ((PrefixResolver)resolver)), 
   XPath.SELECT);

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

XPath dynamicXPath = new XPath(xpathExpr, xctxt.getSAXLocator(),
                xctxt.getNamespaceContext(),
                XPath.SELECT);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

XPath dynamicXPath = new XPath(xpathExpr, xctxt.getSAXLocator(),
                xctxt.getNamespaceContext(),
                XPath.SELECT);

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

try
 XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),
                 xctxt.getNamespaceContext(),
                 XPath.SELECT);

相关文章