Record Class SchematronErrorMessageContribution
java.lang.Object
java.lang.Record
ch.tocco.nice2.reporting.api.SchematronErrorMessageContribution
public record SchematronErrorMessageContribution(List<String> errorIds, String textResourceKey)
extends Record
Maps one or more SVRL failed-assert ids (Schematron rule ids) to a single text resource key. When several
ids share a key, their (otherwise separate) validation errors are collapsed into one localized message.
-
Constructor Summary
ConstructorsConstructorDescriptionSchematronErrorMessageContribution(String errorId, String textResourceKey) SchematronErrorMessageContribution(List<String> errorIds, String textResourceKey) Creates an instance of aSchematronErrorMessageContributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.errorIds()Returns the value of theerrorIdsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetextResourceKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SchematronErrorMessageContribution
-
SchematronErrorMessageContribution
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
errorIds
-
textResourceKey
Returns the value of thetextResourceKeyrecord component.- Returns:
- the value of the
textResourceKeyrecord component
-