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 Details

    • JsonTypeCheckingPropertyVisitor

      public JsonTypeCheckingPropertyVisitor(@Nonnull ContextStack contextStack, @Nonnull Property property, @Nonnull com.fasterxml.jackson.databind.JsonNode childJsonNode)
      Creates an instance of a JsonTypeCheckingPropertyVisitor record class.
      Parameters:
      contextStack - the value for the contextStack record component
      property - the value for the property record component
      childJsonNode - the value for the childJsonNode record component
  • Method Details

    • visitPrimitiveProperty

      public void visitPrimitiveProperty(@Nonnull PrimitiveProperty primitiveProperty)
      Specified by:
      visitPrimitiveProperty in interface PropertyVisitor
    • handlePrimitiveProperty

      public void handlePrimitiveProperty(@Nonnull PrimitiveProperty primitiveProperty)
    • visitEnumerationProperty

      public void visitEnumerationProperty(@Nonnull EnumerationProperty enumerationProperty)
      Specified by:
      visitEnumerationProperty in interface PropertyVisitor
    • handleEnumerationProperty

      public void handleEnumerationProperty(@Nonnull EnumerationProperty enumerationProperty)
    • visitAssociationEndSignature

      public void visitAssociationEndSignature(AssociationEndSignature associationEndSignature)
      Specified by:
      visitAssociationEndSignature in interface PropertyVisitor
    • visitAssociationEnd

      public void visitAssociationEnd(@Nonnull AssociationEnd associationEnd)
      Specified by:
      visitAssociationEnd in interface PropertyVisitor
    • visitParameterizedProperty

      public void visitParameterizedProperty(ParameterizedProperty parameterizedProperty)
      Specified by:
      visitParameterizedProperty in interface PropertyVisitor
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contextStack

      @Nonnull public ContextStack contextStack()
      Returns the value of the contextStack record component.
      Returns:
      the value of the contextStack record component
    • property

      public Property property()
      Returns the value of the property record component.
      Returns:
      the value of the property record component
    • childJsonNode

      public com.fasterxml.jackson.databind.JsonNode childJsonNode()
      Returns the value of the childJsonNode record component.
      Returns:
      the value of the childJsonNode record component