org.codehaus.enunciate.template.freemarker
Class ComponentTypeForMethod

java.lang.Object
  extended by org.codehaus.enunciate.template.freemarker.ClientPackageForMethod
      extended by org.codehaus.enunciate.template.freemarker.ClientClassnameForMethod
          extended by org.codehaus.enunciate.template.freemarker.ComponentTypeForMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class ComponentTypeForMethod
extends ClientClassnameForMethod

Gets the client-side component type for the specified classname.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ComponentTypeForMethod(Map<String,String> conversions)
           
 
Method Summary
 String convert(Accessor accessor)
          Converts the type of an accessor.
 String convert(ImplicitChildElement childElement)
          Converts the specified implicit child element.
 String convert(com.sun.mirror.type.TypeMirror typeMirror)
          Returns the client-side package value for the given type.
 
Methods inherited from class org.codehaus.enunciate.template.freemarker.ClientClassnameForMethod
convert, convert, convertUnwrappedObject, isJdk15, setJdk15
 
Methods inherited from class org.codehaus.enunciate.template.freemarker.ClientPackageForMethod
convert, exec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentTypeForMethod

public ComponentTypeForMethod(Map<String,String> conversions)
Method Detail

convert

public String convert(ImplicitChildElement childElement)
               throws freemarker.template.TemplateModelException
Description copied from class: ClientClassnameForMethod
Converts the specified implicit child element.

Overrides:
convert in class ClientClassnameForMethod
Parameters:
childElement - The implicit child element.
Returns:
The conversion.
Throws:
freemarker.template.TemplateModelException

convert

public String convert(Accessor accessor)
               throws freemarker.template.TemplateModelException
Description copied from class: ClientClassnameForMethod
Converts the type of an accessor.

Overrides:
convert in class ClientClassnameForMethod
Parameters:
accessor - The accessor.
Returns:
The accessor.
Throws:
freemarker.template.TemplateModelException

convert

public String convert(com.sun.mirror.type.TypeMirror typeMirror)
               throws freemarker.template.TemplateModelException
Description copied from class: ClientPackageForMethod
Returns the client-side package value for the given type.

Overrides:
convert in class ClientClassnameForMethod
Parameters:
typeMirror - The type.
Returns:
The client-side package value for the type.
Throws:
freemarker.template.TemplateModelException - If the type mirror cannot be converted for some reason.