public abstract class BaseTemplateDirective extends java.lang.Object implements freemarker.template.TemplateDirectiveModel, Directive, HttpDirective
限定符和类型 | 字段和说明 |
---|---|
protected org.apache.commons.logging.Log |
log |
private java.lang.String |
name |
private java.lang.String |
namespace |
private java.lang.String |
shortName |
构造器和说明 |
---|
BaseTemplateDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(freemarker.core.Environment environment,
java.util.Map parameters,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody templateDirectiveBody) |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
java.lang.String |
getShortName() |
boolean |
httpEnabled() |
void |
setName(java.lang.String name) |
void |
setNamespace(java.lang.String namespace) |
void |
setShortName(java.lang.String shortName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
protected final org.apache.commons.logging.Log log
private java.lang.String name
private java.lang.String shortName
private java.lang.String namespace
public void execute(freemarker.core.Environment environment, java.util.Map parameters, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody templateDirectiveBody) throws freemarker.template.TemplateException, java.io.IOException
execute
在接口中 freemarker.template.TemplateDirectiveModel
freemarker.template.TemplateException
java.io.IOException
public boolean httpEnabled()
public void setName(java.lang.String name)
name
- public java.lang.String getNamespace()
getNamespace
在接口中 Directive
public void setNamespace(java.lang.String namespace)
namespace
- the namespace to setpublic java.lang.String getShortName()
getShortName
在接口中 Directive
public void setShortName(java.lang.String shortName)
shortName
- the shortName to set