1 17 18 19 20 package org.apache.lenya.cms.publication; 21 22 import java.util.List ; 23 24 29 public interface SiteTreeNode { 30 31 36 String getParentId(); 37 38 42 SiteTreeNode getParent(); 43 44 49 SiteTreeNode getParent(String language); 50 51 56 String getAbsoluteId(); 57 58 63 String getAbsoluteParentId(); 64 65 70 String getId(); 71 72 77 Label[] getLabels(); 78 79 87 Label getLabel(String xmlLanguage); 88 89 94 void addLabel(Label label); 95 96 101 void removeLabel(Label label); 102 103 110 boolean visibleInNav(); 111 112 117 String getHref(); 118 119 124 String getSuffix(); 125 126 131 boolean hasLink(); 132 133 138 SiteTreeNode[] getChildren(); 139 140 147 SiteTreeNode[] getChildren(String language); 148 149 155 SiteTreeNode[] removeChildren(); 156 157 160 void deleteChildren() throws SiteTreeException; 161 162 167 SiteTreeNode[] getNextSiblings(); 168 169 172 String getNextSiblingDocumentId(); 173 174 182 void accept(SiteTreeNodeVisitor visitor) throws DocumentException; 183 184 191 void acceptSubtree(SiteTreeNodeVisitor visitor) throws DocumentException; 192 193 200 void acceptReverseSubtree(SiteTreeNodeVisitor visitor) throws DocumentException; 201 202 208 void setLabel(Label label); 209 210 216 void setNodeAttribute (String attributeName, String attributeValue); 217 218 222 List preOrder(); 223 224 228 List postOrder(); 229 230 } 231 | Popular Tags |