Class XmlFunctionIdentifierMethod

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

    public class XmlFunctionIdentifierMethod
    extends Object
    implements freemarker.template.TemplateMethodModelEx
    Method used to determine a function identifier for a given XML name/namespace.
    Author:
    Ryan Heaton
    • Constructor Detail

      • XmlFunctionIdentifierMethod

        public XmlFunctionIdentifierMethod​(Map<String,​String> ns2prefix)
    • 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