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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
          extended by org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
              extended by org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
                  extended by org.apache.cocoon.components.treeprocessor.SimpleSelectorProcessingNode
                      extended by org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode
All Implemented Interfaces:
Disposable, Composable, LogEnabled, ThreadSafe, ParameterizableProcessingNode, ProcessingNode, Locatable

public class ActTypeNode
extends SimpleSelectorProcessingNode
implements ParameterizableProcessingNode, Disposable, Composable

Handles <map:act type="..."> (action-sets calls are handled by ActSetNode).

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

Field Summary
protected  boolean inActionSet
           
protected  ComponentManager manager
           
protected  String name
          The 'name' for the variable anchor
protected  VariableResolver source
          The 'src' attribute
protected  Action threadSafeAction
          Pre-selected action, if it's ThreadSafe
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.SimpleSelectorProcessingNode
componentName, selector
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
children
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
location
 
Fields inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNode
OBJECT_SOURCE_RESOLVER
 
Constructor Summary
ActTypeNode(String type, VariableResolver source, String name, boolean inActionSet)
           
 
Method Summary
 void compose(ComponentManager manager)
           
 void dispose()
           
 boolean invoke(Environment env, InvokeContext context)
          Define common invoke behavior here
 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
getThreadSafeComponent, getThreadSafeComponent, setSelector
 
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, getSourceResolver, setLocation
 
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
 

Field Detail

source

protected VariableResolver source
The 'src' attribute


name

protected String name
The 'name' for the variable anchor


threadSafeAction

protected Action threadSafeAction
Pre-selected action, if it's ThreadSafe


manager

protected ComponentManager manager

inActionSet

protected boolean inActionSet
Constructor Detail

ActTypeNode

public ActTypeNode(String type,
                   VariableResolver source,
                   String name,
                   boolean inActionSet)
            throws PatternException
Throws:
PatternException
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

compose

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

invoke

public final boolean invoke(Environment env,
                            InvokeContext context)
                     throws Exception
Description copied from class: SimpleParentProcessingNode
Define common invoke behavior here

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

dispose

public void dispose()
Specified by:
dispose in interface Disposable


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