public interface EmbeddedWrapper
EntityModel
.Modifier and Type | Method and Description |
---|---|
Optional<LinkRelation> |
getRel()
Returns the rel to be used when embedding.
|
Class<?> |
getRelTargetType()
Returns the type to be used to calculate a type based rel.
|
Object |
getValue()
Returns the actual value to embed.
|
boolean |
hasRel(LinkRelation rel)
Returns whether the wrapper has the given rel.
|
boolean |
isCollectionValue()
Returns whether the wrapper is a collection value.
|
Optional<LinkRelation> getRel()
getRelTargetType()
. A wrapper returning null for both getRel()
and
getRelTargetType()
is considered invalid.getRelTargetType()
boolean hasRel(LinkRelation rel)
rel
- can be null.boolean isCollectionValue()
Object getValue()
@Nullable Class<?> getRelTargetType()
getRel()
. A wrapper returning null for both getRel()
and
getRelTargetType()
is considered invalid.Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.