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 aParserTypeRef
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.refType()
Returns the value of therefType
record component.Returns the value of therefTypeName
record component.final String
toString()
Returns a string representation of this record class.typeName()
Returns the type name.Returns the value of thevalidation
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
-
Constructor Details
-
ParserTypeRef
Creates an instance of aParserTypeRef
record class.- Parameters:
refType
- the value for therefType
record componentrefTypeName
- the value for therefTypeName
record componentvalidation
- the value for thevalidation
record component
-
-
Method Details
-
typeName
Description copied from interface:Type
Returns 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 therefType
record component. -
refTypeName
Returns the value of therefTypeName
record component.- Returns:
- the value of the
refTypeName
record component
-
validation
Returns the value of thevalidation
record component.- Specified by:
validation
in interfaceReference
- Returns:
- the value of the
validation
record component
-