Record Class AnnotationPreflight.Diagnostic

java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.AnnotationPreflight.Diagnostic
Record Components:
severity - rejection or migration warning
code - stable machine-readable reason
component - inspected implementation binary name
fullSignature - exact inspected location, including parameter position where relevant
annotationType - annotation binary name for capability diagnostics, or empty when unrelated
policyKind - policy namespace, or empty when unrelated
policyId - reserved safe identifier; currently empty so untrusted policy values cannot leak
Enclosing class:
AnnotationPreflight

public static record AnnotationPreflight.Diagnostic(AnnotationPreflight.Severity severity, String code, String component, String fullSignature, String annotationType, String policyKind, String policyId) extends Record
Safe deterministic diagnostic; arbitrary annotation arguments and exception messages are omitted.
  • Constructor Details

    • Diagnostic

      public Diagnostic(AnnotationPreflight.Severity severity, String code, String component, String fullSignature, String annotationType, String policyKind, String policyId)
      Creates an instance of a Diagnostic record class.
      Parameters:
      severity - the value for the severity record component
      code - the value for the code record component
      component - the value for the component record component
      fullSignature - the value for the fullSignature record component
      annotationType - the value for the annotationType record component
      policyKind - the value for the policyKind record component
      policyId - the value for the policyId 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • severity

      public AnnotationPreflight.Severity severity()
      Returns the value of the severity record component.
      Returns:
      the value of the severity record component
    • code

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

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

      public String fullSignature()
      Returns the value of the fullSignature record component.
      Returns:
      the value of the fullSignature record component
    • annotationType

      public String annotationType()
      Returns the value of the annotationType record component.
      Returns:
      the value of the annotationType record component
    • policyKind

      public String policyKind()
      Returns the value of the policyKind record component.
      Returns:
      the value of the policyKind record component
    • policyId

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