Enum Class FormContentType
- All Implemented Interfaces:
Serializable,Comparable<FormContentType>,Constable
Defines the valid content types for the
formContentType field in PBFormActionContent.
This enumeration provides a type-safe way to reference the different content types that can be associated with form actions, such as notifications, delays, alerts, and messages.
- Since:
- 1.0
- Author:
- Bonitasoft
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContent type for alert-related form actions.Content type for delay-related form actions.Content type for message-related form actions.Content type for notification-related form actions. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all form content types as a read-only Map where the key is the technical key and the value is the description.Retrieves all technical keys as a read-only List of Strings.Returns the description of this content type.getKey()Returns the unique string key associated with this content type.static booleanChecks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.static FormContentTypeReturns the enum constant of this class with the specified name.static FormContentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTIFICATIONS
Content type for notification-related form actions.Used when the form action involves sending notifications to users or groups.
-
DELAY
Content type for delay-related form actions.Used when the form action involves scheduling or delaying an operation.
-
ALERT
Content type for alert-related form actions.Used when the form action involves displaying alerts or warnings to users.
-
MESSAGE
Content type for message-related form actions.Used when the form action involves sending or displaying messages.
-
-
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
-
getKey
Returns the unique string key associated with this content type.- Returns:
- The content type key (e.g., "notifications", "delay").
-
getDescription
Returns the description of this content type.- Returns:
- The human-readable description.
-
isValid
Checks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.- Parameters:
input- The string to validate.- Returns:
trueif the string is a valid enum constant name,falseotherwise.
-
getAllData
Retrieves all form content types as a read-only Map where the key is the technical key and the value is the description.- Returns:
- An unmodifiable map containing all content type data (Key -> Description).
-
getAllKeysList
Retrieves all technical keys as a read-only List of Strings.- Returns:
- An unmodifiable list containing all content type keys.
-