org.apache.cocoon.components.treeprocessor
Class AbstractProcessingNodeBuilder

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.treeprocessor.AbstractProcessingNodeBuilder
All Implemented Interfaces:
Component, Composable, Recomposable, LogEnabled, ProcessingNodeBuilder
Direct Known Subclasses:
AbstractParentProcessingNodeBuilder, AggregateNodeBuilder, CallNodeBuilder, ComponentsNodeBuilder, GenerateNodeBuilder, MountNodeBuilder, NullNodeBuilder, ReadNodeBuilder, RedirectToNodeBuilder, ScriptNodeBuilder, SerializeNodeBuilder, TransformNodeBuilder

public abstract class AbstractProcessingNodeBuilder
extends AbstractLogEnabled
implements ProcessingNodeBuilder, Recomposable

Version:
CVS $Id: AbstractProcessingNodeBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez

Field Summary
protected  ComponentManager manager
           
protected  TreeBuilder treeBuilder
           
 
Constructor Summary
AbstractProcessingNodeBuilder()
           
 
Method Summary
protected  void checkNamespace(Configuration config)
          Check if the namespace URI of the given configuraition is the same as the one given by the builder.
 void compose(ComponentManager manager)
           
protected  boolean hasParameters()
          Does this node accept parameters ?
 void recompose(ComponentManager manager)
           
 void setBuilder(TreeBuilder treeBuilder)
          Set the builder for which we are building.
 
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
 
Methods inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder
buildNode
 

Field Detail

treeBuilder

protected TreeBuilder treeBuilder

manager

protected ComponentManager manager
Constructor Detail

AbstractProcessingNodeBuilder

public AbstractProcessingNodeBuilder()
Method Detail

compose

public void compose(ComponentManager manager)
             throws ComponentException
Specified by:
compose in interface Composable
Throws:
ComponentException

recompose

public void recompose(ComponentManager manager)
               throws ComponentException
Specified by:
recompose in interface Recomposable
Throws:
ComponentException

setBuilder

public void setBuilder(TreeBuilder treeBuilder)
Description copied from interface: ProcessingNodeBuilder
Set the builder for which we are building.

Specified by:
setBuilder in interface ProcessingNodeBuilder

hasParameters

protected boolean hasParameters()
Does this node accept parameters ? Default is true : if a builder that doesn't have parameters doesn't override this method, erroneous parameters will be silently ignored.


checkNamespace

protected void checkNamespace(Configuration config)
                       throws ConfigurationException
Check if the namespace URI of the given configuraition is the same as the one given by the builder.

Throws:
ConfigurationException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.