Record Class ParserTypeRef
java.lang.Object
java.lang.Record
dk.mada.jaxrs.openapi.ParserTypeRef
- Record Components:
refType- the referenced type - note that this may be unknownrefTypeName- the referenced type namevalidation- the validation
public record ParserTypeRef(Type refType, TypeName refTypeName, Validation validation)
extends Record
implements Reference
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.
-
Constructor Summary
ConstructorsConstructorDescriptionParserTypeRef(Type refType, TypeName refTypeName, Validation validation) Creates an instance of aParserTypeRefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.refType()Returns the value of therefTyperecord component.Returns the value of therefTypeNamerecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the type name.Returns the value of thevalidationrecord component.Methods inherited from interface Type
isBigDecimal, isContainer, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isValidation, isVoid, neededImports, wrapperTypeName
-
Constructor Details
-
ParserTypeRef
Creates an instance of aParserTypeRefrecord class.- Parameters:
refType- the value for therefTyperecord componentrefTypeName- the value for therefTypeNamerecord componentvalidation- the value for thevalidationrecord component
-
-
Method Details
-
typeName
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
refType
-
refTypeName
Returns the value of therefTypeNamerecord component.- Returns:
- the value of the
refTypeNamerecord component
-
validation
Returns the value of thevalidationrecord component.- Specified by:
validationin interfaceReference- Returns:
- the value of the
validationrecord component
-