Interface CtxPropertyExt


@Immutable public interface CtxPropertyExt
Custom extensions. In separate (mada.) context so they are easier to spot in the templates.
  • Method Details

    • builder

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

      @Nullable String innerDatatypeWithEnum()
      Returns the java inner type, or null.
      Returns:
      the java inner type, or null
    • enumClassName

      @Nullable String enumClassName()
      Returns the (embedded) enumeration class name. Used in enumerations that are rendered next to the (only) property where they are referenced. See enumClass.mustache. This is handled separately from the standard dataType/datatypeWithEnum values because they are both used separately by both containers and enumerations. Which prevents handling of enumerations in containers (or rather, I broke the templates somehow to match behavior from openapi-generator - and this is easier to read for me).
      Returns:
      the enumeration class name
    • enumTypeName

      @Nullable String enumTypeName()
      Returns the enumeration type name.
      Returns:
      the enumeration type name
    • enumSchemaOptions

      Optional<String> enumSchemaOptions()
      Returns the optional schema options for an inline enumeration type.
      Returns:
      the optional schema options for an inline enumeration type
    • schemaOptions

      Optional<String> schemaOptions()
      Returns the optional schema options (for use in @Schema).
      Returns:
      the optional schema options (for use in @Schema)
    • isUseBigDecimalForDouble

      boolean isUseBigDecimalForDouble()
      Returns true to use BigDecimal, false to use Double.
      Returns:
      true to use BigDecimal, false to use Double
    • isUseEmptyCollections

      boolean isUseEmptyCollections()
      Returns true to initialize collections, false to leave as null.
      Returns:
      true to initialize collections, false to leave as null
    • isByteArray

      boolean isByteArray()
      Returns true if this property is a byte array.
      Returns:
      true if this property is a byte array
    • isEqualsPrimitive

      boolean isEqualsPrimitive()
      Returns true if this property is primitive and can use == for equals.
      Returns:
      true if this property is primitive and can use == for equals
    • getter

      String getter()
      Returns the getter name.
      Returns:
      the getter name
    • setter

      String setter()
      Returns the setter name.
      Returns:
      the setter name
    • jsonb

      boolean jsonb()
      Returns true if rendering for jsonb, false otherwise.
      Returns:
      true if rendering for jsonb, false otherwise
    • descriptionString

      @Nullable String descriptionString()
      Returns the summary as a java string, or null.
      Returns:
      the summary as a java string, or null
    • renderJavadocMacroSpacer

      boolean renderJavadocMacroSpacer()
      Returns true if a spacer is needed before javadoc macros.
      Returns:
      true if a spacer is needed before javadoc macros
    • multipartType

      @Nullable String multipartType()
      Returns the multipart type associated with this property, or null.
      Returns:
      the multipart type associated with this property, or null
    • jsonPropertyConstant

      @Nullable String jsonPropertyConstant()
      Returns a json property constant value, or null.
      Returns:
      a json property constant value, or null