インターフェース SimpleRepresentationModelAssembler<T>
- すべてのスーパーインターフェース:
RepresentationModelAssembler<T,
EntityModel<T>>
public interface SimpleRepresentationModelAssembler<T>
extends RepresentationModelAssembler<T,EntityModel<T>>
EntityRepresentationModel<T>
を包含表現モデル型として使用する、純粋にドメイン型に基づく RepresentationModelAssembler
。- 導入:
- 1.0
- 作成者:
- Greg Turnquist
メソッドのサマリー
修飾子と型メソッド説明void
addLinks
(CollectionModel<EntityModel<T>> resources) CollectionModel
コレクションに追加するリンクを定義します。void
addLinks
(EntityModel<T> resource) 個々のEntityModel
ごとに追加するリンクを定義します。default CollectionModel<EntityModel<T>>
toCollectionModel
(IterableSE<? extends T> entities) 指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。default EntityModel<T>
指定されたエンティティをEntityModel
に変換します。
メソッドの詳細
toModel
指定されたエンティティをEntityModel
に変換します。- 次で指定:
- インターフェース
RepresentationModelAssembler<T,
のEntityModel<T>> toModel
- パラメーター:
entity
-- 戻り値:
addLinks
個々のEntityModel
ごとに追加するリンクを定義します。- パラメーター:
resource
-
toCollectionModel
指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。- 次で指定:
- インターフェース
RepresentationModelAssembler<T,
のEntityModel<T>> toCollectionModel
- パラメーター:
entities
- null であってはなりません。- 戻り値:
T
のEntityModel
を含むCollectionModel
。- 関連事項:
addLinks
CollectionModel
コレクションに追加するリンクを定義します。- パラメーター:
resources
-