Enum Class JsonMetaDataRenderMode
java.lang.Object
java.lang.Enum<JsonMetaDataRenderMode>
de.espirit.firstspirit.generate.functions.json.JsonMetaDataRenderMode
- All Implemented Interfaces:
Serializable
,Comparable<JsonMetaDataRenderMode>
,Constable
Controls rendering of
meta data
in the output json.- Since:
- 5.2.250404
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRenders meta data that is defined in the store elementRenders meta data that is defined in the store element and meta data that is inherited from the store element's parentsIntelligent field-based meta data rendering: renders inherited meta data only if it hasn't appeared in the json node before This is used to limit redundancy.Intelligent element-based meta data rendering: renders inherited meta data only if it hasn't appeared in the json node before This is used to limit redundancy.No meta data is rendered -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull JsonMetaDataRenderMode
Gets aJsonMetaDataRenderMode
from the given stringstatic JsonMetaDataRenderMode
Returns the enum constant of this class with the specified name.static JsonMetaDataRenderMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No meta data is rendered- Since:
- 5.2.250404
-
IF_DEFINED
Renders meta data that is defined in the store element- Since:
- 5.2.250404
-
INHERITED_OR_DEFINED
Renders meta data that is defined in the store element and meta data that is inherited from the store element's parents- Since:
- 5.2.250404
-
INTELLIGENT
Intelligent field-based meta data rendering: renders inherited meta data only if it hasn't appeared in the json node before This is used to limit redundancy. Meta data is inherited on a per-field basis- Since:
- 5.2.250404
-
INTELLIGENT_CAAS
Intelligent element-based meta data rendering: renders inherited meta data only if it hasn't appeared in the json node before This is used to limit redundancy. Meta data is inherited on a per-element basis.- Since:
- 5.2.250404
-
-
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
-
from
Gets aJsonMetaDataRenderMode
from the given string- Parameters:
value
- The name of theJsonMetaDataRenderMode
- Returns:
- The
JsonMetaDataRenderMode
- Throws:
IllegalArgumentException
- If the name is not recognized- Since:
- 5.2.250404
-