Class PrefixMethod
- java.lang.Object
-
- com.webcohesion.enunciate.modules.c_client.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 Summary
Constructors Constructor Description PrefixMethod(Map<String,String> ns2prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexec(List list)Returns the qname of the element that has the first parameter as the namespace, the second as the element.
-
-
-
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:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Parameters:
list- The arguments.- Returns:
- The qname.
- Throws:
freemarker.template.TemplateModelException
-
-