@ProviderType public static interface Representor.FirstStep<T> extends BaseRepresentor.BaseFirstStep<T,Representor<T>,Representor.FirstStep<T>>
Modifier and Type | Method and Description |
---|---|
<S> Representor.FirstStep<T> |
addBidirectionalModel(java.lang.String key,
java.lang.String relatedKey,
java.lang.Class<? extends Identifier<S>> identifierClass,
java.util.function.Function<T,S> modelToIdentifierFunction)
Adds information about the bidirectional relation of a linked
resource in the actual resource and a collection of items in the
related resource.
|
<S extends Identifier> |
addRelatedCollection(java.lang.String key,
java.lang.Class<S> itemIdentifierClass)
Adds information about a related collection.
|
addApplicationRelativeURL, addBinary, addBoolean, addBooleanList, addDate, addLink, addLinkedModel, addLocalizedStringByLanguage, addLocalizedStringByLocale, addNested, addNestedList, addNumber, addNumberList, addRelatedCollection, addRelativeURL, addString, addStringList, build
<S> Representor.FirstStep<T> addBidirectionalModel(java.lang.String key, java.lang.String relatedKey, java.lang.Class<? extends Identifier<S>> identifierClass, java.util.function.Function<T,S> modelToIdentifierFunction)
key
- the relation's name in the resourcerelatedKey
- the relation's name in the related resourceidentifierClass
- the related resource identifier's classmodelToIdentifierFunction
- the function used to get the
related resource's identifier<S extends Identifier> Representor.FirstStep<T> addRelatedCollection(java.lang.String key, java.lang.Class<S> itemIdentifierClass)
key
- the relation's nameitemIdentifierClass
- the class of the collection items'
identifier