Record Class ValidationItem<T>

java.lang.Object
java.lang.Record
com.evolveum.midpoint.schema.validator.ValidationItem<T>
All Implemented Interfaces:
DebugDumpable, ShortDumpable

public record ValidationItem<T>(ValidationItemType type, ValidationItemStatus status, LocalizableMessage message, ItemPath path, T data) extends Record implements DebugDumpable, ShortDumpable
Author:
semancik
  • Constructor Details

    • ValidationItem

      public ValidationItem(ValidationItemType type, ValidationItemStatus status, LocalizableMessage message, ItemPath path, T data)
      Creates an instance of a ValidationItem record class.
      Parameters:
      type - the value for the type record component
      status - the value for the status record component
      message - the value for the message record component
      path - the value for the path record component
      data - the value for the data record component
  • Method Details

    • debugDump

      public String debugDump(int indent)
      Specified by:
      debugDump in interface DebugDumpable
    • shortDump

      public void shortDump(StringBuilder sb)
      Description copied from interface: ShortDumpable
      Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.
      Specified by:
      shortDump in interface ShortDumpable
      Parameters:
      sb - StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
    • toString

      public 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.
    • type

      public ValidationItemType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • status

      public ValidationItemStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • message

      public LocalizableMessage message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • path

      public ItemPath path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • data

      public T data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component