C# 클래스 NVelocity.Runtime.VelocimacroFactory

VelocimacroFactory.java * manages the set of VMs in a running Velocity engine. *
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CanAddVelocimacro bool
LogVMMessageInfo void
LogVMMessageWarn void

공개 메소드들

메소드 설명
AddVelocimacro ( String name, String macroBody, String argArray, String sourceTemplate ) : bool

adds a macro to the factory.

DumpVMNamespace ( String ns ) : bool

tells the velocimacroManager to dump the specified namespace

GetVelocimacro ( String vmName, String sourceTemplate ) : Directive

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

InitVelocimacro ( ) : void

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

IsVelocimacro ( String vm, String sourceTemplate ) : bool

Tells the world if a given directive string is a Velocimacro

VelocimacroFactory ( IRuntimeServices rs ) : System

CTOR : requires a runtime services from now on

비공개 메소드들

메소드 설명
CanAddVelocimacro ( String name, String sourceTemplate ) : bool

determines if a given macro/namespace (name, source) combo is allowed to be added *

LogVMMessageInfo ( String s ) : void

localization of the logging logic

LogVMMessageWarn ( String s ) : void

localization of the logging logic

메소드 상세

AddVelocimacro() 공개 메소드

adds a macro to the factory.
public AddVelocimacro ( String name, String macroBody, String argArray, String sourceTemplate ) : bool
name String
macroBody String
argArray String
sourceTemplate String
리턴 bool

DumpVMNamespace() 공개 메소드

tells the velocimacroManager to dump the specified namespace
public DumpVMNamespace ( String ns ) : bool
ns String
리턴 bool

GetVelocimacro() 공개 메소드

actual factory : creates a Directive that will behave correctly wrt getting the framework to dig out the correct # of args
public GetVelocimacro ( String vmName, String sourceTemplate ) : Directive
vmName String
sourceTemplate String
리턴 Directive

InitVelocimacro() 공개 메소드

initialize the factory - setup all permissions load all global libraries.
public InitVelocimacro ( ) : void
리턴 void

IsVelocimacro() 공개 메소드

Tells the world if a given directive string is a Velocimacro
public IsVelocimacro ( String vm, String sourceTemplate ) : bool
vm String
sourceTemplate String
리턴 bool

VelocimacroFactory() 공개 메소드

CTOR : requires a runtime services from now on
public VelocimacroFactory ( IRuntimeServices rs ) : System
rs IRuntimeServices
리턴 System