private List<DatabaseObject> objects;
public Collection<DatabaseObject> buildObjects(TreeMapperNode root) {
objects = Lists.newArrayList();
TreeMapperNodeVisitor visitor = new VisitorImpl();
// The root node is not part of the table structure, so we skip that:
for (Iterator<TreeMapperNode> it = root.children(); it.hasNext(); ) {
buildObjectsImpl(it.next(), visitor);
}
return objects;