Package dk.mada.jaxrs.model.types
Interface TypeInterface
- All Superinterfaces:
Type
Type representing an interface (schema with anyOf).
-
Method Summary
Modifier and TypeMethodDescriptionReturns the type names implementing this interface.Returns the set of imports needed to use this type in a DTO.static TypeInterface
Creates a type for an interface.Returns the name of the package the interface is generated in.Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isContainer, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, typeName, wrapperTypeName
-
Method Details
-
of
Creates a type for an interface. I expect all the type names implementing the interface to be resolved as DTOs.- Parameters:
packageName
- the package name of DTOstypeName
- the interface type nameimplementations
- the type names implementing the interface- Returns:
- an interface type
-
packageName
String packageName()Returns the name of the package the interface is generated in.- Returns:
- the name of the package the interface is generated in
-
implementations
Returns the type names implementing this interface.- Returns:
- the type names implementing this interface
-
neededImports
Description copied from interface:Type
Returns the set of imports needed to use this type in a DTO.- Specified by:
neededImports
in interfaceType
- Returns:
- the set of imports needed to use this type in a DTO
-