Examples of Node


Examples of macromedia.asc.parser.Node

                if (comment.def != null && comment.def.metaData != null)
                {
                    int numItems = comment.def.metaData.items.size();
                    for (int x = 0; x < numItems; x++)
                    {
                        Node md = comment.def.metaData.items.at(x);
                        MetaDataNode mdi = (md instanceof MetaDataNode) ? (MetaDataNode)(md) : null;
                       
                        // cn: why not just dump all the metaData ???
                        if (mdi != null && mdi.getId() != null)
                        {
                            // these metaData types can have their own DocComment associated with them, though they might also have no comment.
                            if (mdi.getId().equals(StandardDefs.MD_STYLE) || mdi.getId().equals(StandardDefs.MD_EVENT) || mdi.getId().equals(StandardDefs.MD_EFFECT)
                                    || mdi.getId().equals(StandardDefs.MD_SKINSTATE) || mdi.getId().equals(StandardDefs.MD_ALTERNATIVE)
                                    || mdi.getId().equals(StandardDefs.MD_DISCOURAGEDFORPROFILE))
                            {
                                if (x+1 < numItems// if it has a comment, it will be the sequentially next DocCommentNode
                                {
                                    Node next = comment.def.metaData.items.at(x+1);
                                    DocCommentNode metaDataComment = (next instanceof DocCommentNode) ? (DocCommentNode)next : null;

                                    if (metaDataComment != null)
                                    {
                                        createMetaDataComment(fullname, mdi, false, metaDataComment);

Examples of mf.org.w3c.dom.Node

    } catch (ClassCastException cce ) {
      catalog.getCatalogManager().debug.message(1, "Cannot cast XML Catalog Parser class", domParserClass);
      throw new CatalogException(CatalogException.UNPARSEABLE);
    }

    Node node = root.getFirstChild();
    while (node != null) {
      domParser.parseCatalogEntry(catalog, node);
      node = node.getNextSibling();
    }
  }

Examples of mindnotes.shared.model.Node

   *            parent</c> is not a root node, <c>loc</c> is ignored and
   *            parent node location is used.
   */
  private Node addChild(Node node, NodeLocation loc) {

    Node child = new Node();
    child.setText("New node");
    if (node.getNodeLocation() == NodeLocation.ROOT) {
      child.setNodeLocation(loc);
    } else {
      child.setNodeLocation(node.getNodeLocation());
    }

    node.addChildNode(child);

    _mindMapView.holdLayout();

Examples of minesweeper.ai.utils.Node

      for(List<Position> positions : helper.getClosedUnknownBorderCells()) {
        probBacktrackValid = false;
        toPickMap.clear(); toFlagMap.clear(); solutionsFound = 0;
        toPick.clear(); toPick.addAll(positions);
        toFlag.clear(); toFlag.addAll(positions);
        backtrackSolve(grid, helper, positions, new Node(null,null), new Node(null,null));
        if(toPick.size() == 0 && toFlag.size() == 0) {
          toPick.clear(); toFlag.clear();
          Entry<Position, Integer> pickMax = null, flagMax = null;
          if(toPickMap.size() >= 1) pickMax = Collections.max(toPickMap.entrySet(), (a,b) -> a.getValue()-b.getValue());
          if(toFlagMap.size() >= 1) flagMax = Collections.max(toFlagMap.entrySet(), (a,b) -> a.getValue()-b.getValue());

Examples of mockit.coverage.paths.Node

   {
      if (nodeIndex == 0) {
         clearNodes();
      }

      Node node = nodes.get(nodeIndex);
      List<Node> currentNodesReached = nodesReached.get();

      if (!node.wasReached() && (nodeIndex == 0 || nodeIndex > previousNodeIndex.get())) {
         node.setReached(Boolean.TRUE);
         currentNodesReached.add(node);
         previousNodeIndex.set(nodeIndex);
      }

      if (node instanceof Exit) {

Examples of model.Node

  /**
   * @param args
   */
  public static void main(String[] args) {
    // TODO Auto-generated method stub
    Node node = new Node();
    node.setId(0);
    node.setOs("ipad");
    node.setPv(100);
    node.setVv(1000);
    node.setDate("2013-07-09");
    JSONObject ja = JSONObject.fromObject(node);
    System.out.println(ja.toString());
  }

Examples of name.pehl.totoe.xml.client.Node

    @UiHandler("select")
    void onSelect(ClickEvent event)
    {
        String result = null;
        Node contextNode = null;

        String xmlValue = xmlIn.getText();
        String xpathValue = xpath.getText();
        String contextValue = context.getText();
        String namespacesValue = namespaces.getText();
        if (xmlValue == null || xmlValue.trim().length() == 0)
        {
            result = "No xml input given";
        }
        else if (xpathValue == null || xpathValue.trim().length() == 0)
        {
            result = "No xpath given";
        }

        if (namespacesValue != null && namespacesValue.trim().length() == 0)
        {
            namespacesValue = null;
        }
        try
        {
            Document document = new XmlParser().parse(xmlValue, namespacesValue);
            if (contextValue != null && contextValue.trim().length() != 0)
            {
                contextNode = document.selectNode(contextValue);
            }
            else
            {
                contextNode = document;
            }
            List<Node> nodes = contextNode.selectNodes(xpathValue);
            result = buildResult(nodes);
        }
        catch (XPathException e)
        {
            result = "Exception:\n" + e.getMessage();

Examples of net.asfun.jangod.tree.Node

    String templateFile = rebuilder.resolveString(helper[0]);
    try {
      String fullName = ResourceManager.getFullName(templateFile,
          rebuilder.getWorkspace(), rebuilder.getConfiguration().getWorkspace());
      //TODO STOP LOOP EXTENDS
      Node extendsRoot = TreeParser.parser( new TokenParser( ResourceManager.getResource(
          fullName, rebuilder.getConfiguration().getEncoding())));
      extendsRoot = rebuilder.derive().refactor(extendsRoot);
     
      rebuilder.parent = extendsRoot;
      rebuilder.nodeRemove(current);

Examples of net.citizensnpcs.properties.Node

  }

  @Override
  public List<Node> getNodes() {
    List<Node> nodes = new ArrayList<Node>();
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.armorrepair.leather", 0.25));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.armorrepair.gold", 0.50));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.armorrepair.chainmail", 0.75));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.armorrepair.iron", 1));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.armorrepair.diamond", 1.25));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.toolrepair.wood", 0.25));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.toolrepair.gold", 0.50));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.toolrepair.stone", 0.75));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.toolrepair.iron", 1));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.toolrepair.diamond", 1.25));
    nodes.add(new Node("", SettingsType.GENERAL,
        "economy.prices.blacksmith.toolrepair.misc", 0.50));
    return nodes;
  }

Examples of net.javacrumbs.jsonunit.core.internal.Node

     * Fails if the selected JSON is not a String or is not present or the value
     * is not equal to expected value.
     */
    public void isStringEqualTo(String expected) {
        isString();
        Node node = getNode(actual, path);
        if (!node.asText().equals(expected)) {
            failWithMessage("Node \"" + path + "\" is not equal to \"" + expected + "\".");
        }
    }
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.