org.codehaus.enunciate.modules.c
Class FindRootElementMethod

java.lang.Object
  extended by org.codehaus.enunciate.modules.c.FindRootElementMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class FindRootElementMethod
extends java.lang.Object
implements freemarker.template.TemplateMethodModelEx

Gets the RootElement for the supplied TypeDefinition

Author:
Ryan Heaton

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
FindRootElementMethod()
           
 
Method Summary
 java.lang.Object exec(java.util.List list)
          Gets the client-side package for the type, type declaration, package, or their string values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindRootElementMethod

public FindRootElementMethod()
Method Detail

exec

public java.lang.Object exec(java.util.List list)
                      throws freemarker.template.TemplateModelException
Gets the client-side package for the type, type declaration, package, or their string values.

Specified by:
exec in interface freemarker.template.TemplateMethodModel
Specified by:
exec in interface freemarker.template.TemplateMethodModelEx
Parameters:
list - The arguments.
Returns:
The string value of the client-side package.
Throws:
freemarker.template.TemplateModelException