com.opensymphony.webwork.views.velocity
Class BodyTagDirective

java.lang.Object
  extended byorg.apache.velocity.runtime.directive.Directive
      extended bycom.opensymphony.webwork.views.velocity.AbstractTagDirective
          extended bycom.opensymphony.webwork.views.velocity.BodyTagDirective
All Implemented Interfaces:
Cloneable, org.apache.velocity.runtime.directive.DirectiveConstants

public class BodyTagDirective
extends AbstractTagDirective

Created by IntelliJ IDEA. User: matt Date: May 28, 2003 Time: 12:54:46 PM To change this template use Options | File Templates.


Field Summary
 
Fields inherited from class com.opensymphony.webwork.views.velocity.AbstractTagDirective
log, tagclassMap, VELOCITY_WRITER
 
Fields inherited from class org.apache.velocity.runtime.directive.Directive
rsvc
 
Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants
BLOCK, LINE
 
Constructor Summary
BodyTagDirective()
           
 
Method Summary
protected  Map createPropertyMap(org.apache.velocity.context.InternalContextAdapter contextAdapter, org.apache.velocity.runtime.parser.node.Node node)
          for BLOCK directives, the last element in the Node is the body, so we want to make sure not to include this in the propertyMap that we're generating.
 String getName()
           
 int getType()
           
 
Methods inherited from class com.opensymphony.webwork.views.velocity.AbstractTagDirective
createObject, findTagInPath, getTagPath, processTag, putProperty, render
 
Methods inherited from class org.apache.velocity.runtime.directive.Directive
getColumn, getLine, init, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyTagDirective

public BodyTagDirective()
Method Detail

getName

public String getName()

getType

public int getType()

createPropertyMap

protected Map createPropertyMap(org.apache.velocity.context.InternalContextAdapter contextAdapter,
                                org.apache.velocity.runtime.parser.node.Node node)
                         throws org.apache.velocity.exception.ParseErrorException,
                                org.apache.velocity.exception.MethodInvocationException
for BLOCK directives, the last element in the Node is the body, so we want to make sure not to include this in the propertyMap that we're generating.

Overrides:
createPropertyMap in class AbstractTagDirective
Parameters:
node - the node passed in to the render method
Returns:
a map of the user specified properties
Throws:
org.apache.velocity.exception.ParseErrorException - if a property was improperly formatted
org.apache.velocity.exception.MethodInvocationException
See Also:
AbstractTagDirective.render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer, org.apache.velocity.runtime.parser.node.Node), AbstractTagDirective.createPropertyMap(org.apache.velocity.context.InternalContextAdapter, org.apache.velocity.runtime.parser.node.Node)

WebWork Project Page