Interface JsonApiPatches
Typed PatchPresence<T> DTO binding (readPatch / bindPatch) is the
conventional path for ordinary callers: omitted members, explicit JSON null / null
linkage, and supplied values stay distinct in the bound DTO. PatchCommand (
readCommand / bindCommand) remains the explicit lower-level, generic, and infrastructure
projection of the same validated update document. Neither path depends on global resource-type
registration and neither reads included.
Both paths describe requested changes only. They do not authorize a request, load domain state, resolve conflicts, or apply mutations; applications own those decisions.
-
Method Summary
Modifier and TypeMethodDescription<T> PatchCommand<T> bindCommand(com.kazforge.jsonapi.core.model.JsonApiDocument document, Class<T> resourceType) Binds an already-validated update document into aPatchCommandwithout re-parsing or re-validating.PatchCommand<?> bindCommand(com.kazforge.jsonapi.core.model.JsonApiDocument document, Type resourceType) Binds an already-validated update document into aPatchCommanddescribed by a full generic type without re-parsing or re-validating.<T> TBinds an already-validated update document into the caller's PATCH DTO without re-parsing or re-validating.Binds an already-validated update document into a PATCH DTO described by a full generic type without re-parsing or re-validating.<T> PatchCommand<T> readCommand(InputStream json, Class<T> resourceType) Stream variant ofreadCommand(String, Class).PatchCommand<?> readCommand(InputStream json, Type resourceType) Stream variant ofreadCommand(String, Type).<T> PatchCommand<T> readCommand(String json, Class<T> resourceType) Decodes, validates as an update request, and binds only the supplied changes into aPatchCommand.PatchCommand<?> readCommand(String json, Type resourceType) Decodes, validates as an update request, and binds only the supplied changes into aPatchCommanddescribed by a full generic type.<T> TreadPatch(InputStream json, Class<T> dtoType) Stream variant ofreadPatch(String, Class).readPatch(InputStream json, Type dtoType) Stream variant ofreadPatch(String, Type).<T> TDecodes, validates as an update request, and binds the document directly into the caller's PATCH DTO.Decodes, validates as an update request, and binds the document into a PATCH DTO described by a full generic type.
-
Method Details
-
readPatch
Decodes, validates as an update request, and binds the document directly into the caller's PATCH DTO. -
readPatch
Stream variant ofreadPatch(String, Class). The stream is not closed. -
readPatch
Decodes, validates as an update request, and binds the document into a PATCH DTO described by a full generic type. The caller ensuresdtoTypedenotes the returned value. -
readPatch
Stream variant ofreadPatch(String, Type). The stream is not closed. The caller ensuresdtoTypedenotes the returned value. -
readCommand
Decodes, validates as an update request, and binds only the supplied changes into aPatchCommand. -
readCommand
Stream variant ofreadCommand(String, Class). The stream is not closed. -
readCommand
Decodes, validates as an update request, and binds only the supplied changes into aPatchCommanddescribed by a full generic type.The wildcard is the honest declaration: a plain
Typecannot recover the type argument, so callers assign or narrow the command themselves. -
readCommand
Stream variant ofreadCommand(String, Type). The stream is not closed.The wildcard is the honest declaration: a plain
Typecannot recover the type argument, so callers assign or narrow the command themselves. -
bindPatch
Binds an already-validated update document into the caller's PATCH DTO without re-parsing or re-validating. -
bindPatch
Binds an already-validated update document into a PATCH DTO described by a full generic type without re-parsing or re-validating. The caller ensuresdtoTypedenotes the returned value. -
bindCommand
<T> PatchCommand<T> bindCommand(com.kazforge.jsonapi.core.model.JsonApiDocument document, Class<T> resourceType) Binds an already-validated update document into aPatchCommandwithout re-parsing or re-validating. -
bindCommand
PatchCommand<?> bindCommand(com.kazforge.jsonapi.core.model.JsonApiDocument document, Type resourceType) Binds an already-validated update document into aPatchCommanddescribed by a full generic type without re-parsing or re-validating.The wildcard is the honest declaration: a plain
Typecannot recover the type argument, so callers assign or narrow the command themselves.
-