1 16 package org.apache.cocoon.components.treeprocessor; 17 18 import org.apache.avalon.framework.component.Component; 19 import org.apache.avalon.framework.component.ComponentManager; 20 import org.apache.avalon.framework.configuration.Configuration; 21 import org.apache.avalon.framework.configuration.ConfigurationException; 22 import org.apache.excalibur.source.Source; 23 24 import java.util.List ; 25 26 31 32 public interface TreeBuilder extends Component { 33 34 void setProcessor(ConcreteTreeProcessor processor); 35 36 ConcreteTreeProcessor getProcessor(); 37 38 41 String getLanguage(); 42 43 46 String getParameterName(); 47 48 55 boolean registerNode(String name, ProcessingNode node); 56 57 60 ProcessingNode getRegisteredNode(String name); 61 62 ProcessingNodeBuilder createNodeBuilder(Configuration config) throws Exception ; 63 64 67 String getNamespace(); 68 69 72 ProcessingNode build(Configuration tree) throws Exception ; 73 74 ProcessingNode build(Source source) throws Exception ; 75 76 String getFileName(); 77 78 83 List getDisposableNodes(); 84 85 93 ProcessingNode setupNode(ProcessingNode node, Configuration config) throws Exception ; 94 95 96 103 String getTypeForStatement(Configuration statement, String role) throws ConfigurationException; 104 105 108 ComponentManager getSitemapComponentManager(); 109 110 113 void setAttribute(String name, Object value); 114 115 118 Object getAttribute(String name); 119 } 120 | Popular Tags |