Lines Matching defs:node
69 * a node tree that reflects the project's directory structure. After iterating
75 * @return A root Node for the project containing its metadata and tree structure.
77 public Node setSamplesTOC(boolean offlineMode) {
78 List<Node> filelist = new ArrayList<Node>();
91 Node rootNode = writeSampleIndexCs(hdf, f,
92 new Node.Builder().setLabel(mProjectDir).setLink(link).setChildren(filelist).build(),false);
105 List<Node> filelist = new ArrayList<Node>();
126 //Write root _index.jd to out and add metadata to Node.
128 new Node.Builder().setLabel(mProjectDir).setLink(link).build(), true);
132 * Given the root Node for a sample code project, iterates through the project
135 * the root project node.
137 * @param parent The root Node that represents this sample code project.
141 public void setProjectStructure(List<Node> parent, File dir, String relative) {
154 parent.add(new Node.Builder().setLabel(name).setLink(ClearPage.toroot + link).build());
157 List<Node> mchildren = new ArrayList<Node>();
161 parent.add(new Node.Builder().setLabel(name).setLink(ClearPage.toroot
243 List<Node> mchildren = new ArrayList<Node>();
268 * page.tags and sample.group cs vars. This method takes a SC node on input, reads
270 * then updates the SC node with the page vars and returns it to the caller.
274 * @param tnode A Node to serve as the project's root node.
279 public Node writeSampleIndexCs(Data hdf, File dir, Node tnode, boolean writeFiles) {
409 * Given a node containing sample code projects and a node containing all valid
410 * group nodes, extract project nodes from tnode and append them to the group node
418 public static void writeSamplesNavTree(List<Node> tnode, List<Node> groupnodes) {
420 Node node = new Node.Builder().setLabel("Samples").setLink(ClearPage.toroot
437 node.setChildren(groupnodes);
441 node.renderGroupNodesTOC(buf);
449 * For a given project root node, get the group and then iterate the list of valid
450 * groups looking for a match. If found, append the project to that group node.
454 private static List<Node> appendNodeGroups(Node gNode, List<Node> groupnodes) {
455 List<Node> mgrouplist = new ArrayList<Node>();
490 public static Comparator<Node> byLabel = new Comparator<Node>() {
491 public int compare(Node one, Node other) {
499 public static List<Node> squashNodes(List<Node> tnode) {
500 List<Node> list = tnode;
572 * SampleCode variant of NavTree node.
574 public static class Node {
578 private List<Node> mChildren;
581 private Node(Builder builder) {
591 private List<Node> mChildren = null;
595 public Builder setChildren(List<Node> mChildren) { this.mChildren = mChildren; return this;}
597 public Node build() {return new Node(this);}
606 List<Node> list = mChildren;
631 * Renders a list of sample code projects associated with a group node.
634 List<Node> list = mChildren;
659 * Renders child dirs and files associated with a project node.
662 List<Node> list = mChildren;
691 * Node getters and setters
717 public List<Node> getChildren() {
721 public void setChildren(List<Node> node) {
722 mChildren = node;