Class ParserOpts

java.lang.Object
dk.mada.jaxrs.openapi.ParserOpts

public final class ParserOpts extends Object
parser-* configuration options.
  • Field Details

    • PARSER_FIXUP_MISSING_TYPE

      public static final String PARSER_FIXUP_MISSING_TYPE
      Option name for assuming Object on missing type.
      See Also:
  • Constructor Details

    • ParserOpts

      public ParserOpts(OptionReader or)
      Constructs a new instance.
      Parameters:
      or - option reader
  • Method Details

    • getPreferredResponseMediaTypes

      public List<String> getPreferredResponseMediaTypes()
      Returns list of preferred media types selection if there are multiple types for responses.
      Returns:
      list of preferred media types selection if there are multiple types for responses
    • getPreferredRequestMediaTypes

      public List<String> getPreferredRequestMediaTypes()
      Returns list of preferred media types selection if there are multiple types for requests.
      Returns:
      list of preferred media types selection if there are multiple types for requests
    • isUnwrapByteArrayList

      public boolean isUnwrapByteArrayList()
      Returns true if List<byte[]> should be unwrapped to byte[].
      Returns:
      true if List<byte[]> should be unwrapped to byte[]
    • isMapSimpleDtosToObject

      public boolean isMapSimpleDtosToObject()
      Returns true if the parser should map simple DTOs to Object.
      Returns:
      true if the parser should map simple DTOs to Object
    • isJseLocalTime

      public boolean isJseLocalTime()
      Returns true if the JSE type LocalTime should be used.
      Returns:
      true if the JSE type LocalTime should be used
    • isJseLocalDate

      public boolean isJseLocalDate()
      Returns true if the JSE type LocalDate should be used.
      Returns:
      true if the JSE type LocalDate should be used
    • isJseLocalDateTime

      public boolean isJseLocalDateTime()
      Returns true if the JSE type LocalDateTime should be used.
      Returns:
      true if the JSE type LocalDateTime should be used
    • isJseOffsetDateTime

      public boolean isJseOffsetDateTime()
      Returns true if the JSE type OffsetDateTime should be used.
      Returns:
      true if the JSE type OffsetDateTime should be used
    • isJseZonedDateTime

      public boolean isJseZonedDateTime()
      Returns true if the JSE type ZonedDateTime should be used instead of OffsetDateTime.
      Returns:
      true if the JSE type ZonedDateTime should be used instead of OffsetDateTime
    • isJseBigDecimal

      public boolean isJseBigDecimal()
      Returns true if the JSE type BigDecimal should be used.
      Returns:
      true if the JSE type BigDecimal should be used
    • isJseUUID

      public boolean isJseUUID()
      Returns true if the SchemaUUID type is to be treated as java.util.UUID, otherwise false.
      Returns:
      true if the SchemaUUID type is to be treated as java.util.UUID, otherwise false
    • isJseInputStream

      public boolean isJseInputStream()
      Returns true if the InputStream type is to be treated as java.io.InputStream, otherwise false.
      Returns:
      true if the InputStream type is to be treated as java.io.InputStream, otherwise false
    • isFixupNullTypeDates

      public boolean isFixupNullTypeDates()
      Returns true if null-type with format date/date-time should be fixed.
      Returns:
      true if null-type with format date/date-time should be fixed
    • isFixupMissingType

      public boolean isFixupMissingType()
      Returns true if missing type should be fixed.
      Returns:
      true if missing type should be fixed
    • isAbortOnResolverFailure

      public boolean isAbortOnResolverFailure()
      Returns true if resolver should be abort on unknown types.
      Returns:
      true if resolver should be abort on unknown types