Package dk.mada.jaxrs.openapi
Class ParserTypeRefs
java.lang.Object
dk.mada.jaxrs.openapi.ParserTypeRefs
Constructs and keeps track of parser references.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninfo()
Returns information about parser references.makeDtoRef
(String name, Validation validation) Makes a new parser reference to a DTO.of
(Type type, Validation validation) Makes a new parser reference to a primitive/special type.
-
Constructor Details
-
ParserTypeRefs
Constructs new instance.- Parameters:
typeNames
- the type names instance
-
-
Method Details
-
makeDtoRef
Makes a new parser reference to a DTO. Created from a property/parameter reference, so it does have validation.- Parameters:
name
- the name of the DTO typevalidation
- the validation requirements of the reference- Returns:
- the parser reference
-
of
Makes a new parser reference to a primitive/special type.- Parameters:
type
- the type to make a reference tovalidation
- the validation requirements of the reference- Returns:
- the parser reference
-
info
Returns information about parser references.- Returns:
- information about parser references
-