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

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
              |
              +--org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
                    |
                    +--org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode
                          |
                          +--org.apache.cocoon.components.treeprocessor.SimpleSelectorProcessingNode
                                |
                                +--org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.logger.Loggable, ParameterizableProcessingNode, ProcessingNode, org.apache.avalon.framework.thread.ThreadSafe

public class ActTypeNode
extends SimpleSelectorProcessingNode
implements ParameterizableProcessingNode, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.component.Composable

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

Version:
CVS $Id: ActTypeNode.java,v 1.2.2.1 2002/11/25 21:51:59 sylvain Exp $
Author:
Sylvain Wallez

Field Summary
protected  org.apache.avalon.framework.component.ComponentManager manager
           
protected  java.lang.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(java.lang.String type, VariableResolver source, java.lang.String name)
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager manager)
           
 void dispose()
           
 boolean invoke(Environment env, InvokeContext context)
          Process environment.
 void setParameters(java.util.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.AbstractLoggable
getLogger, setLogger, 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 java.lang.String name
The 'name' for the variable anchor


threadSafeAction

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


manager

protected org.apache.avalon.framework.component.ComponentManager manager
Constructor Detail

ActTypeNode

public ActTypeNode(java.lang.String type,
                   VariableResolver source,
                   java.lang.String name)
            throws PatternException
Method Detail

setParameters

public void setParameters(java.util.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(org.apache.avalon.framework.component.ComponentManager manager)
             throws org.apache.avalon.framework.component.ComponentException
Specified by:
compose in interface org.apache.avalon.framework.component.Composable
org.apache.avalon.framework.component.ComponentException

invoke

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

Specified by:
invoke in interface ProcessingNode
Overrides:
invoke in class SimpleParentProcessingNode
java.lang.Exception

dispose

public void dispose()
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable


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