Interface EntityApplicationModel.EntityModels<M extends EntityModel<M,E,T>,E extends EntityEditModel,T extends EntityTableModel<E>>

Type Parameters:
M - the type of EntityModel this application model is based on
E - the type of EntityEditModel used by this EntityModel
T - the type of EntityTableModel used by this EntityModel
Enclosing interface:
EntityApplicationModel<M extends EntityModel<M,E,T>,E extends EntityEditModel,T extends EntityTableModel<E>>

public static interface EntityApplicationModel.EntityModels<M extends EntityModel<M,E,T>,E extends EntityEditModel,T extends EntityTableModel<E>>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(M entityModel)
    Adds the given entity model to this model
    void
    add(M... entityModels)
    Adds the given entity models to this model.
    boolean
    contains(EntityType entityType)
     
    boolean
    contains(Class<? extends M> modelClass)
     
    boolean
    contains(M entityModel)
     
    get()
     
    <C extends M>
    C
    get(EntityType entityType)
     
    <C extends M>
    C
    get(Class<C> modelClass)
     
  • Method Details

    • add

      void add(M... entityModels)
      Adds the given entity models to this model.
      Parameters:
      entityModels - the entity models to add
      Throws:
      IllegalArgumentException - in case any of the models has already been added
    • add

      void add(M entityModel)
      Adds the given entity model to this model
      Parameters:
      entityModel - the detail model
      Throws:
      IllegalArgumentException - in case the model has already been added
    • contains

      boolean contains(Class<? extends M> modelClass)
      Parameters:
      modelClass - the application model class
      Returns:
      true if this model contains a EntityModel instance of the given class
    • contains

      boolean contains(EntityType entityType)
      Parameters:
      entityType - the entityType
      Returns:
      true if this model contains a EntityModel for the given entityType
    • contains

      boolean contains(M entityModel)
      Parameters:
      entityModel - the entity model
      Returns:
      true if this model contains the given EntityModel
    • get

      List<M> get()
      Returns:
      an unmodifiable List containing the EntityModel instances contained in this EntityApplicationModel
    • get

      <C extends M> C get(Class<C> modelClass)
      Type Parameters:
      C - the model type
      Parameters:
      modelClass - the model class
      Returns:
      the EntityModel of the given type
    • get

      <C extends M> C get(EntityType entityType)
      Type Parameters:
      C - the model type
      Parameters:
      entityType - the entityType
      Returns:
      the EntityModel based on the given entityType