org.apache.cocoon.components.treeprocessor
Class CategoryNodeBuilder
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.cocoon.components.treeprocessor.AbstractProcessingNodeBuilder
|
+--org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder
|
+--org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, ProcessingNodeBuilder, org.apache.avalon.framework.component.Recomposable, org.apache.avalon.framework.thread.ThreadSafe
- public class CategoryNodeBuilder
- extends AbstractParentProcessingNodeBuilder
- implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.thread.ThreadSafe
Builds a generic container node.
- Version:
- CVS $Id: CategoryNodeBuilder.java,v 1.1 2002/03/05 08:26:22 sylvain Exp $
- Author:
- Sylvain Wallez
Field Summary |
protected java.lang.String |
name
|
Method Summary |
ProcessingNode |
buildNode(org.apache.avalon.framework.configuration.Configuration config)
Build the ProcessingNode and its children from the given
Configuration , and optionnaly register it in the tree builder
for lookup by other LinkedProcessingNodeBuilder s. |
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
The category name is the value of the "category-name" child, or if not
present, the name of the configuration element. |
static CategoryNode |
getCategoryNode(TreeBuilder builder,
java.lang.String categoryName)
|
static ProcessingNode |
getNamedNode(TreeBuilder builder,
java.lang.String categoryName,
java.lang.String nodeName)
|
protected boolean |
hasParameters()
This builder has no parameters -- return false |
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 |
name
protected java.lang.String name
CategoryNodeBuilder
public CategoryNodeBuilder()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
- The category name is the value of the "category-name" child, or if not
present, the name of the configuration element.
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Overrides:
configure
in class AbstractParentProcessingNodeBuilder
org.apache.avalon.framework.configuration.ConfigurationException
hasParameters
protected boolean hasParameters()
- This builder has no parameters -- return
false
- Overrides:
hasParameters
in class AbstractProcessingNodeBuilder
buildNode
public ProcessingNode buildNode(org.apache.avalon.framework.configuration.Configuration config)
throws java.lang.Exception
- Description copied from interface:
ProcessingNodeBuilder
- Build the
ProcessingNode
and its children from the given
Configuration
, and optionnaly register it in the tree builder
for lookup by other LinkedProcessingNodeBuilder
s.
- Specified by:
buildNode
in interface ProcessingNodeBuilder
java.lang.Exception
getCategoryNode
public static CategoryNode getCategoryNode(TreeBuilder builder,
java.lang.String categoryName)
getNamedNode
public static ProcessingNode getNamedNode(TreeBuilder builder,
java.lang.String categoryName,
java.lang.String nodeName)
throws java.lang.Exception
java.lang.Exception
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.