Interface FilterConverter<C extends FilterComponent,M extends FilterCondition>

Type Parameters:
C - UI filter component type
M - model type
All Known Implementing Classes:
AbstractFilterComponentConverter, FullTextFilterConverter, GroupFilterConverter, JpqlFilterConverter, PropertyFilterConverter

public interface FilterConverter<C extends FilterComponent,M extends FilterCondition>
Converts between a UI filter component and model classes.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an instance of the UI filter component whose state was retrieved from the model.
    convertToModel(C component)
    Returns an instance of model whose state was retrieved from the UI filter component.
  • Method Details

    • convertToComponent

      C convertToComponent(M model)
      Returns an instance of the UI filter component whose state was retrieved from the model.
      Parameters:
      model - a model instance
      Returns:
      an instance of the UI filter component
    • convertToModel

      M convertToModel(C component)
      Returns an instance of model whose state was retrieved from the UI filter component.
      Parameters:
      component - a filter component instance
      Returns:
      a model instance