Examples of NodeWrapper


Examples of com.braintreegateway.util.NodeWrapper

        );
    }

    public Result<Transaction> settle(String transactionId) {
        checkEnvironment();
        NodeWrapper node = this.http.put("/transactions/" + transactionId + "/settle");
        return new Result<Transaction>(node, Transaction.class);
    }
View Full Code Here

Examples of com.braintreegateway.util.NodeWrapper

        return new Result<Transaction>(node, Transaction.class);
    }

    public Result<Transaction> settlementConfirm(String transactionId) {
        checkEnvironment();
        NodeWrapper node = this.http.put("/transactions/" + transactionId + "/settlement_confirm");
        return new Result<Transaction>(node, Transaction.class);
    }
View Full Code Here

Examples of com.braintreegateway.util.NodeWrapper

        return new Result<Transaction>(node, Transaction.class);
    }

    public Result<Transaction> settlementDecline(String transactionId) {
        checkEnvironment();
        NodeWrapper node = this.http.put("/transactions/" + transactionId + "/settlement_decline");
        return new Result<Transaction>(node, Transaction.class);
    }
View Full Code Here

Examples of com.braintreegateway.util.NodeWrapper

        return new Result<Transaction>(node, Transaction.class);
    }

    public Result<Transaction> settlementPending(String transactionId) {
        checkEnvironment();
        NodeWrapper node = this.http.put("/transactions/" + transactionId + "/settlement_pending");
        return new Result<Transaction>(node, Transaction.class);
    }
View Full Code Here

Examples of com.braintreegateway.util.NodeWrapper

    public PlanGateway(Http http) {
        this.http = http;
    }

    public List<Plan> all() {
        NodeWrapper node = http.get("/plans");

        List<Plan> plans = new ArrayList<Plan>();

        for (NodeWrapper planResponse : node.findAll("plan")) {
            plans.add(new Plan(planResponse));
        }

        return plans;
    }
View Full Code Here

Examples of com.braintreegateway.util.NodeWrapper

     * Finds all Customers and returns a {@link ResourceCollection}.
     *
     * @return a {@link ResourceCollection}.
     */
    public ResourceCollection<Customer> all() {
        NodeWrapper response = http.post("/customers/advanced_search_ids");
        return new ResourceCollection<Customer>(new CustomerPager(this, new CustomerSearchRequest()), response);
    }
View Full Code Here

Examples of com.google.devtools.depan.eclipse.trees.NodeTreeView.NodeWrapper

  @Override
  @SuppressWarnings("rawtypes") // NodeWrapper
  public Object getValue(Object element, String property) {
    if (element instanceof NodeWrapper) {
      NodeWrapper wrapper = (NodeWrapper) element;
      if (COL_XPOS.equals(property)) {
        return getEditor().getXPos(wrapper.getNode());
      }
      if (COL_XPOS.equals(property)) {
        return getEditor().getYPos(wrapper.getNode());
      }
      if (property.equals(COL_SELECTED)) {
        return getEditor().isSelected(wrapper.getNode());
      }

      NodeDisplayProperty p = getProp(wrapper);
      if (property.equals(COL_VISIBLE)) {
        return p.isVisible();
View Full Code Here

Examples of net.sf.saxon.dom.NodeWrapper

    public NodeInfo setSource(Source source) throws net.sf.saxon.trans.XPathException {
        if (source instanceof DOMSource) {
            Node node = ((DOMSource)source).getNode();
            String baseURI = source.getSystemId();
            DocumentWrapper documentWrapper = new DocumentWrapper(node.getOwnerDocument(), baseURI, config);
            NodeWrapper nodeWrapper = documentWrapper.wrap(node);
            if (stripSpace) {
                SpaceStrippedDocument sdoc = new SpaceStrippedDocument(documentWrapper, AllElementStripper.getInstance());
                return sdoc.wrap(nodeWrapper);
            } else {
                return nodeWrapper;
View Full Code Here

Examples of net.sf.saxon.dom.NodeWrapper

        Text textNode = doc.createTextNode(data);
        inputs.add(textNode);
        inputs.add(Arrays.asList(textNode));

        DocumentWrapper dw = new DocumentWrapper(doc, "", new Configuration());
        NodeWrapper nw = dw.wrap(textNode);
        inputs.add(nw);

        for (int i = 0; i < inputs.size(); i++) {
            assertEquals(expectedResult, JaxpFunctionResolver.Helper.extractString(inputs.get(i)));
        }
View Full Code Here

Examples of net.sf.saxon.dom.NodeWrapper

        Text textNode = doc.createTextNode(data);
        inputs.add(textNode);
        inputs.add(Arrays.asList(textNode));

        DocumentWrapper dw = new DocumentWrapper(doc, "", new Configuration());
        NodeWrapper nw = dw.wrap(textNode);
        inputs.add(nw);

        for (int i = 0; i < inputs.size(); i++) {
            assertEquals(expectedResult, JaxpFunctionResolver.Helper.extractString(inputs.get(i)));
        }
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.