Record Class DraftApplyValidation

java.lang.Object
java.lang.Record
io.jmix.dynmodelai.validation.DraftApplyValidation

public record DraftApplyValidation(boolean hasChanges, List<DraftFinding> findings, @Nullable ModelIssue blockingIssue) extends Record
Draft validation snapshot used by both Review and Apply; excludes Run state and platform publication checks. The blocking issue is the selected refusal reason, including no changes or an invalid model without diagnostics.
  • Constructor Details

    • DraftApplyValidation

      public DraftApplyValidation(boolean hasChanges, List<DraftFinding> findings, @Nullable ModelIssue blockingIssue)
      Creates an instance of a DraftApplyValidation record class.
      Parameters:
      hasChanges - the value for the hasChanges record component
      findings - the value for the findings record component
      blockingIssue - the value for the blockingIssue record component
  • Method Details

    • passed

      public boolean passed()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • hasChanges

      public boolean hasChanges()
      Returns the value of the hasChanges record component.
      Returns:
      the value of the hasChanges record component
    • findings

      public List<DraftFinding> findings()
      Returns the value of the findings record component.
      Returns:
      the value of the findings record component
    • blockingIssue

      public @Nullable ModelIssue blockingIssue()
      Returns the value of the blockingIssue record component.
      Returns:
      the value of the blockingIssue record component