|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage
public class SitemapLanguage
The tree builder for the sitemap language.
Field Summary | |
---|---|
static String |
FIRST_POS_LABEL
Pseudo-label for views from-position="first" (i.e. generator). |
static String |
LAST_POS_LABEL
Pseudo-label for views from-position="last" (i.e. serializer). |
Fields inherited from class org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder |
---|
attributes, builderSelector, configuration, context, fileName, languageName, lifecycle, manager, namespace, parameterElement, parentManager, parentRoleManager, processor, roleManager |
Constructor Summary | |
---|---|
SitemapLanguage()
|
Method Summary | |
---|---|
void |
addViewForLabel(String label,
String view)
Add a view for a label. |
protected ComponentManager |
createComponentManager(Configuration tree)
Build a component manager with the contents of the <map:components> element of the tree. |
Map |
getHintsForStatement(String role,
String hint,
Configuration statement)
Extract pipeline-hints from the given statement (if any exist) |
Map |
getViewNodes(Collection viewNames)
Get the {view name, view node} map for a collection of view names. |
Collection |
getViewsForStatement(String role,
String hint,
Configuration statement)
Get the names of views for a given statement. |
boolean |
isBuildingErrorHandler()
Are we currently building an error handler ? |
boolean |
isBuildingView()
Are we currently building a view ? |
protected void |
linkNodes()
Before linking nodes, lookup the view category node used in getViewNodes(Collection) . |
void |
recycle()
|
void |
setBuildingErrorHandler(boolean building)
Set to true while building the internals of a <map:handle-errors> |
void |
setBuildingView(boolean building)
Set to true while building the internals of a <map:view> |
Methods inherited from class org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder |
---|
build, build, compose, configure, contextualize, createBuilderSelector, createNodeBuilder, createRoleManager, createTree, dispose, getAttribute, getDisposableNodes, getFileName, getLanguage, getLocation, getNamespace, getParameterName, getParameters, getProcessor, getRegisteredNode, getSitemapComponentManager, getTypeForStatement, recompose, registerNode, setAttribute, setProcessor, setRoleManager, setupNode |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FIRST_POS_LABEL
from-position="first"
(i.e. generator).
public static final String LAST_POS_LABEL
from-position="last"
(i.e. serializer).
Constructor Detail |
---|
public SitemapLanguage()
Method Detail |
---|
protected ComponentManager createComponentManager(Configuration tree) throws Exception
createComponentManager
in class DefaultTreeBuilder
Exception
public void recycle()
recycle
in interface Recyclable
recycle
in class DefaultTreeBuilder
public void setBuildingView(boolean building)
true
while building the internals of a <map:view>
public boolean isBuildingView()
public void setBuildingErrorHandler(boolean building)
true
while building the internals of a <map:handle-errors>
public boolean isBuildingErrorHandler()
public void addViewForLabel(String label, String view)
label
- the label (or pseudo-label) for the viewview
- the view namepublic Collection getViewsForStatement(String role, String hint, Configuration statement) throws Exception
role
- the component role (e.g. Generator.ROLE
)hint
- the component hint, i.e. the 'type' attributestatement
- the sitemap statement
Exception
protected void linkNodes() throws Exception
getViewNodes(Collection)
.
linkNodes
in class DefaultTreeBuilder
Exception
public Map getViewNodes(Collection viewNames) throws Exception
viewNames
- the view names
Exception
public Map getHintsForStatement(String role, String hint, Configuration statement) throws Exception
role
- the component role (e.g. Generator.ROLE
)hint
- the component hint, i.e. the 'type' attributestatement
- the sitemap statement
Map
for this statement, or null
if none exist
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |