Record Class AnnotationPreflight.Diagnostic
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.AnnotationPreflight.Diagnostic
- Record Components:
severity- rejection or migration warningcode- stable machine-readable reasoncomponent- inspected implementation binary namefullSignature- exact inspected location, including parameter position where relevantannotationType- annotation binary name for capability diagnostics, or empty when unrelatedpolicyKind- policy namespace, or empty when unrelatedpolicyId- 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 Summary
ConstructorsConstructorDescriptionDiagnostic(AnnotationPreflight.Severity severity, String code, String component, String fullSignature, String annotationType, String policyKind, String policyId) Creates an instance of aDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationTyperecord component.code()Returns the value of thecoderecord component.Returns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefullSignaturerecord component.final inthashCode()Returns a hash code value for this object.policyId()Returns the value of thepolicyIdrecord component.Returns the value of thepolicyKindrecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Diagnostic
public Diagnostic(AnnotationPreflight.Severity severity, String code, String component, String fullSignature, String annotationType, String policyKind, String policyId) Creates an instance of aDiagnosticrecord class.- Parameters:
severity- the value for theseverityrecord componentcode- the value for thecoderecord componentcomponent- the value for thecomponentrecord componentfullSignature- the value for thefullSignaturerecord componentannotationType- the value for theannotationTyperecord componentpolicyKind- the value for thepolicyKindrecord componentpolicyId- the value for thepolicyIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
severity
-
code
-
component
-
fullSignature
Returns the value of thefullSignaturerecord component.- Returns:
- the value of the
fullSignaturerecord component
-
annotationType
Returns the value of theannotationTyperecord component.- Returns:
- the value of the
annotationTyperecord component
-
policyKind
Returns the value of thepolicyKindrecord component.- Returns:
- the value of the
policyKindrecord component
-
policyId
-