Package org.jpedal.arlington.validate
Record Class ValidationIssue
java.lang.Object
java.lang.Record
org.jpedal.arlington.validate.ValidationIssue
- Record Components:
path- The path describing where in the COS tree this issue occurred, e.g.Trailer/Root/Pages/Kids[0]/Resources/Font/F1.arlingtonObject- The Arlington TSV object name that was being validated against when this issue was found, e.g. "PageObject".message- Description of the issue.
public record ValidationIssue(ValidationIssue.Severity severity, String path, String arlingtonObject, String message)
extends Record
A single issue that was found while validating.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionValidationIssue(ValidationIssue.Severity severity, String path, String arlingtonObject, String message) Creates an instance of aValidationIssuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearlingtonObjectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.path()Returns the value of thepathrecord component.severity()Returns the value of theseverityrecord component.toString()
-
Constructor Details
-
ValidationIssue
public ValidationIssue(ValidationIssue.Severity severity, String path, String arlingtonObject, String message) Creates an instance of aValidationIssuerecord class.- Parameters:
severity- the value for theseverityrecord componentpath- the value for thepathrecord componentarlingtonObject- the value for thearlingtonObjectrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
-
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
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
arlingtonObject
Returns the value of thearlingtonObjectrecord component.- Returns:
- the value of the
arlingtonObjectrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-