Package dk.mada.jaxrs.model.types
Interface TypeArray
- All Superinterfaces:
Type,TypeContainer
- All Known Implementing Classes:
ImmutableTypeArray
Type representing an array schema.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the java implementation used to instantiate this container.default StringReturns the java implementation declaration with generic types.static TypeArrayCreates a type for an array (list).default TypeNametypeName()Returns the type name.Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, wrapperTypeNameMethods inherited from interface dk.mada.jaxrs.model.types.TypeContainer
innerType, isContainer, neededImports, typeNames
-
Method Details
-
of
Creates a type for an array (list).- Parameters:
typeNames- the type names instanceinnerType- the type contained in the array- Returns:
- an array type
-
containerImplementation
Description copied from interface:TypeContainerReturns the java implementation used to instantiate this container.- Specified by:
containerImplementationin interfaceTypeContainer- Returns:
- the java implementation used to instantiate this container
-
containerImplementationDeclaration
Description copied from interface:TypeContainerReturns the java implementation declaration with generic types.- Specified by:
containerImplementationDeclarationin interfaceTypeContainer- Returns:
- the java implementation declaration with generic types
-
typeName
Returns the type name. Note that this needs to be resolved late (when accessed) and not when created. This ensures that conflict-renaming of the inner-type is reflected in the final type name.
-