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 issues
edgeId - a composite edge key related to this diagnostic, or null
message - human-readable description
severity - 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 Details

    • ValidationDiagnostic

      public ValidationDiagnostic(@Nullable String nodeId, @Nullable String edgeId, String message, ScriptGraph.Severity severity)
      Creates an instance of a ValidationDiagnostic record class.
      Parameters:
      nodeId - the value for the nodeId record component
      edgeId - the value for the edgeId record component
      message - the value for the message record component
      severity - the value for the severity record component
  • Method Details

    • 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.
    • nodeId

      public @Nullable String nodeId()
      Returns the value of the nodeId record component.
      Returns:
      the value of the nodeId record component
    • edgeId

      public @Nullable String edgeId()
      Returns the value of the edgeId record component.
      Returns:
      the value of the edgeId record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • severity

      public ScriptGraph.Severity severity()
      Returns the value of the severity record component.
      Returns:
      the value of the severity record component