Package dk.mada.jaxrs.openapi
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dk.mada.jaxrs.model.types.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
Description copied from interface:TypeReturns the type name. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of therefTyperecord component. -
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
-