Class PrefixMethod

  • All Implemented Interfaces:
    freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

    public class PrefixMethod
    extends Object
    implements freemarker.template.TemplateMethodModelEx
    A method used in templates to output the prefix for a given namespace.
    Author:
    Ryan Heaton
    • Constructor Detail

    • Method Detail

      • exec

        public Object exec​(List list)
                    throws freemarker.template.TemplateModelException
        Returns the qname of the element that has the first parameter as the namespace, the second as the element.
        Specified by:
        exec in interface freemarker.template.TemplateMethodModel
        Specified by:
        exec in interface freemarker.template.TemplateMethodModelEx
        Parameters:
        list - The arguments.
        Returns:
        The qname.
        Throws:
        freemarker.template.TemplateModelException