- All Known Implementing Classes:
DefaultPresentationModelFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory that creates a default
PresentationModel.- Since:
- 2.0-ALPHA-1
- Author:
- Fabrizio Giudici
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault PresentationModelcreatePresentationModel(Object datum) Creates a new instance ofPresentationModel.createPresentationModel(Object datum, Collection<Object> roles) Creates a new instance ofPresentationModelwith some roles or role factories.
-
Field Details
-
_PresentationModelFactory_
Shortcut forAs.
-
-
Method Details
-
createPresentationModel
@Nonnull PresentationModel createPresentationModel(@Nonnull Object datum, @Nonnull Collection<Object> roles) Creates a new instance ofPresentationModelwith some roles or role factories.- Parameters:
datum- the related datumroles- roles orRoleFactoryinstances to put in the presentation model- Returns:
- the new instance
- Since:
- 3.2-ALPHA-3 (refactored)
-
createPresentationModel
Creates a new instance ofPresentationModel.- Parameters:
datum- the related datum- Returns:
- the new instance
- Since:
- 3.2-ALPHA-3
-