Package org.apache.jackrabbit.util

Examples of org.apache.jackrabbit.util.ChildrenCollectorFilter


           
            Node node;
            try {
                node = CommandHelper.getNode(ctx, ".");
                Collection items = new ArrayList();
                ChildrenCollectorFilter collector = new ChildrenCollectorFilter(
                    "*", items, true, true, 1);
                collector.visit(node);
                for (Object item : items) {
                    String can = ((Item) item).getName();
                    if (can.startsWith(start)) {
                        clist.add(can);
                    }
View Full Code Here


            log.debug("removing nodes from " + n.getPath()
                    + " that match pattern " + pattern);
        }

        List children = new ArrayList();
        ChildrenCollectorFilter collector = new ChildrenCollectorFilter(
            pattern, children, true, true, 1);
        collector.visit(n);

        Iterator items = children.iterator();

        while (items.hasNext()) {
            Item item = (Item) items.next();
View Full Code Here

        // check state of this instance
        sanityCheck();

        ArrayList nodes = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, nodes, true, false, 1));
        return new NodeIteratorAdapter(nodes);
    }
View Full Code Here

        // check state of this instance
        sanityCheck();

        ArrayList properties = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, properties, false, true, 1));
        return new PropertyIteratorAdapter(properties);
    }
View Full Code Here

        // check state of this instance
        sanityCheck();

        ArrayList nodes = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, nodes, true, false, 1));
        return new IteratorHelper(Collections.unmodifiableList(nodes));
    }
View Full Code Here

        // check state of this instance
        sanityCheck();

        ArrayList properties = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, properties, false, true, 1));
        return new IteratorHelper(Collections.unmodifiableList(properties));
    }
View Full Code Here

     */
    public NodeIterator getNodes(String namePattern) throws RepositoryException {
        checkStatus();
        ArrayList nodes = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, nodes, true, false, 1));
        return new NodeIteratorAdapter(nodes);
    }
View Full Code Here

     */
    public PropertyIterator getProperties(String namePattern) throws RepositoryException {
        checkStatus();
        ArrayList properties = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, properties, false, true, 1));
        return new PropertyIteratorAdapter(properties);
    }
View Full Code Here

        // check state of this instance
        sanityCheck();

        ArrayList nodes = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, nodes, true, false, 1));
        return new NodeIteratorAdapter(nodes);
    }
View Full Code Here

        // check state of this instance
        sanityCheck();

        ArrayList properties = new ArrayList();
        // traverse children using a special filtering 'collector'
        accept(new ChildrenCollectorFilter(namePattern, properties, false, true, 1));
        return new PropertyIteratorAdapter(properties);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.util.ChildrenCollectorFilter

Copyright © 2018 www.massapicom. 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.