Package io.jmix.dynmodelai.validation
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 Summary
ConstructorsConstructorDescriptionDraftApplyValidation(boolean hasChanges, List<DraftFinding> findings, @Nullable ModelIssue blockingIssue) Creates an instance of aDraftApplyValidationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ModelIssueReturns the value of theblockingIssuerecord component.final booleanIndicates whether some other object is "equal to" this one.findings()Returns the value of thefindingsrecord component.booleanReturns the value of thehasChangesrecord component.final inthashCode()Returns a hash code value for this object.booleanpassed()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DraftApplyValidation
public DraftApplyValidation(boolean hasChanges, List<DraftFinding> findings, @Nullable ModelIssue blockingIssue) Creates an instance of aDraftApplyValidationrecord class.- Parameters:
hasChanges- the value for thehasChangesrecord componentfindings- the value for thefindingsrecord componentblockingIssue- the value for theblockingIssuerecord component
-
-
Method Details
-
passed
public boolean passed() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hasChanges
public boolean hasChanges()Returns the value of thehasChangesrecord component.- Returns:
- the value of the
hasChangesrecord component
-
findings
Returns the value of thefindingsrecord component.- Returns:
- the value of the
findingsrecord component
-
blockingIssue
Returns the value of theblockingIssuerecord component.- Returns:
- the value of the
blockingIssuerecord component
-