Examples of children()


Examples of edu.harvard.wcfia.yoshikoder.dictionary.CategoryNode.children()

    protected static void recurseHTML(Node n, StringBuffer sb){
        if (n instanceof CategoryNode){
            CategoryNode cn = (CategoryNode)n;          
            sb.append(toHTML(cn));
            sb.append("<ul>\n");
            Enumeration<Node> en = cn.children();
            while (en.hasMoreElements()){
                Node child = en.nextElement();
                recurseHTML(child, sb);
            }
            sb.append("</ul>\n");
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.Sig.PrimSig.children()

     */
    public SimAtom makeAtom(Sig sig) throws Err {
        if (sig.builtin) throw new ErrorAPI("Cannot add an atom to a builtin sig.");
        if (!(sig instanceof PrimSig)) throw new ErrorAPI("Cannot add an atom to a subset sig.");
        PrimSig s = (PrimSig)sig;
        if (s.isAbstract!=null && !s.children().isEmpty()) throw new ErrorAPI("Cannot add an atom to an abstract parent sig.");
        String label = sig.label + "$";
        if (label.startsWith("this/")) label=label.substring(5);
        for(int i=0; ;i++) {
          SimAtom atom = SimAtom.make(label + i);
          if (hasAtom(atom)) continue;
View Full Code Here

Examples of edu.stanford.nlp.trees.Tree.children()

    // TODO: I don't have an explanation for this, it was just stated
    // in Zhang & Clark 2009
    if (state.stack.size() > 0) {
      Tree top = state.stack.peek();
      // Temporary node, eg part of a binarized sequence
      if (top.label().value().startsWith("@") && top.children().length == 2 &&
          ShiftReduceUtils.getBinarySide(top) == BinaryTransition.Side.RIGHT) {
        return false;
      }
    }
View Full Code Here

Examples of es.ipsa.atril.doc.user.Document.children()

  }
 
  public static CaptureTypes top(AtrilSession oSes) throws ElementNotFoundException {
    Document r = oSes.getDms().getRootDocument();
    CaptureTypes t = new CaptureTypes();
    for (Document d : r.children()) {
      if (d.type().name().equals(t.getTypeName())) {
        t.setDocument(oSes.getDms().getDocument(d.id()));
        break;
      }
    } // next
View Full Code Here

Examples of fr.soleil.comete.bean.technicaldata.full.genericclasses.treeutil.TreeNodeFamily.children()

                        {
                            if (! familyNode.isBuilt())
                            {
                                //create all memeber nodes
                                familyNode.addMembers(false);
                                SpRecordingDevices.updateRecordabilityNodes(familyNode.children());
                                familyNode.setBuilt(true);
                            }
                            // get the good member node and check it
                            String strDeviceMember = vectDevice.elementAt(2).toString();
                            TreeNodeMember memberNode = familyNode.getNodeMember(strDeviceMember);
View Full Code Here

Examples of freemarker.core.TemplateElement.children()

        ArrayList elements = new ArrayList();
        TemplateElement element = rootElement;
mainloop:
        while (element.contains(column, line)) {
            elements.add(element);
            for (Enumeration enumeration = element.children(); enumeration.hasMoreElements();) {
                TemplateElement elem = (TemplateElement) enumeration.nextElement();
                if (elem.contains(column, line)) {
                    element = elem;
                    continue mainloop;
                }
View Full Code Here

Examples of freemarker.core.ast.TemplateElement.children()

        ArrayList<TemplateElement> elements = new ArrayList<TemplateElement>();
        TemplateElement element = getRootElement();
mainloop:
        while (element.contains(column, line)) {
            elements.add(element);
            for (Enumeration enumeration = element.children(); enumeration.hasMoreElements();) {
                TemplateElement elem = (TemplateElement) enumeration.nextElement();
                if (elem.contains(column, line)) {
                    element = elem;
                    continue mainloop;
                }
View Full Code Here

Examples of groovy.util.Node.children()

                    HashMap<String, String> map = new HashMap<String, String>();
                    map.put("name", "org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY");
                    map.put("value", delayedString(NATIVES_DIR).call());

                    for (Node child : (List<Node>) root.children())
                    {
                        if (child.attribute("path").equals("org.springsource.ide.eclipse.gradle.classpathcontainer"))
                        {
                            child.appendNode("attributes").appendNode("attribute", map);
                            break;
View Full Code Here

Examples of groovy.util.slurpersupport.GPathResult.children()

            if (key.equals("tagName")) {
                return node.name();
            }

            if (key.equals("children")) {
                return node.children();
            }

            if (key.equals("text")) {
                return node.text();
            }
View Full Code Here

Examples of javax.swing.JTree.DynamicUtilTreeNode.children()

    }

    public void testChildren() throws Exception {
        DynamicUtilTreeNode node = new DynamicUtilTreeNode("value", new Object[] { "1", "2" });
        assertFalse(node.loadedChildren);
        Enumeration<?> children = node.children();
        assertTrue(node.loadedChildren);
        assertEquals("1", ((DefaultMutableTreeNode) children.nextElement()).getUserObject());
        assertEquals("2", ((DefaultMutableTreeNode) children.nextElement()).getUserObject());
    }
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.