1 package org.catacomb.druid.xtext.base; 2 3 import org.catacomb.druid.xtext.data.PageDataStore; 4 import org.catacomb.interlish.structure.TreeNode; 5 6 7 8 public class XTDoc implements TreeNode { 9 10 String title; 11 ContainerBlock rootBlock; 12 PageDataStore pdStore; 13 DocStore docStore; 14 15 public XTDoc(DocStore ds, String s, ContainerBlock rb) { 16 docStore = ds; 17 title = s; 18 rootBlock = rb; 19 pdStore = new PageDataStore(ds); 20 } 21 22 23 public Object getParent() { 24 return docStore; 25 } 26 27 28 public String toString() { 29 return title; 30 } 31 32 public String getTitle() { 33 return title; 34 } 35 36 public ContainerBlock getRootBlock() { 37 return rootBlock; 38 } 39 40 public PageDataStore getPageDataStore() { 41 return pdStore; 42 } 43 44 45 46 47 48 public int getChildCount() { 49 return 0; 50 } 51 52 53 public Object getChild(int index) { 54 return null; 55 } 56 57 58 public int getIndexOfChild(Object child) { 59 return 0; 60 } 61 62 63 public boolean isLeaf() { 64 return true; 65 } 66 67 }