io.github.itroadlabs.apicross.springmvc.templates.dataModelReadInterface.hbs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicross-springmvc Show documentation
Show all versions of apicross-springmvc Show documentation
Spring Web MVC code generator
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}}
}