메소드 | 설명 | |
---|---|---|
AddProperty ( String key, Object value ) : void |
Add a property to the configuration. If it already exists then the value stated here will be added to the configuration entry.
|
|
AddVelocimacro ( String name, String macro, String argArray, String sourceTemplate ) : bool |
Adds a new Velocimacro. Usually called by Macro only while parsing.
|
|
ClearProperty ( String key ) : void |
Clear the values pertaining to a particular property.
|
|
CreateNewParser ( ) : |
Returns a JavaCC generated Parser.
|
|
Debug ( Object message ) : void |
Log a debug message.
|
|
DumpVMNamespace ( String ns ) : bool |
Tells the vmFactory to dump the specified namespace. This is to support clearing the VM list when in
|
|
Error ( Object message ) : void |
Log an error message.
|
|
GetApplicationAttribute ( Object key ) : Object |
Return the velocity runtime configuration object.
|
|
GetBoolean ( String key, bool def ) : bool |
Boolean property accessor method to hide the configuration implementation.
|
|
GetContent ( String name ) : |
Returns a static content resource from the resource manager. Uses the current value if
|
|
GetContent ( String name, String encoding ) : |
Returns a static content resource from the resource manager.
|
|
GetInt ( String key ) : int |
Int property accessor method to hide the configuration implementation.
|
|
GetInt ( String key, int defaultValue ) : int |
Int property accessor method to hide the configuration implementation.
|
|
GetLoaderNameForResource ( String resourceName ) : String |
Determines is a template exists, and returns name of the loader that provides it. This is a slightly less hokey way to support the
|
|
GetProperty ( String key ) : Object |
Allows an external caller to get a property.
|
|
GetString ( String key ) : String |
String property accessor method to hide the configuration implementation
|
|
GetString ( String key, String defaultValue ) : String |
String property accessor method with default to hide the configuration implementation.
|
|
GetTemplate ( String name ) : |
Returns a
|
|
GetTemplate ( String name, String encoding ) : |
Returns a
|
|
GetVelocimacro ( String vmName, String templateName ) : Directive.Directive |
Returns the appropriate VelocimacroProxy object if strVMname is a valid current Velocimacro.
|
|
Info ( Object message ) : void |
Log an info message.
|
|
Init ( ) : void | ||
Init ( |
Initialize the Velocity Runtime with a Properties object.
|
|
Init ( String configurationFile ) : void |
Initialize the Velocity Runtime with the name of ExtendedProperties object.
|
|
IsVelocimacro ( String vmName, String templateName ) : bool |
Checks to see if a VM exists
|
|
Parse ( |
Parse the input and return the root of AST node structure.
|
|
Parse ( |
Parse the input and return the root of the AST node structure.
|
|
RuntimeInstance ( ) : System | ||
SetApplicationAttribute ( Object key, Object o ) : Object | ||
SetProperty ( String key, Object value ) : void |
Allows an external system to set a property in the Velocity Runtime.
|
|
Warn ( Object message ) : void |
Log a warning message.
|
메소드 | 설명 | |
---|---|---|
Log ( LogLevel level, Object message ) : void |
Handle logging.
|
|
initializeDirectiveManager ( ) : void | ||
initializeDirectives ( ) : void |
This methods initializes all the directives that are used by the Velocity Runtime. The directives to be initialized are listed in the RUNTIME_DEFAULT_DIRECTIVES properties file. @throws Exception
|
|
initializeIntrospection ( ) : void |
Gets the classname for the Uberspect introspection package and instantiates an instance.
|
|
initializeLogger ( ) : void |
Initialize the Velocity logging system. * @throws Exception
|
|
initializeParserPool ( ) : void |
Initializes the Velocity parser pool. This still needs to be implemented.
|
|
initializeProperties ( ) : void |
Initialize Velocity properties, if the default properties have not been laid down first then do so. Then proceed to process any overriding properties. Laying down the default properties gives a much greater chance of having a working system.
|
|
initializeResourceManager ( ) : void | ||
setDefaultProperties ( ) : void |
Initializes the Velocity Runtime with properties file. The properties file may be in the file system proper, or the properties file may be in the classpath.
|
|
showStackTrace ( ) : bool |
Added this to check and make sure that the configuration is initialized before trying to get properties from it. This occurs when there are errors during initialization and the default properties have yet to be layed down.
|
public AddProperty ( String key, Object value ) : void | ||
key | String | key |
value | Object | value |
리턴 | void |
public AddVelocimacro ( String name, String macro, String argArray, String sourceTemplate ) : bool | ||
name | String | Name of velocimacro |
macro | String | String form of macro body |
argArray | String | Array of strings, containing the #macro() arguments. the 0th is the name. |
sourceTemplate | String | Name of template |
리턴 | bool |
public ClearProperty ( String key ) : void | ||
key | String | key of property to clear |
리턴 | void |
public GetApplicationAttribute ( Object key ) : Object | ||
key | Object | |
리턴 | Object |
public GetBoolean ( String key, bool def ) : bool | ||
key | String | property key |
def | bool | default value if property not found |
리턴 | bool |
public GetContent ( String name ) : |
||
name | String | Name of content resource to get |
리턴 |
public GetContent ( String name, String encoding ) : |
||
name | String | Name of content resource to get |
encoding | String | Character encoding to use |
리턴 |
public GetInt ( String key, int defaultValue ) : int | ||
key | String | property key |
defaultValue | int | default value |
리턴 | int |
public GetLoaderNameForResource ( String resourceName ) : String | ||
resourceName | String | Name of template or content resource |
리턴 | String |
public GetProperty ( String key ) : Object | ||
key | String | property to return |
리턴 | Object |
public GetString ( String key, String defaultValue ) : String | ||
key | String | key property key |
defaultValue | String | default value to return if key not found in resource manager. |
리턴 | String |
public GetTemplate ( String name ) : |
||
name | String | The file name of the desired template. /// |
리턴 |
public GetTemplate ( String name, String encoding ) : |
||
name | String | The name of the desired template. |
encoding | String | Character encoding of the template |
리턴 |
public GetVelocimacro ( String vmName, String templateName ) : Directive.Directive | ||
vmName | String | Name of velocimacro requested |
templateName | String | Name of template |
리턴 | Directive.Directive |
public Init ( |
||
p | Properties | |
리턴 | void |
public Init ( String configurationFile ) : void | ||
configurationFile | String | Properties |
리턴 | void |
public IsVelocimacro ( String vmName, String templateName ) : bool | ||
vmName | String | Name of velocimacro |
templateName | String | Name of template |
리턴 | bool |
public Parse ( |
||
reader | inputstream retrieved by a resource loader | |
templateName | String | name of the template being parsed |
리턴 | SimpleNode |
public Parse ( |
||
reader | inputstream retrieved by a resource loader | |
templateName | String | name of the template being parsed |
dumpNamespace | bool | flag to dump the Velocimacro namespace for this template |
리턴 | SimpleNode |
public SetApplicationAttribute ( Object key, Object o ) : Object | ||
key | Object | |
o | Object | |
리턴 | Object |
public SetProperty ( String key, Object value ) : void | ||
key | String | property key |
value | Object | property value |
리턴 | void |