Record Class ApplicationVerificationResult
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ApplicationVerificationResult
- Record Components:
accepted- whether verification succeededstrictMode- whether strict verification was requestedcoordinate- verified coordinate when availablemessages- safe findings
public record ApplicationVerificationResult(boolean accepted, boolean strictMode, ApplicationCoordinate coordinate, List<String> messages)
extends Record
Structured verification result for manifests and bundles.
Public parser and verifier APIs return this type rather than leaking raw JSON, ZIP, checksum, or signature exceptions.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationVerificationResult(boolean accepted, boolean strictMode, ApplicationCoordinate coordinate, List<String> messages) Creates immutable verification data. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.accepted(ApplicationCoordinate coordinate, boolean strictMode, List<String> messages) Creates a successful verification result.Returns the value of thecoordinaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.rejected(ApplicationCoordinate coordinate, boolean strictMode, List<String> messages) Creates a rejected verification result.booleanReturns the value of thestrictModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApplicationVerificationResult
public ApplicationVerificationResult(boolean accepted, boolean strictMode, ApplicationCoordinate coordinate, List<String> messages) Creates immutable verification data.
-
-
Method Details
-
accepted
public static ApplicationVerificationResult accepted(ApplicationCoordinate coordinate, boolean strictMode, List<String> messages) Creates a successful verification result.- Parameters:
coordinate- verified coordinatestrictMode- whether strict verification was usedmessages- safe informational messages- Returns:
- successful result
-
rejected
public static ApplicationVerificationResult rejected(ApplicationCoordinate coordinate, boolean strictMode, List<String> messages) Creates a rejected verification result.- Parameters:
coordinate- rejected coordinate when knownstrictMode- whether strict verification was usedmessages- safe rejection messages- Returns:
- rejected result
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
accepted
-
strictMode
public boolean strictMode()Returns the value of thestrictModerecord component.- Returns:
- the value of the
strictModerecord component
-
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-
messages
-