@SuppressWarnings("unchecked") public Iterator<Property> next() { Node n = nodes.next(); try { return n.getProperties(); } catch (RepositoryException e) { errorHandler.call(n, e); return empty(); } }
/** * Returns an iterator of iterators of the child nodes of <code>node</code>. */ private Iterator<Iterator<Node>> childIterators(Node node) { try { final NodeIterator childNodes = node.getNodes(); return new Iterator<Iterator<Node>>() { public boolean hasNext() { return childNodes.hasNext(); } public Iterator<Node> next() { return iterator(childNodes.nextNode()); } public void remove() { throw new UnsupportedOperationException(); } }; } catch (RepositoryException e) { errorHandler.call(node, e); return empty(); } }
/** * Returns an iterator of iterators of the child nodes of <code>node</code>. */ private Iterator<Iterator<Node>> childIterators(Node node) { try { final NodeIterator childNodes = node.getNodes(); return new Iterator<Iterator<Node>>() { public boolean hasNext() { return childNodes.hasNext(); } public Iterator<Node> next() { return iterator(childNodes.nextNode()); } public void remove() { throw new UnsupportedOperationException(); } }; } catch (RepositoryException e) { errorHandler.call(node, e); return empty(); } }
/** * Returns an iterator of iterators of the child nodes of <code>node</code>. */ private Iterator<Iterator<Node>> childIterators(Node node) { try { final NodeIterator childNodes = node.getNodes(); return new Iterator<Iterator<Node>>() { public boolean hasNext() { return childNodes.hasNext(); } public Iterator<Node> next() { return iterator(childNodes.nextNode()); } public void remove() { throw new UnsupportedOperationException(); } }; } catch (RepositoryException e) { errorHandler.call(node, e); return empty(); } }
@SuppressWarnings("unchecked") public Iterator<Property> next() { Node n = nodes.next(); try { return n.getProperties(); } catch (RepositoryException e) { errorHandler.call(n, e); return empty(); } }
@SuppressWarnings("unchecked") public Iterator<Property> next() { Node n = nodes.next(); try { return n.getProperties(); } catch (RepositoryException e) { errorHandler.call(n, e); return empty(); } }