org.apache.velocity.tools.generic.app
Class MonostateVelocityEngine
java.lang.Object
org.apache.velocity.app.VelocityEngine
org.apache.velocity.tools.generic.app.MonostateVelocityEngine
- All Implemented Interfaces:
- org.apache.velocity.runtime.RuntimeConstants
public class MonostateVelocityEngine
- extends org.apache.velocity.app.VelocityEngine
- Version:
- $Id: $
- Author:
- Shinobu Kawai
Fields inherited from interface org.apache.velocity.runtime.RuntimeConstants |
COUNTER_INITIAL_VALUE, COUNTER_NAME, DEBUG_PREFIX, DEFAULT_RUNTIME_DIRECTIVES, DEFAULT_RUNTIME_PROPERTIES, ENCODING_DEFAULT, ERROR_PREFIX, ERRORMSG_END, ERRORMSG_START, FILE_RESOURCE_LOADER_CACHE, FILE_RESOURCE_LOADER_PATH, FOREACH_NULL_ALLOWED, INFO_PREFIX, INPUT_ENCODING, INTERPOLATE_STRINGLITERALS, NUMBER_OF_PARSERS, OUTPUT_ENCODING, PARSE_DIRECTIVE_MAXDEPTH, PARSER_POOL_SIZE, RESOURCE_LOADER, RESOURCE_MANAGER_CACHE_CLASS, RESOURCE_MANAGER_CLASS, RESOURCE_MANAGER_DEFAULTCACHE_SIZE, RESOURCE_MANAGER_LOGWHENFOUND, RUNTIME_LOG, RUNTIME_LOG_ERROR_STACKTRACE, RUNTIME_LOG_INFO_STACKTRACE, RUNTIME_LOG_LOGSYSTEM, RUNTIME_LOG_LOGSYSTEM_CLASS, RUNTIME_LOG_REFERENCE_LOG_INVALID, RUNTIME_LOG_WARN_STACKTRACE, SET_RHS_NULL_ALLOWED, UBERSPECT_CLASSNAME, UNKNOWN_PREFIX, VM_CONTEXT_LOCALSCOPE, VM_LIBRARY, VM_LIBRARY_AUTORELOAD, VM_MESSAGES_ON, VM_PERM_ALLOW_INLINE, VM_PERM_ALLOW_INLINE_REPLACE_GLOBAL, VM_PERM_INLINE_LOCAL, WARN_PREFIX |
Method Summary |
void |
addProperty(java.lang.String arg0,
java.lang.Object arg1)
|
void |
clearProperty(java.lang.String arg0)
|
void |
debug(java.lang.Object arg0)
|
void |
error(java.lang.Object arg0)
|
boolean |
evaluate(org.apache.velocity.context.Context arg0,
java.io.Writer arg1,
java.lang.String arg2,
java.io.InputStream arg3)
|
boolean |
evaluate(org.apache.velocity.context.Context arg0,
java.io.Writer arg1,
java.lang.String arg2,
java.io.Reader arg3)
|
boolean |
evaluate(org.apache.velocity.context.Context arg0,
java.io.Writer arg1,
java.lang.String arg2,
java.lang.String arg3)
|
java.lang.Object |
getProperty(java.lang.String arg0)
|
org.apache.velocity.Template |
getTemplate(java.lang.String arg0)
|
org.apache.velocity.Template |
getTemplate(java.lang.String arg0,
java.lang.String arg1)
|
void |
info(java.lang.Object arg0)
|
void |
init()
|
void |
init(java.util.Properties arg0)
|
void |
init(java.lang.String arg0)
|
boolean |
invokeVelocimacro(java.lang.String arg0,
java.lang.String arg1,
java.lang.String[] arg2,
org.apache.velocity.context.Context arg3,
java.io.Writer arg4)
|
boolean |
mergeTemplate(java.lang.String arg0,
org.apache.velocity.context.Context arg1,
java.io.Writer arg2)
|
boolean |
mergeTemplate(java.lang.String arg0,
java.lang.String arg1,
org.apache.velocity.context.Context arg2,
java.io.Writer arg3)
|
void |
setApplicationAttribute(java.lang.Object arg0,
java.lang.Object arg1)
|
void |
setConfiguration(org.apache.velocity.runtime.configuration.Configuration arg0)
|
void |
setExtendedProperties(org.apache.commons.collections.ExtendedProperties arg0)
|
void |
setProperty(java.lang.String arg0,
java.lang.Object arg1)
|
boolean |
templateExists(java.lang.String arg0)
|
void |
warn(java.lang.Object arg0)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonostateVelocityEngine
public MonostateVelocityEngine()
MonostateVelocityEngine
public MonostateVelocityEngine(java.lang.String arg0)
throws java.lang.Exception
- Parameters:
arg0
-
- Throws:
java.lang.Exception
MonostateVelocityEngine
public MonostateVelocityEngine(java.util.Properties arg0)
throws java.lang.Exception
- Parameters:
arg0
-
- Throws:
java.lang.Exception
addProperty
public void addProperty(java.lang.String arg0,
java.lang.Object arg1)
- Overrides:
addProperty
in class org.apache.velocity.app.VelocityEngine
clearProperty
public void clearProperty(java.lang.String arg0)
- Overrides:
clearProperty
in class org.apache.velocity.app.VelocityEngine
debug
public void debug(java.lang.Object arg0)
- Overrides:
debug
in class org.apache.velocity.app.VelocityEngine
error
public void error(java.lang.Object arg0)
- Overrides:
error
in class org.apache.velocity.app.VelocityEngine
evaluate
public boolean evaluate(org.apache.velocity.context.Context arg0,
java.io.Writer arg1,
java.lang.String arg2,
java.io.InputStream arg3)
throws org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.MethodInvocationException,
org.apache.velocity.exception.ResourceNotFoundException,
java.io.IOException
- Overrides:
evaluate
in class org.apache.velocity.app.VelocityEngine
- Throws:
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
org.apache.velocity.exception.ResourceNotFoundException
java.io.IOException
evaluate
public boolean evaluate(org.apache.velocity.context.Context arg0,
java.io.Writer arg1,
java.lang.String arg2,
java.io.Reader arg3)
throws org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.MethodInvocationException,
org.apache.velocity.exception.ResourceNotFoundException,
java.io.IOException
- Overrides:
evaluate
in class org.apache.velocity.app.VelocityEngine
- Throws:
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
org.apache.velocity.exception.ResourceNotFoundException
java.io.IOException
evaluate
public boolean evaluate(org.apache.velocity.context.Context arg0,
java.io.Writer arg1,
java.lang.String arg2,
java.lang.String arg3)
throws org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.MethodInvocationException,
org.apache.velocity.exception.ResourceNotFoundException,
java.io.IOException
- Overrides:
evaluate
in class org.apache.velocity.app.VelocityEngine
- Throws:
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
org.apache.velocity.exception.ResourceNotFoundException
java.io.IOException
getProperty
public java.lang.Object getProperty(java.lang.String arg0)
- Overrides:
getProperty
in class org.apache.velocity.app.VelocityEngine
getTemplate
public org.apache.velocity.Template getTemplate(java.lang.String arg0,
java.lang.String arg1)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
java.lang.Exception
- Overrides:
getTemplate
in class org.apache.velocity.app.VelocityEngine
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
java.lang.Exception
getTemplate
public org.apache.velocity.Template getTemplate(java.lang.String arg0)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
java.lang.Exception
- Overrides:
getTemplate
in class org.apache.velocity.app.VelocityEngine
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
java.lang.Exception
info
public void info(java.lang.Object arg0)
- Overrides:
info
in class org.apache.velocity.app.VelocityEngine
init
public void init()
throws java.lang.Exception
- Overrides:
init
in class org.apache.velocity.app.VelocityEngine
- Throws:
java.lang.Exception
init
public void init(java.util.Properties arg0)
throws java.lang.Exception
- Overrides:
init
in class org.apache.velocity.app.VelocityEngine
- Throws:
java.lang.Exception
init
public void init(java.lang.String arg0)
throws java.lang.Exception
- Overrides:
init
in class org.apache.velocity.app.VelocityEngine
- Throws:
java.lang.Exception
invokeVelocimacro
public boolean invokeVelocimacro(java.lang.String arg0,
java.lang.String arg1,
java.lang.String[] arg2,
org.apache.velocity.context.Context arg3,
java.io.Writer arg4)
throws java.lang.Exception
- Overrides:
invokeVelocimacro
in class org.apache.velocity.app.VelocityEngine
- Throws:
java.lang.Exception
mergeTemplate
public boolean mergeTemplate(java.lang.String arg0,
org.apache.velocity.context.Context arg1,
java.io.Writer arg2)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.MethodInvocationException,
java.lang.Exception
- Overrides:
mergeTemplate
in class org.apache.velocity.app.VelocityEngine
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
java.lang.Exception
mergeTemplate
public boolean mergeTemplate(java.lang.String arg0,
java.lang.String arg1,
org.apache.velocity.context.Context arg2,
java.io.Writer arg3)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.MethodInvocationException,
java.lang.Exception
- Overrides:
mergeTemplate
in class org.apache.velocity.app.VelocityEngine
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
java.lang.Exception
setApplicationAttribute
public void setApplicationAttribute(java.lang.Object arg0,
java.lang.Object arg1)
- Overrides:
setApplicationAttribute
in class org.apache.velocity.app.VelocityEngine
setConfiguration
public void setConfiguration(org.apache.velocity.runtime.configuration.Configuration arg0)
- Overrides:
setConfiguration
in class org.apache.velocity.app.VelocityEngine
setExtendedProperties
public void setExtendedProperties(org.apache.commons.collections.ExtendedProperties arg0)
- Overrides:
setExtendedProperties
in class org.apache.velocity.app.VelocityEngine
setProperty
public void setProperty(java.lang.String arg0,
java.lang.Object arg1)
- Overrides:
setProperty
in class org.apache.velocity.app.VelocityEngine
templateExists
public boolean templateExists(java.lang.String arg0)
- Overrides:
templateExists
in class org.apache.velocity.app.VelocityEngine
warn
public void warn(java.lang.Object arg0)
- Overrides:
warn
in class org.apache.velocity.app.VelocityEngine
Copyright © 2002-2005 org.ieee.shinobu. All Rights Reserved.