org.codehaus.enunciate.modules.c
Class NameForTypeDefinitionMethod

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

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

Gets a C-style, unambiguous name for a given type definition.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
NameForTypeDefinitionMethod(java.lang.String pattern, java.lang.String projectLabel, java.util.Map<java.lang.String,java.lang.String> namespaces2ids)
           
 
Method Summary
 java.lang.Object calculateName(TypeDefinition typeDefinition)
           
 java.lang.Object exec(java.util.List list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameForTypeDefinitionMethod

public NameForTypeDefinitionMethod(java.lang.String pattern,
                                   java.lang.String projectLabel,
                                   java.util.Map<java.lang.String,java.lang.String> namespaces2ids)
Method Detail

exec

public java.lang.Object exec(java.util.List list)
                      throws freemarker.template.TemplateModelException
Specified by:
exec in interface freemarker.template.TemplateMethodModel
Specified by:
exec in interface freemarker.template.TemplateMethodModelEx
Throws:
freemarker.template.TemplateModelException

calculateName

public java.lang.Object calculateName(TypeDefinition typeDefinition)