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

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.treeprocessor.AbstractProcessingNode
          extended byorg.apache.cocoon.components.treeprocessor.sitemap.ScriptNode
All Implemented Interfaces:
ExecutionContext, Locatable, LogEnabled, ProcessingNode, ThreadSafe

public class ScriptNode
extends AbstractProcessingNode

Handler for <map:script> elements in the sitemap. It registers the

Since:
March 13, 2002
Version:
CVS $Id: ScriptNode.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Ovidiu Predescu

Field Summary
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
componentName, executor, location
 
Constructor Summary
ScriptNode(String source)
           
 
Method Summary
 boolean invoke(Environment env, InvokeContext context)
          This method should never be called by the TreeProcessor, since a element should not be in an "executable" sitemap node.
 void registerScriptWithInterpreter(Interpreter interpreter)
           
 
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
 

Constructor Detail

ScriptNode

public ScriptNode(String source)
Method Detail

invoke

public boolean invoke(Environment env,
                      InvokeContext context)
               throws Exception
This method should never be called by the TreeProcessor, since a element should not be in an "executable" sitemap node.

Parameters:
env - an Environment value
context - an InvokeContext value
Returns:
a boolean value
Throws:
Exception - if an error occurs

registerScriptWithInterpreter

public void registerScriptWithInterpreter(Interpreter interpreter)


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