org.codehaus.enunciate.template.freemarker
Class ComponentTypeForMethod
java.lang.Object
org.codehaus.enunciate.template.freemarker.ClientPackageForMethod
org.codehaus.enunciate.template.freemarker.ClientClassnameForMethod
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
| Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentTypeForMethod
public ComponentTypeForMethod(Map<String,String> conversions)
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.