Package org.apache.jackrabbit.commons.iterator

Examples of org.apache.jackrabbit.commons.iterator.NodeIteratorAdapter.nextNode()


                Set<Node> matchSet = new HashSet<Node>();
                collectNodes(value, Collections.singleton(propertyName), ntName, root.getNodes(), matchSet, true, 1);

                NodeIterator it = new NodeIteratorAdapter(matchSet);
                if (it.hasNext()) {
                    return it.nextNode();
                }
            } catch (PathNotFoundException e) {
                // should not get here
                log.warn("Error while retrieving node " + sr);
            }
View Full Code Here


                Set<Node> matchSet = new HashSet<Node>();
                collectNodes(value, Collections.singleton(propertyName), ntName, root.getNodes(), matchSet, true, 1);

                NodeIterator it = new NodeIteratorAdapter(matchSet);
                if (it.hasNext()) {
                    return it.nextNode();
                }
            } catch (PathNotFoundException e) {
                // should not get here
                log.warn("Error while retrieving node " + sr);
            }
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.