public class HasAspectMethod extends BaseTemplateProcessorExtension implements freemarker.template.TemplateMethodModelEx
Method returns whether a TemplateNode has a particular aspect applied to it. The aspect name can be either the fully qualified QName or the short prefixed name string.
Usage: hasAspect(TemplateNode node, String aspect) - 1 on true, 0 on false
Constructor and Description |
---|
HasAspectMethod() |
Modifier and Type | Method and Description |
---|---|
Object |
exec(List args) |
getTemplateImageResolver, setTemplateImageResolver
getExtensionName, register, setExtensionName, setProcessor
public Object exec(List args) throws freemarker.template.TemplateModelException
exec
in interface freemarker.template.TemplateMethodModel
exec
in interface freemarker.template.TemplateMethodModelEx
freemarker.template.TemplateModelException
TemplateMethodModel.exec(java.util.List)
Copyright © 2005–2017 Alfresco Software. All rights reserved.