Record Class NuggetAdminOperationKind.PayloadBinding
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetAdminOperationKind.PayloadBinding
- Record Components:
payloadClass- exact public DTO class accepted by the bindingpayloadType- stable public payload type token used in command envelopes and JSON fixturesschemaVariantId- stable JSON Schema variant reference for documentation and conformance tests
- Enclosing class:
NuggetAdminOperationKind
public static record NuggetAdminOperationKind.PayloadBinding(Class<?> payloadClass, String payloadType, String schemaVariantId)
extends Record
Exact payload binding for one operation-family request or result DTO.
The binding uses exact class identity deliberately. It does not accept subclasses, provider implementation DTOs, CLI-private models, maps, arrays, collections, generic JSON nodes, or string command payloads. The schema variant id is documentation/test metadata; production code does not load or validate JSON Schema.
-
Constructor Summary
ConstructorsConstructorDescriptionPayloadBinding(Class<?> payloadClass, String payloadType, String schemaVariantId) Creates immutable binding metadata. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?> Returns the value of thepayloadClassrecord component.Returns the value of thepayloadTyperecord component.booleanReturns whether the exact payload class is covered by the Java public contract normalizer used by command envelopes.Returns the value of theschemaVariantIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PayloadBinding
-
-
Method Details
-
publicContractValidationCovered
public boolean publicContractValidationCovered()Returns whether the exact payload class is covered by the Java public contract normalizer used by command envelopes.This method is intended for contract tests and future binding reviews. A binding without normalizer coverage is not safe to admit because type-correct DTO instances could retain data outside the bounded JSON and semantic contract.
- Returns:
truewhen command envelopes can normalize this payload class before retaining it
-
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). -
payloadClass
Returns the value of thepayloadClassrecord component.- Returns:
- the value of the
payloadClassrecord component
-
payloadType
Returns the value of thepayloadTyperecord component.- Returns:
- the value of the
payloadTyperecord component
-
schemaVariantId
Returns the value of theschemaVariantIdrecord component.- Returns:
- the value of the
schemaVariantIdrecord component
-