Interface CtxDto


@JStache(path="model") @Immutable public interface CtxDto
Context passed to Mustache when compiling a model.
  • Method Details

    • builder

      static dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxDto.Builder builder()
      Returns a builder for this type.
      Returns:
      a builder for this type
    • appName

      String appName()
      Returns the application name.
      Returns:
      the application name
    • version

      String version()
      Returns the application version.
      Returns:
      the application version
    • appDescription

      Optional<String> appDescription()
      Returns the optional application description.
      Returns:
      the optional application description
    • infoEmail

      Optional<String> infoEmail()
      Returns the optional application contact email.
      Returns:
      the optional application contact email
    • getImports

      SortedSet<String> getImports()
      Returns the imports needed in the template.
      Returns:
      the imports needed in the template
    • hasImports

      default boolean hasImports()
      Returns true if there are imports to render, otherwise false.
      Returns:
      true if there are imports to render, otherwise false
    • description

      Optional<String> description()
      Returns the optional description of the class.
      Returns:
      the optional description of the class
    • packageName

      String packageName()
      Returns the package name for the class.
      Returns:
      the package name for the class
    • classname

      String classname()
      Returns the classname for the class.
      Returns:
      the classname for the class
    • classVarName

      String classVarName()
      Returns the class name used in equals method.
      Returns:
      the class name used in equals method
    • vars

      List<CtxProperty> vars()
      Returns the properties of the class.
      Returns:
      the properties of the class
    • hasVars

      default boolean hasVars()
      Returns true if there are properties to render, otherwise false.
      Returns:
      true if there are properties to render, otherwise false
    • isEnum

      default boolean isEnum()
      Returns true if this is an enumeration, otherwise false.
      Returns:
      true if this is an enumeration, otherwise false
    • allowableValues

      @Nullable CtxEnum allowableValues()
      Returns the enumeration constants/values, or null.
      Returns:
      the enumeration constants/values, or null
    • dataType

      @Nullable String dataType()
      Returns the data type of an enumeration, or null.
      Returns:
      the data type of an enumeration, or null
    • datatypeWithEnum

      @Nullable String datatypeWithEnum()
      Returns unknown, kept from upstream template.
      Returns:
      unknown, kept from upstream template
    • isNullable

      boolean isNullable()
      Returns true if the is an enumeration that can be deserialized as null.
      Returns:
      true if the is an enumeration that can be deserialized as null
    • parent

      Optional<String> parent()
      Returns the optional name of a parent class.
      Returns:
      the optional name of a parent class
    • vendorExtensions

      @Nullable Map<String,String> vendorExtensions()
      Returns optional vendor extensions.
      Returns:
      optional vendor extensions
    • jackson

      boolean jackson()
      Returns true if a jackson serializer is used, otherwise false.
      Returns:
      true if a jackson serializer is used, otherwise false
    • generatedAnnotationClass

      String generatedAnnotationClass()
      Returns the name of the Generated annotation class.
      Returns:
      the name of the Generated annotation class
    • generatorClass

      String generatorClass()
      Returns the name of the generator class.
      Returns:
      the name of the generator class
    • generatedDate

      Optional<String> generatedDate()
      Returns the optional date of the generation.
      Returns:
      the optional date of the generation
    • discriminator

      Optional<CtxDtoDiscriminator> discriminator()
      Returns an optional discriminator for sub-class selection.
      Returns:
      an optional discriminator for sub-class selection
    • madaDto

      CtxDtoExt madaDto()
      Returns additional custom template data for the dto.
      Returns:
      additional custom template data for the dto