Enum Class CaseChangeBehavior
java.lang.Object
java.lang.Enum<CaseChangeBehavior>
com.kingsrook.qqq.backend.core.model.metadata.fields.CaseChangeBehavior
- All Implemented Interfaces:
FieldBehavior<CaseChangeBehavior>
,FieldBehaviorForFrontend
,FieldFilterBehavior<CaseChangeBehavior>
,Serializable
,Comparable<CaseChangeBehavior>
,Constable
public enum CaseChangeBehavior
extends Enum<CaseChangeBehavior>
implements FieldBehavior<CaseChangeBehavior>, FieldBehaviorForFrontend, FieldFilterBehavior<CaseChangeBehavior>
Field behavior that changes the case of string values.
-
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 TypeMethodDescriptionboolean
control if multiple behaviors of this type should be allowed together on a field.void
apply
(ValueBehaviorApplier.Action action, List<QRecord> recordList, QInstance instance, QTableMetaData table, QFieldMetaData field) Apply this behavior to a list of recordsapplyToFilterCriteriaValue
(Serializable value, QInstance instance, QTableMetaData table, QFieldMetaData field) Apply the filter to a value from a criteria.In case a behavior of this type wasn't set on the field, what should the default of this type be?validateBehaviorConfiguration
(QTableMetaData tableMetaData, QFieldMetaData fieldMetaData) allow this behavior to be validated during QInstance validation.static CaseChangeBehavior
Returns the enum constant of this class with the specified name.static CaseChangeBehavior[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
TO_UPPER_CASE
-
TO_LOWER_CASE
-
-
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
-
getDefault
Description copied from interface:FieldBehavior
In case a behavior of this type wasn't set on the field, what should the default of this type be?- Specified by:
getDefault
in interfaceFieldBehavior<CaseChangeBehavior>
-
apply
public void apply(ValueBehaviorApplier.Action action, List<QRecord> recordList, QInstance instance, QTableMetaData table, QFieldMetaData field) Description copied from interface:FieldBehavior
Apply this behavior to a list of records- Specified by:
apply
in interfaceFieldBehavior<CaseChangeBehavior>
-
applyToFilterCriteriaValue
public Serializable applyToFilterCriteriaValue(Serializable value, QInstance instance, QTableMetaData table, QFieldMetaData field) Description copied from interface:FieldFilterBehavior
Apply the filter to a value from a criteria. If you don't want to change the input value, return the parameter.- Specified by:
applyToFilterCriteriaValue
in interfaceFieldFilterBehavior<CaseChangeBehavior>
-
allowMultipleBehaviorsOfThisType
public boolean allowMultipleBehaviorsOfThisType()Description copied from interface:FieldBehavior
control if multiple behaviors of this type should be allowed together on a field.- Specified by:
allowMultipleBehaviorsOfThisType
in interfaceFieldBehavior<CaseChangeBehavior>
-
validateBehaviorConfiguration
public List<String> validateBehaviorConfiguration(QTableMetaData tableMetaData, QFieldMetaData fieldMetaData) Description copied from interface:FieldBehavior
allow this behavior to be validated during QInstance validation. return a list of validation errors, if there are any.- Specified by:
validateBehaviorConfiguration
in interfaceFieldBehavior<CaseChangeBehavior>
-