Interface Dto
- All Superinterfaces:
Type
- All Known Implementing Classes:
ImmutableDto
Model of a DTO object.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableDto.BuilderReturns a builder for this type.static ImmutableDto.BuilderbuilderFrom(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 types that this DTO extends.Returns the list of interfaces implemented by this DTO.default booleanisDto()Returns true if this type represents a custom type DTO.default booleanisEnum()Returns true if this is an enumeration, otherwise false.booleanReturns 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 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
-
mpSchemaName
-
reference
-
description
-
isDto
-
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
-
enumValues
-
isEnum
-
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
-
extendsTypes
-
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
-