io.dinject.javalin.generator.TypeHandler Maven / Gradle / Ivy
package io.dinject.javalin.generator;
/**
* Handles type conversion for path and query parameters.
*/
interface TypeHandler {
/**
* Return the non-nullable type conversion method.
*/
String asMethod();
/**
* Return the nullable type conversion method.
*/
String toMethod();
/**
* The type for adding to imports.
*/
String getImportType();
/**
* The short name.
*/
String shortName();
/**
* Return true if this is a primitive type.
*/
boolean isPrimitive();
}