Module de.seggebaeing.sqlanalyzer
Enum Class BdoWindowType
- All Implemented Interfaces:
WindowType
,Serializable
,Comparable<BdoWindowType>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BdoWindowType
getForType
(Class<?> clazz) Resolves theBdoWindowType
for a given BDO class.Returns the base FXML resource name associated with this BDO window type, without path or extension handling.static BdoWindowType
Returns the enum constant of this class with the specified name.static BdoWindowType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SAMPLE_QUERY
-
PROMPT_TYPE
-
LLM
-
PROMPT
-
GENERATED_QUERY
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getFxmlName
Returns the base FXML resource name associated with this BDO window type, without path or extension handling.- Specified by:
getFxmlName
in interfaceWindowType
- Returns:
- the FXML file name
-
getForType
Resolves theBdoWindowType
for a given BDO class. Supports the concrete typesSampleQuery
,PromptType
,LLM
,Prompt
, andGeneratedQuery
.- Parameters:
clazz
- the domain class to resolve; must be a subtype ofBusinessDomainObject
- Returns:
- the matching
BdoWindowType
- Throws:
IllegalArgumentException
- ifclazz
is not a BDO type or has no mapping
-