Package dk.mada.jaxrs.openapi
Interface ParserTypeCombined
- All Superinterfaces:
Type
Type representing a synthetic combined class during parsing.
This comes from properties that may have oneof-references to multiple DTOs but no discriminator. Solve by
(inelegantly) combining all properties from referenced DTOs into a synthetic DTO.
May be able to merge with ParserTypeComposite.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the parser references to the DTOs combined by this type.Returns a list of the externally referenced type names.Returns a list of the referenced DTOs in this combined DTO.static ParserTypeCombined
of
(TypeName typeName, List<ParserTypeRef> combinesTypes) Creates a type for a combined class.Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isContainer, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, neededImports, typeName, wrapperTypeName
-
Method Details
-
of
Creates a type for a combined class.- Parameters:
typeName
- the class type namecombinesTypes
- the parser references combined in this type- Returns:
- a combined type
-
combinesTypes
List<ParserTypeRef> combinesTypes()Returns the parser references to the DTOs combined by this type.- Returns:
- the parser references to the DTOs combined by this type
-
internalDtos
Returns a list of the referenced DTOs in this combined DTO. This can be called during parsing.- Returns:
- a list of the referenced DTOs in this combined DTO
-
externalDtoReferences
Returns a list of the externally referenced type names.- Returns:
- a list of the externally referenced type names
-