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
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Constructor Summary
ConstructorsConstructorDescriptionValidationItem(ValidationItemType type, ValidationItemStatus status, LocalizableMessage message, ItemPath path, T data) Creates an instance of aValidationItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.debugDump(int indent) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.path()Returns the value of thepathrecord component.voidShow the content of the object intended for diagnostics.status()Returns the value of thestatusrecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Constructor Details
-
ValidationItem
public ValidationItem(ValidationItemType type, ValidationItemStatus status, LocalizableMessage message, ItemPath path, T data) Creates an instance of aValidationItemrecord class.- Parameters:
type- the value for thetyperecord componentstatus- the value for thestatusrecord componentmessage- the value for themessagerecord componentpath- the value for thepathrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
shortDump
Description copied from interface:ShortDumpableShow 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:
shortDumpin interfaceShortDumpable- Parameters:
sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-