All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.javaClassGraphqlEnum.ftl Maven / Gradle / Ivy

The newest version!
<#if package?has_content>
package ${package};


<#if javaDoc?has_content>
/**
<#list javaDoc as javaDocLine>
 * ${javaDocLine}

 */

<#if generatedInfo.getGeneratedType()?has_content>
@${generatedInfo.getGeneratedType()}(
    value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
    date = "${generatedInfo.getDateTime()}"
)

<#list annotations as annotation>
@${annotation}

public enum ${className}<#if implements?has_content> implements <#list implements as interface>${interface}<#if interface_has_next>,  {

<#if fields?has_content>
<#list fields as field>
<#if field.javaDoc?has_content>
    /**
<#list field.javaDoc as javaDocLine>
     * ${javaDocLine}

     */

<#if field.deprecated>
    @Deprecated

    ${field.javaName}("${field.graphqlName}")<#if field_has_next>,<#else>;



    private final String graphqlName;

    private ${className}(String graphqlName) {
        this.graphqlName = graphqlName;
    }

    @Override
    public String toString() {
        return this.graphqlName;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy