|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder | +--org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage
The tree builder for the sitemap language.
Field Summary | |
static java.lang.String |
FIRST_POS_LABEL
Pseudo-label for views from-position="first" (i.e. generator). |
static java.lang.String |
LAST_POS_LABEL
Pseudo-label for views from-position="last" (i.e. serializer). |
Fields inherited from class org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder |
builderSelector, configuration, context, fileName, languageName, lifecycle, logKit, manager, namespace, parameterElement, parentManager, parentRoleManager, processor, roleManager |
Constructor Summary | |
SitemapLanguage()
|
Method Summary | |
void |
addViewForLabel(java.lang.String label,
java.lang.String view)
Add a view for a label. |
protected org.apache.avalon.framework.component.ComponentManager |
createComponentManager(org.apache.avalon.framework.configuration.Configuration tree)
Build a component manager with the contents of the <map:components> element of the tree. |
java.util.Map |
getViewNodes(java.util.Collection viewNames)
Get the {view name, view node} map for a collection of view names. |
java.util.Collection |
getViewsForStatement(java.lang.String role,
java.lang.String hint,
org.apache.avalon.framework.configuration.Configuration statement)
Get the names of views for a given statement. |
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 |
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, getDisposableNodes, getFileName, getLanguage, getNamespace, getParameterName, getParameters, getProcessor, getRegisteredNode, getTypeForStatement, recompose, registerNode, setLogKitManager, setProcessor, setRoleManager, setupNode |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, 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 java.lang.String FIRST_POS_LABEL
from-position="first"
(i.e. generator).
public static final java.lang.String LAST_POS_LABEL
from-position="last"
(i.e. serializer).
Constructor Detail |
public SitemapLanguage()
Method Detail |
protected org.apache.avalon.framework.component.ComponentManager createComponentManager(org.apache.avalon.framework.configuration.Configuration tree) throws java.lang.Exception
createComponentManager
in class DefaultTreeBuilder
java.lang.Exception
public void recycle()
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
recycle
in class DefaultTreeBuilder
public void setBuildingView(boolean building)
true
while building the internals of a <map:view>
public boolean isBuildingView()
public void addViewForLabel(java.lang.String label, java.lang.String view)
label
- the label (or pseudo-label) for the viewview
- the view namepublic java.util.Collection getViewsForStatement(java.lang.String role, java.lang.String hint, org.apache.avalon.framework.configuration.Configuration statement) throws java.lang.Exception
role
- the component role (e.g. Generator.ROLE
)hint
- the component hint, i.e. the 'type' attributestatement
- the sitemap statement
java.lang.Exception
protected void linkNodes() throws java.lang.Exception
getViewNodes(Collection)
.
linkNodes
in class DefaultTreeBuilder
java.lang.Exception
public java.util.Map getViewNodes(java.util.Collection viewNames) throws java.lang.Exception
viewNames
- the view names
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |