Record Class JsonTypeCheckingPropertyVisitor
java.lang.Object
java.lang.Record
cool.klass.deserializer.json.type.JsonTypeCheckingPropertyVisitor
- All Implemented Interfaces:
PropertyVisitor
public record JsonTypeCheckingPropertyVisitor(@Nonnull ContextStack contextStack, Property property, com.fasterxml.jackson.databind.JsonNode childJsonNode)
extends Record
implements PropertyVisitor
-
Constructor Summary
ConstructorsConstructorDescriptionJsonTypeCheckingPropertyVisitor(ContextStack contextStack, Property property, com.fasterxml.jackson.databind.JsonNode childJsonNode) Creates an instance of aJsonTypeCheckingPropertyVisitorrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeReturns the value of thechildJsonNoderecord component.Returns the value of thecontextStackrecord component.final booleanIndicates whether some other object is "equal to" this one.voidhandleEnumerationProperty(EnumerationProperty enumerationProperty) voidhandlePrimitiveProperty(PrimitiveProperty primitiveProperty) final inthashCode()Returns a hash code value for this object.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.voidvisitAssociationEnd(AssociationEnd associationEnd) voidvisitAssociationEndSignature(AssociationEndSignature associationEndSignature) voidvisitEnumerationProperty(EnumerationProperty enumerationProperty) voidvisitParameterizedProperty(ParameterizedProperty parameterizedProperty) voidvisitPrimitiveProperty(PrimitiveProperty primitiveProperty)
-
Constructor Details
-
JsonTypeCheckingPropertyVisitor
public JsonTypeCheckingPropertyVisitor(@Nonnull ContextStack contextStack, @Nonnull Property property, @Nonnull com.fasterxml.jackson.databind.JsonNode childJsonNode) Creates an instance of aJsonTypeCheckingPropertyVisitorrecord class.- Parameters:
contextStack- the value for thecontextStackrecord componentproperty- the value for thepropertyrecord componentchildJsonNode- the value for thechildJsonNoderecord component
-
-
Method Details
-
visitPrimitiveProperty
- Specified by:
visitPrimitivePropertyin interfacePropertyVisitor
-
handlePrimitiveProperty
-
visitEnumerationProperty
- Specified by:
visitEnumerationPropertyin interfacePropertyVisitor
-
handleEnumerationProperty
-
visitAssociationEndSignature
- Specified by:
visitAssociationEndSignaturein interfacePropertyVisitor
-
visitAssociationEnd
- Specified by:
visitAssociationEndin interfacePropertyVisitor
-
visitParameterizedProperty
- Specified by:
visitParameterizedPropertyin interfacePropertyVisitor
-
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). -
contextStack
Returns the value of thecontextStackrecord component.- Returns:
- the value of the
contextStackrecord component
-
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
childJsonNode
public com.fasterxml.jackson.databind.JsonNode childJsonNode()Returns the value of thechildJsonNoderecord component.- Returns:
- the value of the
childJsonNoderecord component
-