Record Class ScriptGraph.ValidationDiagnostic
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.ScriptGraph.ValidationDiagnostic
- Record Components:
nodeId- the node related to this diagnostic, or null for graph-level issuesedgeId- a composite edge key related to this diagnostic, or nullmessage- human-readable descriptionseverity- whether this is an error (blocks build) or warning (informational)
- Enclosing class:
ScriptGraph
public static record ScriptGraph.ValidationDiagnostic(@Nullable String nodeId, @Nullable String edgeId, String message, ScriptGraph.Severity severity)
extends Record
A structured validation diagnostic with node/edge context and severity.
-
Constructor Summary
ConstructorsConstructorDescriptionValidationDiagnostic(@Nullable String nodeId, @Nullable String edgeId, String message, ScriptGraph.Severity severity) Creates an instance of aValidationDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringedgeId()Returns the value of theedgeIdrecord component.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.@Nullable StringnodeId()Returns the value of thenodeIdrecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationDiagnostic
public ValidationDiagnostic(@Nullable String nodeId, @Nullable String edgeId, String message, ScriptGraph.Severity severity) Creates an instance of aValidationDiagnosticrecord class.
-
-
Method Details
-
toString
-
hashCode
-
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). -
nodeId
-
edgeId
-
message
-
severity
-