org.apache.cocoon.components.treeprocessor
Class CategoryNodeBuilder

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--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.configuration.Configurable, org.apache.avalon.framework.logger.Loggable, ProcessingNodeBuilder, 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
           
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder
allowedChildren, forbiddenChildren, ignoredChildren
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNodeBuilder
treeBuilder
 
Constructor Summary
CategoryNodeBuilder()
           
 
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 Builder for lookup by other LinkedProcessingNodeBuilders.
 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.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder
buildChildNodes, buildChildNodesList, isChild, isParameter, toNodeArray
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNodeBuilder
checkNamespace, getParameters, setBuilder
 
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

name

protected java.lang.String name
Constructor Detail

CategoryNodeBuilder

public CategoryNodeBuilder()
Method Detail

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

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 Builder for lookup by other LinkedProcessingNodeBuilders.

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


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.