Class DetailViewTypeExtractor

java.lang.Object
io.jmix.flowui.view.DetailViewTypeExtractor

public final class DetailViewTypeExtractor extends Object
The utility class designed to extract the entity class type associated with a DetailView.
  • Method Details

    • extractEntityClass

      public static Optional<Class<?>> extractEntityClass(ViewInfo viewInfo)
      Extracts the entity class type associated with the given ViewInfo.
      Parameters:
      viewInfo - the ViewInfo instance containing information about the view controller
      Returns:
      an Optional containing the entity class if it can be resolved, otherwise, an empty Optional
    • extractEntityClass

      public static Optional<Class<?>> extractEntityClass(Class<? extends View> viewClass)
      Extracts the entity class type associated with the given view class.
      Parameters:
      viewClass - the class of the view
      Returns:
      an Optional containing the entity class if it can be resolved, otherwise, an empty Optional