public static class Jackson2HalModule.EmbeddedMapper extends Object
| Constructor and Description |
|---|
EmbeddedMapper(LinkRelationProvider relProvider,
CurieProvider curieProvider,
boolean preferCollectionRels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasCuriedEmbed(Iterable<?> source)
Returns whether the given source elements will be namespaced.
|
Map<HalLinkRelation,Object> |
map(Iterable<?> source)
Maps the given source elements as embedded values.
|
HalLinkRelation |
map(LinkRelation source)
Maps the given
HalLinkRelation using the underlying relation transformer. |
Jackson2HalModule.EmbeddedMapper |
with(com.fasterxml.jackson.databind.PropertyNamingStrategy strategy)
Registers the given
PropertyNamingStrategy with the current mapper to forward that strategy as relation
transformer, so that LinkRelations used as key for the embedding will be transformed using the given
strategy. |
public EmbeddedMapper(LinkRelationProvider relProvider, CurieProvider curieProvider, boolean preferCollectionRels)
public Jackson2HalModule.EmbeddedMapper with(@Nullable com.fasterxml.jackson.databind.PropertyNamingStrategy strategy)
PropertyNamingStrategy with the current mapper to forward that strategy as relation
transformer, so that LinkRelations used as key for the embedding will be transformed using the given
strategy.strategy - must not be null.Jackson2HalModule.EmbeddedMapper applying the given strategy when mapping embedded objects.public Map<HalLinkRelation,Object> map(Iterable<?> source)
source - must not be null.public HalLinkRelation map(LinkRelation source)
HalLinkRelation using the underlying relation transformer.source - must not be null.public boolean hasCuriedEmbed(Iterable<?> source)
source - must not be null.Copyright © 2011–2022 Pivotal, Inc.. All rights reserved.