Package com.kazforge.jsonapi.mapping
Interface DomainData
- All Known Implementing Classes:
DomainData.IdentifierCollection,DomainData.NullData,DomainData.ResourceCollection,DomainData.SingleIdentifier,DomainData.SingleResource
public sealed interface DomainData
permits DomainData.NullData, DomainData.SingleResource, DomainData.ResourceCollection, DomainData.SingleIdentifier, DomainData.IdentifierCollection
Primary data of a domain document envelope, preserving explicit null, single, and collection
states.
A Java null data component on the envelope means the member is absent; DomainData.NullData means the document contains "data": null. Resource payloads are Object
because primary collections may be heterogeneous; callers cast using their resource-type registry
registrations. Identifier variants pass through the core ResourceIdentifier values
without DTO binding. An empty DomainData.ResourceCollection or DomainData.IdentifierCollection is still
present primary data and preserves "data": [].
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA collection of core identifiers in wire order; defensive copy with unmodifiable view.static final recordstatic final recordA collection of bound resource DTOs in wire order; defensive copy with unmodifiable view.static final recordOne core identifier as primary data; never DTO-bound.static final recordOne bound resource DTO as primary data.