Class CaseFormatLambda
- java.lang.Object
-
- org.openapitools.codegen.templating.mustache.CaseFormatLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
public class CaseFormatLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
Converts text from CaseFormat to another CaseFormat Register:additionalProperties.put("convert", new CaseFormatLambda(LOWER_CAMEL, UPPER_UNDERSCORE));
Use:{{#convert}}{{name}}{{/convert}}
-
-
Constructor Summary
Constructors Constructor Description CaseFormatLambda(com.google.common.base.CaseFormat target, com.google.common.base.CaseFormat targetFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer)
CaseFormatLambda
generator(CodegenConfig generator)
-
-
-
Method Detail
-
generator
public CaseFormatLambda generator(CodegenConfig generator)
-
execute
public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException
- Specified by:
execute
in interfacecom.samskivert.mustache.Mustache.Lambda
- Throws:
IOException
-
-