Package com.adobe.granite.ui.components
Enum FormData.NameNotFoundMode
- All Implemented Interfaces:
Serializable,Comparable<FormData.NameNotFoundMode>,java.lang.constant.Constable
- Enclosing class:
FormData
The mode on how to handle the scenario when the FormData doesn't have an
entry of a certain name.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen the FormData doesn't have an entry of a certain name, if the FormData is fresh then the value configured at the field is used instead, otherwise (it's not fresh) the value is taken from the FormData as usual, which will returnnull.When the FormData doesn't have an entry of a certain name, then the value configured at the field is used instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormData.NameNotFoundModeReturns the enum constant of this type with the specified name.static FormData.NameNotFoundMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CHECK_FRESHNESS
When the FormData doesn't have an entry of a certain name, if the FormData is fresh then the value configured at the field is used instead, otherwise (it's not fresh) the value is taken from the FormData as usual, which will returnnull.The form is fresh when
jcr:createdproperty has equal value to the last modified property's value (taken from eitherjcr:lastModifiedorcq:lastModified). If either created or last modified date is not available, it is not considered as fresh.This mode is usually used for Authoring dialogs.
-
IGNORE_FRESHNESS
When the FormData doesn't have an entry of a certain name, then the value configured at the field is used instead.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-