Esempio n. 1
0
 protected List<Document> getChildren(Node node) {
   List<Node> nodes = session.getChildren(node, null, false);
   List<Document> children = new ArrayList<Document>(nodes.size());
   for (Node n : nodes) {
     try {
       children.add(newDocument(n));
     } catch (NoSuchDocumentException e) {
       // ignore error retrieving one of the children
       continue;
     }
   }
   return children;
 }
Esempio n. 2
0
 protected List<Node> getComplexList(Node node, String name) {
   List<Node> nodes = session.getChildren(node, name, true);
   return nodes;
 }