NVelocity.Runtime
Class VelocimacroFactory

VelocimacroFactory.java * manages the set of VMs in a running Velocity engine. *

Constructor Summary
VelocimacroFactory(NVelocity.Runtime.RuntimeServices rs)
         CTOR : requires a runtime services from now on

Method Summary
bool addVelocimacro(string name, string macroBody, string[] argArray, string sourceTemplate)
         adds a macro to the factory.
bool dumpVMNamespace(string namespace_Renamed)
         tells the vmManager to dump the specified namespace
NVelocity.Runtime.Directive.Directive getVelocimacro(string vmName, string sourceTemplate)
         actual factory : creates a Directive that will behave correctly wrt getting the framework to dig out the correct # of args
void initVelocimacro()
         initialize the factory - setup all permissions load all global libraries.
bool isVelocimacro(string vm, string sourceTemplate)
         Tells the world if a given directive string is a Velocimacro

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

VelocimacroFactory

public VelocimacroFactory(NVelocity.Runtime.RuntimeServices rs)

CTOR : requires a runtime services from now on

Method Detail

addVelocimacro

public bool addVelocimacro(string name,
                           string macroBody,
                           string[] argArray,
                           string sourceTemplate)

adds a macro to the factory.


dumpVMNamespace

public bool dumpVMNamespace(string namespace_Renamed)

tells the vmManager to dump the specified namespace


getVelocimacro

public NVelocity.Runtime.Directive.Directive getVelocimacro(string vmName,
                                                            string sourceTemplate)

actual factory : creates a Directive that will behave correctly wrt getting the framework to dig out the correct # of args


initVelocimacro

public void initVelocimacro()

initialize the factory - setup all permissions load all global libraries.


isVelocimacro

public bool isVelocimacro(string vm,
                          string sourceTemplate)

Tells the world if a given directive string is a Velocimacro