Examples of Node


Examples of org.jsoup.nodes.Node

  private String retrieveContent(final Document documentFragment) {
    String strippedString = "";
    List<Node> children = documentFragment.body().childNodes();
    for (int pos = 0; pos < children.size(); pos++) {
      Node node = children.get(pos);
      String text = getTextFromNode(node);
      if (!text.equals("")) {
        if (strippedString.equals("") || strippedString.endsWith(" ") || strippedString.endsWith("/")
            || strippedString.endsWith(".") || strippedString.endsWith(":")) {
          // directly add the text if the string is empty or ends with a space, slash, dot, doublepoint

Examples of org.jsynthlib.device.viewcontroller.widgets.EnvelopeWidget.Node

    }

    @Override
    public int getMin() {
        Param param = widget.getParams()[getFader() - getSliderNum()];
        Node node = widget.getNodes()[param.node];
        if (param.isX) {
            return node.getMinX();
        } else {
            return node.getMinY();
        }
    }

Examples of org.kaminoite.ranka.kido.ipad.tools.go.specification.structure.Node

        if (info == null)
            info = new GameInfo();
        GameTree tree = new GameTree(board.getSize(), info.getKomi(), null,
                                     info.get(StringInfo.RULES),
                                     info.getTimeSettings());
        Node root = tree.getRoot();
        for (GoPoint p : board)
        {
            GoColor c = board.getColor(p);
            if (c.isBlackWhite())
                root.addStone(c, p);
        }
        root.setPlayer(board.getToMove());
        return tree;
    }

Examples of org.kie.api.definition.process.Node

                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
   
    private String createNodeId(NodeInstance nodeInstance) {
        Node node = nodeInstance.getNode();
        if (node == null) {
            return "";
        }
        Object uniqueIdObj = node.getMetaData().get("UniqueId");
        String nodeId;
        if( uniqueIdObj == null ) {
            nodeId = "" + node.getId();
        } else {
            nodeId = (String) uniqueIdObj;
        }
        NodeContainer nodeContainer = node.getNodeContainer();
        while (nodeContainer != null) {
            if (nodeContainer instanceof Node) {
                node = (Node) nodeContainer;
                nodeContainer = node.getNodeContainer();
                // TODO fix this filter out hidden compositeNode inside ForEach node
                if (!(nodeContainer.getClass().getName().endsWith("ForEachNode"))) {
                    nodeId = node.getId() + ":" + nodeId;
                }
            } else {
                break;
            }
        }

Examples of org.kie.definition.process.Node

                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
   
    private String createNodeId(NodeInstance nodeInstance) {
        Node node = nodeInstance.getNode();
        if (node == null) {
            return "";
        }
        String nodeId = "" + node.getId();
        NodeContainer nodeContainer = node.getNodeContainer();
        while (nodeContainer != null) {
            if (nodeContainer instanceof Node) {
                node = (Node) nodeContainer;
                nodeContainer = node.getNodeContainer();
                // TODO fix this filter out hidden compositeNode inside ForEach node
                if (!(nodeContainer.getClass().getName().endsWith("ForEachNode"))) {
                    nodeId = node.getId() + ":" + nodeId;
                }
            } else {
                break;
            }
        }

Examples of org.kiji.schema.avro.Node

    final KijiRowData data = getRowData(mTable, mReader, eid, dataRequest);
    assertTrue(data.containsColumn(FAMILY, "nodequal0"));
    assertTrue(data.containsColumn(FAMILY, "nodequal1"));

    final Node value0 = data.getMostRecentValue(FAMILY, "nodequal0");
    assertEquals("node0", value0.getLabel());
    final Node value1 = data.getMostRecentValue(FAMILY, "nodequal1");
    assertEquals("node1", value1.getLabel());
  }

Examples of org.kohsuke.graphviz.Node

        Map<String, Graph> subgraphs = Maps.newHashMap();

        gv.attr("rankdir", "TB");
        Map<P2jLogicalRelationalOperator, Node> graphMap = Maps.newHashMap();
        for (Entry<String, P2jLogicalRelationalOperator> e : p2jMap.entrySet()) {
            Node node = new Node();
            graphMap.put(e.getValue(), node);
        }
        for (Entry<P2jLogicalRelationalOperator, Node> e : graphMap.entrySet()) {
            Node node = e.getValue();
            attributeGraphNode(node, e.getKey());
            if (!appendToSubgraph(subgraphs, node, e.getKey())) {
                gv.node(node);
            }
            for (String i : e.getKey().getSuccessors()) {

Examples of org.librdf.redland.Node

    return new Iterator(this.world, core.librdf_model_get_targets(this.object, source.__get_object(), arc.__get_object()), this, source, arc);
  }

  public Node getSource(Node arc, Node target)
  {
    return new Node(this.world, core.librdf_model_get_source(this.object, arc.__get_object(), target.__get_object()), true);
  }

Examples of org.lilypondbeans.jccparser.Node

    private void dfs_visit(Node node) {
        System.out.println(indentString() + node.toString());
        ++indent;
        int count = node.jjtGetNumChildren();
        for (int i = 0; i < count; i++) {
            Node child = node.jjtGetChild(i);
            dfs_visit(child);
        }
        --indent;
    }

Examples of org.locationtech.geogig.api.Node

     */
    protected ObjectId insert(GeoGIG geogig, Feature f) throws Exception {
        final WorkingTree workTree = geogig.getRepository().workingTree();
        Name name = f.getType().getName();
        String parentPath = name.getLocalPart();
        Node ref = workTree.insert(parentPath, f);
        ObjectId objectId = ref.getObjectId();
        return objectId;
    }
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.