Class RepresentationSelection
java.lang.Object
com.kazforge.jsonapi.representation.RepresentationSelection
Backend-independent immutable per-operation selection of include paths and sparse fieldsets. The
current Jackson adapters resolve its JSON:API member names through caller-configured Jackson.
An absent include request (include was not supplied) omits included. An
explicitly requested empty include emits included: [] when no resources resolve, and a
non-empty include-path list that resolves to no resources does the same. An absent fieldset type
leaves its attributes and relationships unrestricted; a present type with an empty list selects
none. Include-path segments and field names are final JSON:API external member names resolved by
the configured Jackson mapper, never logical application-property identities.
This value contains representation-shaping requests only. It does not model filters, sorting, pagination, persistence projections, authorization state, or query predicates.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable builder whoseRepresentationSelection.Builder.build()result defensively copies all supplied values. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder for one immutable selection.booleanSparse field names by JSON:API resource type, including explicitly empty fieldsets.inthashCode()Ordered include paths requested for compound-document traversal.booleanReturns whether the request explicitly supplied anincludeparameter.static RepresentationSelectionnone()Returns the selection that requests neither inclusion nor sparse fieldsets.
-
Method Details
-
none
Returns the selection that requests neither inclusion nor sparse fieldsets. -
builder
Creates a builder for one immutable selection. -
includePaths
Ordered include paths requested for compound-document traversal. -
includeRequested
public boolean includeRequested()Returns whether the request explicitly supplied anincludeparameter. -
fieldsets
Sparse field names by JSON:API resource type, including explicitly empty fieldsets. -
equals
-
hashCode
public int hashCode()
-