Examples of children()


Examples of org.apache.felix.sigil.common.model.IModelElement.children()

            public boolean hasChildren(Object element)
            {
                if (element instanceof ICompoundModelElement)
                {
                    ICompoundModelElement model = (ICompoundModelElement) element;
                    return model.children().length > 0;
                }
                return false;
            }

            public Object[] getElements(Object inputElement)
View Full Code Here

Examples of org.apache.felix.sigil.common.model.osgi.IBundleModelElement.children()

            IBldProject project;

            project = BldFactory.getProject(uri);

            IBundleModelElement requirements = project.getDependencies();
            Log.verbose("requirements: " + Arrays.asList(requirements.children()));

            // preserve version range for Require-Bundle
            // XXX: synthesise bundle version range corresponding to package version ranges?
            HashMap<String, VersionRange> versions = new HashMap<String, VersionRange>();
            for (IModelElement child : requirements.children())
View Full Code Here

Examples of org.apache.isis.core.metamodel.layout.DeweyOrderSet.children()

        firstNameMember.addFacet(new MemberOrderFacetAnnotation("", "2", firstNameMember));

        final DeweyOrderSet orderSet = DeweyOrderSet.createOrderSet(lastNameAndFirstName);
        assertEquals(2, orderSet.size());
        assertEquals(2, orderSet.elementList().size());
        assertEquals(0, orderSet.children().size());
    }

    public void testDefaultGroupTwoMembersSorted() {
        lastNameMember.addFacet(new MemberOrderFacetAnnotation("", "1", lastNameMember));
        firstNameMember.addFacet(new MemberOrderFacetAnnotation("", "2", firstNameMember));
View Full Code Here

Examples of org.apache.isis.core.metamodel.layout.OrderSet.children()

        postalTownMember.addFacet(new MemberOrderFacetAnnotation("address", "3", postalTownMember));

        final DeweyOrderSet orderSet = DeweyOrderSet.createOrderSet(nameAndAddressMembers);
        final OrderSet childOrderSet = orderSet.children().get(0);
        assertEquals(3, childOrderSet.size());
        assertEquals(0, childOrderSet.children().size());
    }

    public void testWithChildGroupChildsGroupElementOrdering() {
        lastNameMember.addFacet(new MemberOrderFacetAnnotation("", "1", lastNameMember));
        firstNameMember.addFacet(new MemberOrderFacetAnnotation("", "2", firstNameMember));
View Full Code Here

Examples of org.apache.isis.core.metamodel.layout.memberorderfacet.DeweyOrderSet.children()

        firstNameMember.addFacet(new MemberOrderFacetAnnotation("", "2", firstNameMember));

        final DeweyOrderSet orderSet = DeweyOrderSet.createOrderSet(lastNameAndFirstName);
        assertEquals(2, orderSet.size());
        assertEquals(2, orderSet.elementList().size());
        assertEquals(0, orderSet.children().size());
    }

    public void testDefaultGroupTwoMembersSorted() {
        lastNameMember.addFacet(new MemberOrderFacetAnnotation("", "1", lastNameMember));
        firstNameMember.addFacet(new MemberOrderFacetAnnotation("", "2", firstNameMember));
View Full Code Here

Examples of org.apache.jmeter.gui.tree.JMeterTreeNode.children()

    private void addTimers(JMeterTreeModel model, JMeterTreeNode node, long deltaT) {
        TestPlan variables = new TestPlan();
        variables.addParameter("T", Long.toString(deltaT)); // $NON-NLS-1$
        ValueReplacer replacer = new ValueReplacer(variables);
        JMeterTreeNode mySelf = model.getNodeOf(this);
        Enumeration<JMeterTreeNode> children = mySelf.children();
        while (children.hasMoreElements()) {
            JMeterTreeNode templateNode = children.nextElement();
            if (templateNode.isEnabled()) {
                TestElement template = templateNode.getTestElement();
                if (template instanceof Timer) {
View Full Code Here

Examples of org.apache.lucene.facet.taxonomy.ParallelTaxonomyArrays.children()

    }
   
    ParallelTaxonomyArrays arrays = taxonomyReader.getParallelTaxonomyArrays();
   
    // compute top-K
    final int[] children = arrays.children();
    final int[] siblings = arrays.siblings();
    List<FacetResult> res = new ArrayList<FacetResult>();
    for (FacetRequest fr : searchParams.facetRequests) {
      int rootOrd = taxonomyReader.getOrdinal(fr.categoryPath);
      if (rootOrd == TaxonomyReader.INVALID_ORDINAL) { // category does not exist
View Full Code Here

Examples of org.apache.lucene.facet.taxonomy.directory.ParallelTaxonomyArrays.children()

    TaxonomyWriter tw = new DirectoryTaxonomyWriter(indexDir);
    fillTaxonomy(tw);
    tw.close();
    TaxonomyReader tr = new DirectoryTaxonomyReader(indexDir);
    ParallelTaxonomyArrays ca = tr.getParallelTaxonomyArrays();
    int[] youngestChildArray = ca.children();
    assertEquals(tr.getSize(), youngestChildArray.length);
    int[] olderSiblingArray = ca.siblings();
    assertEquals(tr.getSize(), olderSiblingArray.length);
    for (int i=0; i<expectedCategories.length; i++) {
      // find expected children by looking at all expectedCategories
View Full Code Here

Examples of org.apache.lucene.index.IndexReaderContext.children()

    IndexReader reader = getIndexReader();
    IndexReaderContext indexReaderContext = reader.getContext();
    if (filter == null) {
      for (int i = 0; i < _subReaders.length; i++) {
        AtomicReaderContext atomicContext = indexReaderContext.children() == null ? (AtomicReaderContext) indexReaderContext
            : (AtomicReaderContext) (indexReaderContext.children().get(i));
        int docStart = start;
       
        atomicContext = AtomicReaderContextUtil.updateDocBase(atomicContext, docStart);
       
View Full Code Here

Examples of org.apache.myfaces.custom.tree.DefaultMutableTreeNode.children()

        int nodePathDepth = getNodePathDepth(nodePath);
        for (int i = 1; i < nodePathDepth; i++)
        {
            if (null != treeNode)
            {
                treeNode = findTreeNodeAtDepth(getNodePathAtDepth(nodePath, i), treeNode.children());
            }
        }
        return treeNode;
    }
   
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.