NVelocity.Runtime
Class VelocimacroManager

Manages VMs in namespaces. Currently, two namespace modes are supported: * flat - all allowable VMs are in the global namespacelocal - inline VMs are added to it's own template namespace * Thanks to Jose Alberto Fernandez for some ideas incorporated here. *

Property Summary
bool NamespaceUsage
bool RegisterFromLib
bool TemplateLocalInlineVM

Method Summary
bool addVM(string vmName, string macroBody, string[] argArray, string namespace_Renamed)
         Adds a VM definition to the cache.
bool dumpNamespace(string namespace_Renamed)
         Removes the VMs and the namespace from the manager. Used when a template is reloaded to avoid accumulating drek *
NVelocity.Runtime.Directive.VelocimacroProxy get(string vmName, string namespace_Renamed)
         gets a new living VelocimacroProxy object by the name / source template duple
string getLibraryName(string vmName, string namespace_Renamed)

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


Property Detail

NamespaceUsage

public bool NamespaceUsage


RegisterFromLib

public bool RegisterFromLib


TemplateLocalInlineVM

public bool TemplateLocalInlineVM

Method Detail

addVM

public bool addVM(string vmName,
                  string macroBody,
                  string[] argArray,
                  string namespace_Renamed)

Adds a VM definition to the cache.

Returns:
Whether everything went okay.

dumpNamespace

public bool dumpNamespace(string namespace_Renamed)

Removes the VMs and the namespace from the manager. Used when a template is reloaded to avoid accumulating drek *

Parameters:
namespace - namespace to dump
Returns:
boolean representing success

get

public NVelocity.Runtime.Directive.VelocimacroProxy get(string vmName,
                                                        string namespace_Renamed)

gets a new living VelocimacroProxy object by the name / source template duple


getLibraryName

public string getLibraryName(string vmName,
                             string namespace_Renamed)