Package com.pain001.sdk
Record Class GenerateResponse
java.lang.Object
java.lang.Record
com.pain001.sdk.GenerateResponse
- Record Components:
success- whether the XML was generatedmessage- a human-readable result linefilename- the suggested download name, or nullxml- the generated XML document, or null when generation failedvalidationErrors- row-level validation errors, when validation failedschemeViolations- scheme-rulebook violations, when scheme validation failed
public record GenerateResponse(boolean success, String message, String filename, String xml, List<RowError> validationErrors, List<com.fasterxml.jackson.databind.JsonNode> schemeViolations)
extends Record
POST /api/v1/ui/generate (the server's UiGenerateResponse).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.List<com.fasterxml.jackson.databind.JsonNode> Returns the value of theschemeViolationsrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidationErrorsrecord component.xml()Returns the value of thexmlrecord 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 '=='. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
xml
Returns the value of thexmlrecord component.- Returns:
- the value of the
xmlrecord component
-
validationErrors
Returns the value of thevalidationErrorsrecord component.- Returns:
- the value of the
validationErrorsrecord component
-
schemeViolations
Returns the value of theschemeViolationsrecord component.- Returns:
- the value of the
schemeViolationsrecord component
-