Package it.tidalwave.role.ui
Interface PresentationModelFactory
-
- 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.
@FunctionalInterface public interface PresentationModelFactory
A factory that creates a defaultPresentationModel
.- Author:
- Fabrizio Giudici
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<PresentationModelFactory>
_PresentationModelFactory_
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PresentationModel
createPresentationModel(java.lang.Object datum)
Creates a new instance ofPresentationModel
.PresentationModel
createPresentationModel(java.lang.Object datum, java.util.Collection<java.lang.Object> roles)
Creates a new instance ofPresentationModel
with some roles or role factories.
-
-
-
Field Detail
-
_PresentationModelFactory_
static final java.lang.Class<PresentationModelFactory> _PresentationModelFactory_
-
-
Method Detail
-
createPresentationModel
@Nonnull PresentationModel createPresentationModel(@Nonnull java.lang.Object datum, @Nonnull java.util.Collection<java.lang.Object> roles)
Creates a new instance ofPresentationModel
with some roles or role factories.- Parameters:
datum
- the related datumroles
- roles orRoleFactory
instances to put in the presentation model- Returns:
- the new instance
- Since:
- 3.2-ALPHA-3 (refactored)
-
createPresentationModel
@Nonnull default PresentationModel createPresentationModel(@Nonnull java.lang.Object datum)
Creates a new instance ofPresentationModel
.- Parameters:
datum
- the related datum- Returns:
- the new instance
- Since:
- 3.2-ALPHA-3
-
-