Package com.pain001.sdk
Record Class ValidationResponse
java.lang.Object
java.lang.Record
com.pain001.sdk.ValidationResponse
- Record Components:
isValid- whether every row is validtotalRows- rows readvalidRows- rows that passedinvalidRows- rows that failederrors- one entry per row-level validation errorschemeViolations- scheme-rulebook violations, when a scheme was given
public record ValidationResponse(boolean isValid, int totalRows, int validRows, int invalidRows, List<RowError> errors, List<com.fasterxml.jackson.databind.JsonNode> schemeViolations)
extends Record
POST /api/v1/ui/validate.-
Constructor Summary
ConstructorsConstructorDescriptionValidationResponse(boolean isValid, int totalRows, int validRows, int invalidRows, List<RowError> errors, List<com.fasterxml.jackson.databind.JsonNode> schemeViolations) Copies the lists so the record stays immutable. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theinvalidRowsrecord component.booleanisValid()Returns the value of theisValidrecord component.List<com.fasterxml.jackson.databind.JsonNode> Returns the value of theschemeViolationsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalRowsrecord component.intReturns the value of thevalidRowsrecord component.
-
Constructor Details
-
Method Details
-
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 '=='. -
isValid
public boolean isValid()Returns the value of theisValidrecord component.- Returns:
- the value of the
isValidrecord component
-
totalRows
public int totalRows()Returns the value of thetotalRowsrecord component.- Returns:
- the value of the
totalRowsrecord component
-
validRows
public int validRows()Returns the value of thevalidRowsrecord component.- Returns:
- the value of the
validRowsrecord component
-
invalidRows
public int invalidRows()Returns the value of theinvalidRowsrecord component.- Returns:
- the value of the
invalidRowsrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
schemeViolations
Returns the value of theschemeViolationsrecord component.- Returns:
- the value of the
schemeViolationsrecord component
-