|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.enunciate.modules.php.PrefixMethod
public class PrefixMethod
A method used in templates to output the prefix for a given namespace.
| Field Summary |
|---|
| Fields inherited from interface freemarker.template.TemplateModel |
|---|
NOTHING |
| Constructor Summary | |
|---|---|
PrefixMethod()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrefixMethod()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||