org.xwiki.velocity.internal.util
Class VelocityBlock

java.lang.Object
  extended by org.xwiki.velocity.internal.util.VelocityBlock

public class VelocityBlock
extends java.lang.Object

A Velocity element (can be a velocity macro, variable, etc.).

Version:
$Id$

Nested Class Summary
static class VelocityBlock.VelocityType
          The type of found Velocity element.
 
Constructor Summary
VelocityBlock(java.lang.String name, VelocityBlock.VelocityType type)
           
 
Method Summary
 java.lang.String getName()
           
 VelocityBlock.VelocityType getType()
           
 void setName(java.lang.String name)
           
 void setType(VelocityBlock.VelocityType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityBlock

public VelocityBlock(java.lang.String name,
                     VelocityBlock.VelocityType type)
Parameters:
name - the name of the Velocity element (if, macro, ...).
type - the type of the Velocity element.
Method Detail

getName

public java.lang.String getName()
Returns:
the name of the Velocity element (if, macro, ...).

setName

public void setName(java.lang.String name)
Parameters:
name - the name of the Velocity element (if, macro, ...).

getType

public VelocityBlock.VelocityType getType()
Returns:
the type of the Velocity element.

setType

public void setType(VelocityBlock.VelocityType type)
Parameters:
type - the type of the Velocity element.


Copyright © 2004-2011 XWiki. All Rights Reserved.