Record Class SkillSecurityScanner.Finding

java.lang.Object
java.lang.Record
io.agentscope.harness.agent.skill.curator.SkillSecurityScanner.Finding
Enclosing class:
SkillSecurityScanner

public static record SkillSecurityScanner.Finding(String patternId, SkillSecurityScanner.Severity severity, SkillSecurityScanner.Category category, String file, int line, String matchText, String description) extends Record
  • Constructor Details

    • Finding

      public Finding(String patternId, SkillSecurityScanner.Severity severity, SkillSecurityScanner.Category category, String file, int line, String matchText, String description)
      Creates an instance of a Finding record class.
      Parameters:
      patternId - the value for the patternId record component
      severity - the value for the severity record component
      category - the value for the category record component
      file - the value for the file record component
      line - the value for the line record component
      matchText - the value for the matchText record component
      description - the value for the description 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 '=='.
      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.
    • patternId

      public String patternId()
      Returns the value of the patternId record component.
      Returns:
      the value of the patternId record component
    • severity

      public SkillSecurityScanner.Severity severity()
      Returns the value of the severity record component.
      Returns:
      the value of the severity record component
    • category

      public SkillSecurityScanner.Category category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • file

      public String file()
      Returns the value of the file record component.
      Returns:
      the value of the file record component
    • line

      public int line()
      Returns the value of the line record component.
      Returns:
      the value of the line record component
    • matchText

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

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