Package dk.mada.jaxrs.model
Interface Dto
- All Superinterfaces:
Type
Model of a DTO object.
-
Method Summary
Modifier and TypeMethodDescriptionstatic dk.mada.jaxrs.model.ImmutableDto.Builder
Returns a builder for this type.static dk.mada.jaxrs.model.ImmutableDto.Builder
builderFrom
(Dto other) Returns a builder for this type.Returns the optional description of the DTO.Returns the optional enumeration values on the DTO.Returns the parents that this DTO extends.Returns the list of interfaces implemented by this DTO.default boolean
isDto()
Returns true if this type represents a custom type DTO.default boolean
isEnum()
Returns true if this is an enumeration, otherwise false.boolean
Returns true if this instance is used as a multipart form body.Returns the MP Schema name.name()
Returns the DTO name.Returns the name the DTO was identified by in the schema.Returns the properties on the DTO.Returns the type of the DTO object.Returns an optional sub-type mapping.Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isContainer, isDate, isDateTime, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, neededImports, typeName, wrapperTypeName
-
Method Details
-
builder
Returns a builder for this type.- Parameters:
name
- the name of the DTOtypeName
- the type name of the DTO- Returns:
- a builder for this type
-
builderFrom
Returns a builder for this type.- Parameters:
other
- the existing DTO to create a builder from- Returns:
- a builder for this type
-
name
String name()Returns the DTO name.- Returns:
- the DTO name
-
mpSchemaName
String mpSchemaName()Returns the MP Schema name.- Returns:
- the MP Schema name
-
reference
Reference reference()Returns the type of the DTO object.- Returns:
- the type of the DTO object
-
description
Returns the optional description of the DTO.- Returns:
- the optional description of the DTO
-
isDto
default boolean isDto()Description copied from interface:Type
Returns true if this type represents a custom type DTO. -
openapiId
TypeName openapiId()Returns the name the DTO was identified by in the schema.- Returns:
- the name the DTO was identified by in the schema
-
properties
Returns the properties on the DTO.- Returns:
- the properties on the DTO
-
enumValues
Returns the optional enumeration values on the DTO.- Returns:
- the optional enumeration values on the DTO
-
isEnum
default boolean isEnum()Returns true if this is an enumeration, otherwise false. -
implementsInterfaces
List<TypeInterface> implementsInterfaces()Returns the list of interfaces implemented by this DTO.- Returns:
- the list of interfaces implemented by this DTO
-
subtypeSelector
Optional<SubtypeSelector> subtypeSelector()Returns an optional sub-type mapping.- Returns:
- an optional sub-type mapping
-
extendsParents
Returns the parents that this DTO extends.- Returns:
- the parents that this DTO extends
-
isMultipartForm
boolean isMultipartForm()Returns true if this instance is used as a multipart form body.- Returns:
- true if this instance is used as a multipart form body
-