org.apache.cocoon.components.treeprocessor.sitemap
Class SwitchSelectNode

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.treeprocessor.AbstractProcessingNode
          extended byorg.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
              extended byorg.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
                  extended byorg.apache.cocoon.components.treeprocessor.SimpleSelectorProcessingNode
                      extended byorg.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode
All Implemented Interfaces:
Disposable, ExecutionContext, Locatable, LogEnabled, ParameterizableProcessingNode, ProcessingNode, Serviceable, ThreadSafe

public class SwitchSelectNode
extends SimpleSelectorProcessingNode
implements ParameterizableProcessingNode

Version:
CVS $Id: SwitchSelectNode.java 179045 2005-05-30 11:08:13Z cziegeler $
Author:
Sylvain Wallez

Field Summary
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
children
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
componentName, executor, location
 
Constructor Summary
SwitchSelectNode(String name)
           
 
Method Summary
 boolean invoke(Environment env, InvokeContext context)
          Process environment.
 void setCases(ProcessingNode[][] whenNodes, VariableResolver[] whenTests, ProcessingNode[] otherwhiseNodes)
           
 void setParameters(Map parameterMap)
          Set the parameters of this node as a Map of VariableResolvers that will be resolved at process-time.
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.SimpleSelectorProcessingNode
dispose, getComponent, releaseComponent, service
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
hasChildren, setChildren
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes, invokeNodes
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
getLocation, getType, setLocation, setSitemapExecutor
 
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.ProcessingNode
getLocation
 

Constructor Detail

SwitchSelectNode

public SwitchSelectNode(String name)
Method Detail

setParameters

public void setParameters(Map parameterMap)
Description copied from interface: ParameterizableProcessingNode
Set the parameters of this node as a Map of VariableResolvers that will be resolved at process-time.

Specified by:
setParameters in interface ParameterizableProcessingNode

setCases

public void setCases(ProcessingNode[][] whenNodes,
                     VariableResolver[] whenTests,
                     ProcessingNode[] otherwhiseNodes)

invoke

public final boolean invoke(Environment env,
                            InvokeContext context)
                     throws Exception
Description copied from interface: ProcessingNode
Process environment.

Specified by:
invoke in interface ProcessingNode
Overrides:
invoke in class SimpleParentProcessingNode
Throws:
Exception


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.