|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder
org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage
The tree builder for the sitemap language.
| Nested Class Summary |
| Nested classes inherited from class org.apache.cocoon.components.treeprocessor.TreeBuilder |
TreeBuilder.EventComponent |
| 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 |
applicationContainer, attributes, enterSitemapEventListeners, itsClassLoader, itsComponentInfo, itsNamespace, leaveSitemapEventListeners, parentProcessorManager, processor |
| Fields inherited from interface org.apache.cocoon.components.treeprocessor.TreeBuilder |
ROLE |
| Constructor Summary | |
SitemapLanguage()
|
|
| Method Summary | |
protected void |
addListener(TreeBuilder.EventComponent listener)
Add a listener |
void |
addViewForLabel(String label,
String view)
Add a view for a label. |
protected Context |
createContext(Configuration tree)
Create a context that will be used for all Contextualizable
ProcessingNodeBuilders and ProcessingNodes.
|
protected TreeBuilder.EventComponent |
createListener(ServiceManager manager,
Logger sitemapLogger,
Context context,
Configuration config)
Create a listener |
protected ServiceManager |
createServiceManager(ClassLoader classloader,
Context context,
Configuration config)
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) |
String |
getMimeType(String role,
String hint)
Get the mime-type for a component (either a serializer or a reader) |
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, contextualize, createClassLoader, createNodeBuilder, createTree, dispose, getAttribute, getBuilderConfigURL, getBuiltProcessorClassLoader, getBuiltProcessorManager, getComponentLocator, getDisposableNodes, getEnterSitemapEventListeners, getLeaveSitemapEventListeners, getLocation, getNamespace, getParameters, getProcessor, getRegisteredNode, getTypeForStatement, registerNode, resolve, service, setAttribute, setParentProcessorManager, setProcessor, 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 ServiceManager createServiceManager(ClassLoader classloader,
Context context,
Configuration config)
throws Exception
createServiceManager in class DefaultTreeBuilderException
protected TreeBuilder.EventComponent createListener(ServiceManager manager,
Logger sitemapLogger,
Context context,
Configuration config)
throws Exception
Exceptionprotected void addListener(TreeBuilder.EventComponent listener)
protected Context createContext(Configuration tree)
throws Exception
DefaultTreeBuilderContextualizable
ProcessingNodeBuilders and ProcessingNodes.
The default here is to simply return the context set in
contextualize(), i.e. the context set by the calling
TreeProcessor.
Subclasses can redefine this method to create a context local to a tree, such as for sitemap's <map:components>.
createContext in class DefaultTreeBuilderExceptionDefaultTreeBuilder.createContext(org.apache.avalon.framework.configuration.Configuration)public void recycle()
recycle in interface Recyclablerecycle in class DefaultTreeBuilderpublic 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 name
public 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 DefaultTreeBuilderException
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
public String getMimeType(String role,
String hint)
role - the component role (e.g. Serializer.ROLE)hint - the component hint, i.e. the 'type' attribute
null if none was set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||