Record Class McpAccessibilityAuditResult
java.lang.Object
java.lang.Record
com.shaft.mcp.McpAccessibilityAuditResult
public record McpAccessibilityAuditResult(double accessibilityScore, int violationsCount, int passesCount, List<String> wcagTags, List<McpAccessibilityViolation> violations, List<String> warnings)
extends Record
Non-asserting axe-core accessibility audit result returned by
browser_accessibility_audit.
The audit is reported as data; callers decide whether the violations found are acceptable.-
Constructor Summary
ConstructorsConstructorDescriptionMcpAccessibilityAuditResult(double accessibilityScore, int violationsCount, int passesCount, List<String> wcagTags, List<McpAccessibilityViolation> violations, List<String> warnings) Creates an instance of aMcpAccessibilityAuditResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theaccessibilityScorerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepassesCountrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theviolationsrecord component.intReturns the value of theviolationsCountrecord component.warnings()Returns the value of thewarningsrecord component.wcagTags()Returns the value of thewcagTagsrecord component.
-
Constructor Details
-
McpAccessibilityAuditResult
public McpAccessibilityAuditResult(double accessibilityScore, int violationsCount, int passesCount, List<String> wcagTags, List<McpAccessibilityViolation> violations, List<String> warnings) Creates an instance of aMcpAccessibilityAuditResultrecord class.- Parameters:
accessibilityScore- the value for theaccessibilityScorerecord componentviolationsCount- the value for theviolationsCountrecord componentpassesCount- the value for thepassesCountrecord componentwcagTags- the value for thewcagTagsrecord componentviolations- the value for theviolationsrecord componentwarnings- the value for thewarningsrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
accessibilityScore
public double accessibilityScore()Returns the value of theaccessibilityScorerecord component.- Returns:
- the value of the
accessibilityScorerecord component
-
violationsCount
public int violationsCount()Returns the value of theviolationsCountrecord component.- Returns:
- the value of the
violationsCountrecord component
-
passesCount
public int passesCount()Returns the value of thepassesCountrecord component.- Returns:
- the value of the
passesCountrecord component
-
wcagTags
-
violations
Returns the value of theviolationsrecord component.- Returns:
- the value of the
violationsrecord component
-
warnings
-