Package dk.mada.jaxrs.openapi
Interface ParserTypeComposite
- All Superinterfaces:
Type
Type representing a composite class (schema with allOf) during parsing.
The composite may include both internal properties (basically captured as an anonymous placeholder DTO that will not
be part of the final model) and references to types that have not been resolved yet. So a TypeComposite DTO needs to
be constructed in two steps;
(1) during parsing, where the internal properties can be copied from the placeholder DTO, and (2) during resolving,
where the referenced DTOs are now known, and can be used for copying their properties (or extension).
-
Method Summary
Modifier and TypeMethodDescriptionReturns the parser references to the composite parts of this type.Returns a list of the externally referenced type names.Returns a list of the internal DTOs in this composite.static ParserTypeComposite
of
(TypeName typeName, List<ParserTypeRef> containsTypes) Creates a type for a composite 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 composite class.- Parameters:
typeName
- the class type namecontainsTypes
- the parser reference aggregated in this type- Returns:
- a composite type
-
containsTypes
List<ParserTypeRef> containsTypes()Returns the parser references to the composite parts of this type.- Returns:
- the parser references to the composite parts of this type
-
internalDtos
Returns a list of the internal DTOs in this composite. This can be called during parsing.- Returns:
- a list of the internal DTOs in this composite
-
externalDtoReferences
Returns a list of the externally referenced type names.- Returns:
- a list of the externally referenced type names
-