Record Class McpAccessibilityViolation

java.lang.Object
java.lang.Record
com.shaft.mcp.McpAccessibilityViolation

public record McpAccessibilityViolation(String id, String impact, String description, String help, String helpUrl, List<String> tags, int nodeCount, List<McpAccessibilityViolationNode> nodes) extends Record
A single axe-core rule violation, returned by browser_accessibility_audit.
  • Constructor Details

    • McpAccessibilityViolation

      public McpAccessibilityViolation(String id, String impact, String description, String help, String helpUrl, List<String> tags, int nodeCount, List<McpAccessibilityViolationNode> nodes)
      Creates an instance of a McpAccessibilityViolation record class.
      Parameters:
      id - the value for the id record component
      impact - the value for the impact record component
      description - the value for the description record component
      help - the value for the help record component
      helpUrl - the value for the helpUrl record component
      tags - the value for the tags record component
      nodeCount - the value for the nodeCount record component
      nodes - the value for the nodes record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • impact

      public String impact()
      Returns the value of the impact record component.
      Returns:
      the value of the impact record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • help

      public String help()
      Returns the value of the help record component.
      Returns:
      the value of the help record component
    • helpUrl

      public String helpUrl()
      Returns the value of the helpUrl record component.
      Returns:
      the value of the helpUrl record component
    • tags

      public List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • nodeCount

      public int nodeCount()
      Returns the value of the nodeCount record component.
      Returns:
      the value of the nodeCount record component
    • nodes

      Returns the value of the nodes record component.
      Returns:
      the value of the nodes record component