Package dk.mada.jaxrs.openapi
Class ParserOpts
java.lang.Object
dk.mada.jaxrs.openapi.ParserOpts
parser-* configuration options.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Option name for assuming Object on missing type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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 responses.boolean
Returns true if resolver should be abort on unknown types.boolean
Returns true if missing type should be fixed.boolean
Returns true if null-type with format date/date-time should be fixed.boolean
Returns true if the JSE type BigDecimal should be used.boolean
Returns true if the InputStream type is to be treated as java.io.InputStream, otherwise false.boolean
Returns true if the JSE type LocalDate should be used.boolean
Returns true if the JSE type LocalDateTime should be used.boolean
Returns true if the JSE type LocalTime should be used.boolean
Returns true if the JSE type OffsetDateTime should be used.boolean
Returns true if the SchemaUUID type is to be treated as java.util.UUID, otherwise false.boolean
Returns true if the JSE type ZonedDateTime should be used instead of OffsetDateTime.boolean
Returns true if the parser should map simple DTOs to Object.boolean
Returns true if List<byte[]> should be unwrapped to byte[].
-
Field Details
-
PARSER_FIXUP_MISSING_TYPE
Option name for assuming Object on missing type.- See Also:
-
-
Constructor Details
-
ParserOpts
Constructs a new instance.- Parameters:
or
- option reader
-
-
Method Details
-
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
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
-