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

io.github.itroadlabs.apicross.springmvc.templates.dataModelReadInterface.hbs Maven / Gradle / Ivy

The newest version!
package {{package}};

import com.fasterxml.jackson.annotation.*;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;

import java.util.*;
import javax.annotation.*;

@jakarta.annotation.Generated(value = "{{generatorOpts.generatorClassName}}", date = "{{generatorOpts.generationDate}}")
public interface IRead{{originalTypeName}} {{#if inheritanceParentOriginalTypeName}} extends IRead{{{inheritanceParentOriginalTypeName}}}{{/if}} {
{{#each properties}}
    {{#if (and optional generatorOpts.useJsonNullable)}}
        {{> documentation }}
        {{#if nullable}}@Nullable{{/if}}
        {{#if deprecated}}@Deprecated{{/if}}
        {{#with type}}{{> typeReadInterface}}{{/with}} get{{capitalizeFirst resolvedName}}() throws NoSuchElementException;

        {{#if type.primitive}}
        {{> documentation }}
        {{#if nullable}}@Nullable{{/if}}
        {{#if deprecated}}@Deprecated{{/if}}
        {{#with type}}{{> type}}{{/with}} get{{capitalizeFirst resolvedName}}OrElse({{#with type}}{{> type}}{{/with}} defaultValue);
        {{/if}}

        {{#if deprecated}}@Deprecated{{/if}}
        boolean is{{capitalizeFirst resolvedName}}Present();
    {{else}}
        {{> documentation }}
        {{#if deprecated}}@Deprecated{{/if}}
        {{#if nullable}}@Nullable{{/if}}
        {{#with type}}{{> typeReadInterface}}{{/with}} get{{capitalizeFirst resolvedName}}();
    {{/if}}
{{/each}}
{{#with additionalPropertiesDataModel}}
    java.util.Map< String, ? extends {{> typeReadInterface}} > getAdditionalProperties();
{{/with}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy