Record Class AiClassSuggestion
- Record Components:
className- simple or fully qualified class name reported by the AI; may benullif omitted by the provider responseclassSecurityRelevant- whether the class as a whole is considered security-relevant; may benullwhen the AI does not provide a class-level decisionclassTags- class-level security tags suggested by the AI; may be empty ornulldepending on response normalizationclassReason- explanatory rationale for the class-level classification; may benullmethods- method-level suggestions produced for individual test methods; may be empty ornulldepending on response normalization
This record represents the structured output returned by an AI suggestion engine after analyzing the source of one JUnit test class. It contains both optional class-level security classification data and method-level suggestions for individual test methods declared within the class.
Class-level fields describe whether the class as a whole appears to be
security-relevant and, if so, which aggregate tags or rationale apply.
Method-level results are provided separately through methods() and
are typically used by the calling code as the primary source for per-method
enrichment of emitted scan results.
Instances of this record are commonly deserialized from provider-specific AI responses after normalization into the application's internal result model.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAiClassSuggestion(String className, Boolean classSecurityRelevant, List<String> classTags, String classReason, List<AiMethodSuggestion> methods) Creates an instance of aAiClassSuggestionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.Returns the value of theclassReasonrecord component.Returns the value of theclassSecurityRelevantrecord component.Returns the value of theclassTagsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.methods()Returns the value of themethodsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AiClassSuggestion
public AiClassSuggestion(String className, Boolean classSecurityRelevant, List<String> classTags, String classReason, List<AiMethodSuggestion> methods) Creates an instance of aAiClassSuggestionrecord class.- Parameters:
className- the value for theclassNamerecord componentclassSecurityRelevant- the value for theclassSecurityRelevantrecord componentclassTags- the value for theclassTagsrecord componentclassReason- the value for theclassReasonrecord componentmethods- the value for themethodsrecord component
-
-
Method Details
-
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). -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
classSecurityRelevant
Returns the value of theclassSecurityRelevantrecord component.- Returns:
- the value of the
classSecurityRelevantrecord component
-
classTags
Returns the value of theclassTagsrecord component.- Returns:
- the value of the
classTagsrecord component
-
classReason
Returns the value of theclassReasonrecord component.- Returns:
- the value of the
classReasonrecord component
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-