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, setTemplateImageResolvergetExtensionName, register, setExtensionName, setProcessorpublic Object exec(List args) throws freemarker.template.TemplateModelException
exec in interface freemarker.template.TemplateMethodModelexec in interface freemarker.template.TemplateMethodModelExfreemarker.template.TemplateModelExceptionTemplateMethodModel.exec(java.util.List)Copyright © 2005–2018 Alfresco Software. All rights reserved.