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 aValidationItem
record class. -
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
record component.debugDump
(int indent) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.path()
Returns the value of thepath
record component.void
Show the content of the object intended for diagnostics.status()
Returns the value of thestatus
record component.toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
Methods 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 aValidationItem
record class.- Parameters:
type
- the value for thetype
record componentstatus
- the value for thestatus
record componentmessage
- the value for themessage
record componentpath
- the value for thepath
record componentdata
- the value for thedata
record component
-
-
Method Details
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
shortDump
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 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 thetype
record component.- Returns:
- the value of the
type
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-