Examples of XPathFactory


Examples of javax.xml.xpath.XPathFactory

  private boolean _beginTxnSeen = false;

  public GGXMLTrailTransactionFinder(boolean enableRegex) throws Exception
  {
    reset();
    XPathFactory xpathFactory = XPathFactory.newInstance();
    XPath xpath = xpathFactory.newXPath();
    _expr = xpath.compile(SCN_XPATH_STR);
    _rexpr = Pattern.compile(SCN_REGEX_STR);
    _enableRegex = enableRegex;
    _minScn = Long.MAX_VALUE;
    _maxScn = Long.MIN_VALUE;
View Full Code Here

Examples of javax.xml.xpath.XPathFactory

        final AsymmetricBinding binding = (AsymmetricBinding) assertInfo.getAssertion();
        final String expectedSignatureMethod = binding.getAlgorithmSuite().getAsymmetricSignature();
        final String expectedDigestAlgorithm = binding.getAlgorithmSuite().getDigest();
        final String expectedCanonAlgorithm  = binding.getAlgorithmSuite().getInclusiveC14n();
           
        XPathFactory factory = XPathFactory.newInstance();
        XPath xpath = factory.newXPath();
        final NamespaceContext nsContext = this.getNamespaceContext();
        xpath.setNamespaceContext(nsContext);
       
        // Signature Algorithm
        final XPathExpression sigAlgoExpr =
View Full Code Here

Examples of jbprocess.bpel.xpath.XpathFactory

    args[1] = "--input=.\\\\src\\\\typetests;.\\\\src\\\\typetests2;";
   
    launcher = new TestLauncher(args);
    launcher.addProcessor("jbprocessor.BpelProcessor");
    //launcher.run();
    XpathFactory xpathFactory = new XpathFactoryImpl();
    scanner = new BpelScanner(launcher.getFactory(),xpathFactory,Collections.EMPTY_LIST);
  }
View Full Code Here

Examples of org.apache.xml.security.utils.XPathFactory

                throw new DOMException(
                    DOMException.HIERARCHY_REQUEST_ERR, "Text must be in ds:Xpath"
                );
            }
           
            XPathFactory xpathFactory = XPathFactory.newInstance();
            XPathAPI xpathAPIInstance = xpathFactory.newXPathAPI();
            input.addNodeFilter(new XPathNodeFilter(xpathElement, xpathnode, str, xpathAPIInstance));
            input.setNodeSet(true);
            return input;
        } catch (DOMException ex) {
            throw new TransformationException("empty", ex);
View Full Code Here

Examples of org.jdom2.xpath.XPathFactory

        while( resources.hasMoreElements() ) {
                  URL resource = resources.nextElement();
                 
                  log.debug( "reading " + resource.toString() );
                  Document doc = builder.build( resource );
                  XPathFactory xpfac = XPathFactory.instance();
                  XPathExpression< Element > xp = xpfac.compile( requestedNodes, Filters.element() );
                  readed.addAll( xp.evaluate( doc ) ); // filter out repeated items
              }
        return new ArrayList< Element >( readed );
      } catch ( IOException ioe ) {
        log.error( "Couldn't load all " + xml + " resources", ioe );
View Full Code Here

Examples of org.wso2.carbon.sequences.ui.util.ns.XPathFactory

    public static void setFactsAndResults(HttpServletRequest request,
                                          RuleMediatorDescription mediatorDescription,
                                          String id) {
        HttpSession session = request.getSession();
        XPathFactory xPathFactory = XPathFactory.getInstance();
        String inputCountParameter = request.getParameter(id + "Count");
        if (inputCountParameter != null && !"".equals(inputCountParameter)) {
            int inputCount = 0;
            try {
                inputCount = Integer.parseInt(inputCountParameter.trim());

                for (int i = 0; i < inputCount; i++) {
                    String name = request.getParameter(id + "Name" + i);
                    String type = request.getParameter(id + "Type" + i);

                    if (type != null && !"".equals(type)) {

                        ResourceDescription description = new ResourceDescription();
                        if (name != null && !"".equals(name)) {
                            description.setName(name.trim());
                        }
                        description.setType(type.trim());
                        String valueID = id + "Value" + i;
                        String value = request.getParameter(valueID);
                        if (value != null && !"".equals(value.trim())) {
                            value = value.trim();
                            String typeSelector = request.getParameter(id + "TypeSelection" + i);
                            boolean isExpression = typeSelector != null &&
                                    "expression".equals(typeSelector.trim());
                            boolean isKey = typeSelector != null &&
                                    "key".equals(typeSelector.trim());
                            if (isExpression) {
                                description.setExpression(xPathFactory.createSynapseXPath(valueID,
                                        value.trim(), session));
                            } else if (isKey) {
                                description.setKey(value);
                            } else {
                                description.setValue(value);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.