Record Class ValidationIssue
java.lang.Object
java.lang.Record
name.jurgenei.gradle.xml.validation.ValidationIssue
- Record Components:
severity- finding severitymessage- human-readable messagelocation- source location hint (XPath, line/column, or URI)
A single validation finding mapped to SVRL/JUnit output.
-
Constructor Summary
ConstructorsConstructorDescriptionValidationIssue(String severity, String message, String location) Creates an instance of aValidationIssuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ValidationIssueCreates an error-severity validation issue.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.message()Returns the value of themessagerecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
error
Creates an error-severity validation issue.- Parameters:
message- human-readable finding messagelocation- source location hint- Returns:
- error validation issue instance
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-