Package dk.mada.jaxrs.openapi
Interface ParserTypeRef
A reference to types used during parsing.
This is necessary, because the model may not yet have been populated with DTOs that are defined further down in the
schema.
When the entire scheme is parsed, these will be dereferenced to proper model TypeRefs.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParserTypeRef
of
(TypeName refTypeName, Validation validation) Creates a new reference to a type name (a DTO).static ParserTypeRef
of
(Type refType, TypeName refTypeName, Validation validation) Creates a new reference to a type (a primitive or special type)refType()
Returns the referenced type - note that this may be unknown.Returns the referenced type name.default TypeName
typeName()
Returns the type name.Methods inherited from interface dk.mada.jaxrs.model.types.Reference
validation
Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isContainer, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, neededImports, wrapperTypeName
-
Method Details
-
of
Creates a new reference to a type (a primitive or special type)- Parameters:
refType
- the typerefTypeName
- the type namevalidation
- the validation information if available- Returns:
- a reference to the type
-
of
Creates a new reference to a type name (a DTO).- Parameters:
refTypeName
- the type namevalidation
- the validation information if available- Returns:
- a reference to the type name
-
refTypeName
TypeName refTypeName()Returns the referenced type name.- Returns:
- the referenced type name
-
refType
Type refType()Returns the referenced type - note that this may be unknown. -
typeName
Description copied from interface:Type
Returns the type name.
-