| org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage
SitemapLanguage | public class SitemapLanguage extends DefaultTreeBuilder (Code) | | The tree builder for the sitemap language.
author: Sylvain Wallez version: CVS $Id: SitemapLanguage.java 433543 2006-08-22 06:22:54Z crossley $ |
FIRST_POS_LABEL | final public static String FIRST_POS_LABEL(Code) | | Pseudo-label for views from-position="first" (i.e. generator).
|
LAST_POS_LABEL | final public static String LAST_POS_LABEL(Code) | | Pseudo-label for views from-position="last" (i.e. serializer).
|
addViewForLabel | public void addViewForLabel(String label, String view)(Code) | | Add a view for a label. This is used to register all views that start from
a given label.
Parameters: label - the label (or pseudo-label) for the view Parameters: view - the view name |
createComponentManager | protected ComponentManager createComponentManager(Configuration tree) throws Exception(Code) | | Build a component manager with the contents of the <map:components> element of
the tree.
|
getHintsForStatement | public Map getHintsForStatement(String role, String hint, Configuration statement) throws Exception(Code) | | Extract pipeline-hints from the given statement (if any exist)
Parameters: role - the component role (e.g. Generator.ROLE ) Parameters: hint - the component hint, i.e. the 'type' attribute Parameters: statement - the sitemap statement the hint params Map for this statement, or nullif none exist |
getViewNodes | public Map getViewNodes(Collection viewNames) throws Exception(Code) | | Get the {view name, view node} map for a collection of view names.
This allows to resolve view nodes at build time, thus avoiding runtime lookup.
Parameters: viewNames - the view names association of names to views |
getViewsForStatement | public Collection getViewsForStatement(String role, String hint, Configuration statement) throws Exception(Code) | | Get the names of views for a given statement. If the cocoon view exists in the returned
collection, the statement can directly branch to the view-handling node.
Parameters: role - the component role (e.g. Generator.ROLE ) Parameters: hint - the component hint, i.e. the 'type' attribute Parameters: statement - the sitemap statement the view names for this statement |
isBuildingErrorHandler | public boolean isBuildingErrorHandler()(Code) | | Are we currently building an error handler ?
|
isBuildingView | public boolean isBuildingView()(Code) | | Are we currently building a view ?
|
recycle | public void recycle()(Code) | | |
setBuildingErrorHandler | public void setBuildingErrorHandler(boolean building)(Code) | | Set to true while building the internals of a <map:handle-errors>
|
setBuildingView | public void setBuildingView(boolean building)(Code) | | Set to true while building the internals of a <map:view>
|
|
|