Class HasAspectMethod

All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel, org.alfresco.processor.ProcessorExtension, TemplateProcessorExtension

public class HasAspectMethod extends BaseTemplateProcessorExtension implements freemarker.template.TemplateMethodModelEx
Author:
Kevin Roast Custom FreeMarker Template language method.

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 Details

    • HasAspectMethod

      public HasAspectMethod()
  • Method Details

    • exec

      public Object exec(List args) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException
      See Also:
      • TemplateMethodModel.exec(java.util.List)