public class PrefixMethod extends Object implements freemarker.template.TemplateMethodModel
| Constructor and Description |
|---|
PrefixMethod() |
| Modifier and Type | Method and Description |
|---|---|
Object |
exec(List list)
Returns the qname of the element that has the first parameter as the namespace, the second as the element.
|
protected static EnunciateFreemarkerModel |
getModel()
Get the current root model.
|
protected static Map<String,String> |
getNamespacesToPrefixes()
The namespace to prefix map.
|
protected String |
lookupPrefix(String namespace)
Convenience method to lookup a namespace prefix given a namespace.
|
public Object exec(List list) throws freemarker.template.TemplateModelException
exec in interface freemarker.template.TemplateMethodModellist - The arguments.freemarker.template.TemplateModelExceptionprotected String lookupPrefix(String namespace)
namespace - The namespace for which to lookup the prefix.protected static Map<String,String> getNamespacesToPrefixes()
protected static EnunciateFreemarkerModel getModel()
Copyright © 2015. All rights reserved.