| org.apache.cocoon.components.treeprocessor.TreeBuilder
All known Subclasses: org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder,
TreeBuilder | public interface TreeBuilder extends Component(Code) | | author: Sylvain Wallez version: CVS $Id: TreeBuilder.java 433543 2006-08-22 06:22:54Z crossley $ |
getDisposableNodes | List getDisposableNodes()(Code) | | Return the list of ProcessingNodes part of this tree that are
Disposable . Care should be taken to properly dispose them before
trashing the processing tree.
|
getLanguage | String getLanguage()(Code) | | Returns the language that is being built (e.g. "sitemap").
|
getNamespace | String getNamespace()(Code) | | Get the namespace URI that builders should use to find their nodes.
|
getParameterName | String getParameterName()(Code) | | Returns the name of the parameter element.
|
getSitemapComponentManager | ComponentManager getSitemapComponentManager()(Code) | | Return the sitemap component manager
|
getTypeForStatement | String getTypeForStatement(Configuration statement, String role) throws ConfigurationException(Code) | | Get the type for a statement : it returns the 'type' attribute if present,
and otherwhise the default hint for the ComponentSelector identified by
the role role .
throws: ConfigurationException - if the default type could not be found. |
registerNode | boolean registerNode(String name, ProcessingNode node)(Code) | | Register a ProcessingNode under a given name.
For example, ResourceNodeBuilder stores here the ProcessingNode s
it produces for use by sitemap pipelines. This allows to turn the tree into a graph.
If a node with the name is already registed, the process fails!
If the node could be registered, true is returned; otherwise false. |
setAttribute | void setAttribute(String name, Object value)(Code) | | Add an attribute. Useful to transmit information between distant (in the tree) node builders
|
setupNode | ProcessingNode setupNode(ProcessingNode node, Configuration config) throws Exception(Code) | | Setup a ProcessingNode by setting its location, calling all
the lifecycle interfaces it implements and giving it the parameter map if
it's a ParameterizableNode .
As a convenience, the node is returned by this method to allow constructs
like return treeBuilder.setupNode(new MyNode(), config) .
|
|
|