Examples of Node


Examples of org.umundo.core.Node

    }
   
  }
 
  public SpatialMapTicker() {
    node = new Node();
    pub = new Publisher("map/tick");
    greeter = new SensorGreeter();
    pub.setGreeter(greeter);
    node.addPublisher(pub);
   

Examples of org.useware.kernel.model.mapping.Node

                        Integer scopeId = newScopeId();
                        container.setScopeId(scopeId);

                        return rootScope.addChild(
                                new Node(
                                        new Scope(scopeId)
                                )
                        );
                    }

Examples of org.vietspider.html.path2.Node

            }
          }
          continue;
        }

        Node node = (Node)inode;
        if(node.getIndex() != index) continue;
        Attribute [] attrs = inode.getAttributes();
        if(attrs == null || attrs.length < 1) {
          list.add(item);
        } else {
          String data = (String)item.getData();

Examples of org.voltdb.RateLimitedClientNotifier.Node

     * equal
     */
    @Test
    public void testNode() throws Exception {
        Supplier<DeferredSerialization> sup = getSupplier(null);
        Node n = new Node(sup, null);
        Node n2 = new Node(sup, null);
        Node diffSup = new Node(getSupplier(null), null);
        assertFalse(n.equals(null));
        assertTrue(n.equals(n2));
        assertEquals(n.hashCode(), n2.hashCode());
        assertTrue(n2.equals(n));
        assertTrue(n.equals(n));
        assertFalse(n.equals(diffSup));
        assertFalse(n.hashCode() == diffSup.hashCode());

        Supplier<DeferredSerialization> sup2 = getSupplier(null);
        Node n3 = new Node(sup2, n);
        assertFalse(n3.equals(n2));
        assertFalse(n3.hashCode() == n2.hashCode());
        Node n3_2 = new Node(sup2, n);

        Supplier<DeferredSerialization> sup3 = getSupplier(null);
        Node n4 = new Node(sup3, n3);
        Node n4_2 = new Node(sup3, n3_2);
        assertTrue(n4.equals(n4_2));
        assertTrue(n4.hashCode() == n4_2.hashCode());
    }

Examples of org.w3c.dom.Node

  protected Element createMessageElement(Object value) throws Exception {
   
    String requestPartName=_config.getAttribute(REQUEST_PART_NAME);
   
    org.w3c.dom.Element mesgElem=null;
    Node node=null;
     
    if (value instanceof String) {

      // Convert to element
      node = getNode((String)value);

    } else if (value instanceof Node) {
      node = (Node)value;
    }

    if (node == null) {
      throw new RuntimeException("Failed to obtain DOM representation of message value");
    }
   
    logger.debug("Node type is: "+node.getNodeType()+" requestPartName="+requestPartName);
   
    // If value is an element, and no request part name has been provided,
    // then pass the DOM element through as is.
    if (node.getNodeType() == Node.ELEMENT_NODE &&
              requestPartName == null) {
      mesgElem = (org.w3c.dom.Element)node;
     
    } else if (requestPartName == null) {
      // Not possible to pass anything other than an Element
      // if the request partname is not defined
      throw new RuntimeException("Non-element value can only be used in request if part name specified");
     
    } else {
     
      // Need to construct DOM element for message
      mesgElem = createMessage();
     
      // Transfer value into this message element
      node = (Node)node.cloneNode(true);
     
      Element partElem=mesgElem.getOwnerDocument().createElement(requestPartName);
      mesgElem.appendChild(partElem);
     
      node = (Node)mesgElem.getOwnerDocument().adoptNode(node);

Examples of org.w3c.tidy.Node

      StringWriter errbuf = new StringWriter();
      tidy.setErrout(new PrintWriter(errbuf));
      //Node node = tidy.parseDOM(new ByteArrayInputStream(response.getResponseData()), null);
      ByteArrayOutputStream os = new ByteArrayOutputStream();
      log.debug("Start : parse");
      Node node = tidy.parse(new ByteArrayInputStream(inResponse.getResponseData()), os);
      if (log.isDebugEnabled()) {
        log.debug("node : " + node);
      }
      log.debug("End   : parse");
      log.debug("HTMLAssertions.getResult(): parsing with tidy done!");

Examples of org.waveprotocol.wave.client.wavepanel.block.BlockStructure.Node

      current = start;
    }

    private void next() {
      assertNotNull(current);
      Node next;
      if ((next = current.getFirstChild()) != null) {
        current = next;
      } else {
        while (current != null && (next = current.getNextSibling()) == null) {
          current = current.getParent();

Examples of org.waveprotocol.wave.model.document.raw.impl.Node

   * @return Number of children the specified element has.
   */
  public static <N, E extends N, T extends N> int countChildren(
      ReadableDocument<Node, Element, Text> doc, Element elem) {
    int children = 0;
    Node currentChild = doc.getFirstChild(elem);

    while (currentChild != null) {
      children++;
      currentChild = doc.getNextSibling(currentChild);
    }

Examples of org.wildfly.clustering.group.Node

            List<String> nodes = new ArrayList<>(responses.size());
            for (CommandResponse<String> response: responses) {
                nodes.add(response.get());
            }

            Node localNode = this.factory.getGroup().getLocalNode();
            System.out.println("Executing command on node: " + localNode);
            String local = this.dispatcher.executeOnNode(this.command, localNode).get();

            System.out.println("Executing command on cluster excluding node: " + localNode);
            responses = this.dispatcher.executeOnCluster(this.command, localNode).values();

Examples of org.woped.quantana.graph.Node

    unfoldNet(graph, lambda, epsilon);

    Node[] origNet = graph.getNodeArray();
    for (Key k : unfoldedNet.keySet()) {
      String id = k.getId();
      Node n = origNet[graph.getNodeIdx(id)];
      n.setNumOfRuns(n.getNumOfRuns() + k.getRuns());
    }
  }
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.