public static class Jackson2HalModule.EmbeddedMapper extends Object
| Constructor and Description |
|---|
EmbeddedMapper(LinkRelationProvider relProvider,
CurieProvider curieProvider,
boolean preferCollectionRels)
Creates a new
Jackson2HalModule.EmbeddedMapper for the given LinkRelationProvider, CurieProvider and flag
whether to prefer collection relations. |
| 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.
|
public EmbeddedMapper(LinkRelationProvider relProvider, CurieProvider curieProvider, boolean preferCollectionRels)
Jackson2HalModule.EmbeddedMapper for the given LinkRelationProvider, CurieProvider and flag
whether to prefer collection relations.relProvider - must not be null.curieProvider - must not be null.preferCollectionRels - public Map<HalLinkRelation,Object> map(Iterable<?> source)
source - must not be null.public boolean hasCuriedEmbed(Iterable<?> source)
source - must not be null.Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.