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 default PresentationModel.
    Author:
    Fabrizio Giudici
    • Method Detail

      • createPresentationModel

        @Nonnull
        PresentationModel createPresentationModel​(@Nonnull
                                                  java.lang.Object datum,
                                                  @Nonnull
                                                  java.util.Collection<java.lang.Object> roles)
        Creates a new instance of PresentationModel with some roles or role factories.
        Parameters:
        datum - the related datum
        roles - roles or RoleFactory 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 of PresentationModel.
        Parameters:
        datum - the related datum
        Returns:
        the new instance
        Since:
        3.2-ALPHA-3