java.lang.Object
java.lang.Enum<BdoWindowType>
de.seggebaeing.sqlanalyzer.presentation.util.BdoWindowType
All Implemented Interfaces:
WindowType, Serializable, Comparable<BdoWindowType>, Constable

public enum BdoWindowType extends Enum<BdoWindowType> implements WindowType
Enumerates details-window types for BDOs and their associated FXML base names. For each enum constant, both an Overview window and a Details window exist in the UI. Implements WindowType to supply getFxmlName(), and provides getForType(Class) to resolve a window type from a concrete domain class.
Since:
1.0
Author:
Felix Seggebäing
  • Enum Constant Details

  • Method Details

    • values

      public static BdoWindowType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BdoWindowType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFxmlName

      public String getFxmlName()
      Returns the base FXML resource name associated with this BDO window type, without path or extension handling.
      Specified by:
      getFxmlName in interface WindowType
      Returns:
      the FXML file name
    • getForType

      public static BdoWindowType getForType(Class<?> clazz)
      Resolves the BdoWindowType for a given BDO class. Supports the concrete types SampleQuery, PromptType, LLM, Prompt, and GeneratedQuery.
      Parameters:
      clazz - the domain class to resolve; must be a subtype of BusinessDomainObject
      Returns:
      the matching BdoWindowType
      Throws:
      IllegalArgumentException - if clazz is not a BDO type or has no mapping