Enum Class RuleSerializer.RuleSerializationOption
java.lang.Object
java.lang.Enum<RuleSerializer.RuleSerializationOption>
org.openhab.core.automation.converter.RuleSerializer.RuleSerializationOption
- All Implemented Interfaces:
Serializable,Comparable<RuleSerializer.RuleSerializationOption>,Constable
- Enclosing interface:
RuleSerializer
public static enum RuleSerializer.RuleSerializationOption
extends Enum<RuleSerializer.RuleSerializationOption>
An enum representing the different rule serialization options.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEverything is serialized, including empty collectionsEmpty collections and normally irrelevant fields are hiddenTemplate information is stripped, otherwise likeNORMALOnly the fields required in a rule stub to be used with a template is serialized -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable RuleSerializer.RuleSerializationOptionfromString(@Nullable String id) toString()Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Empty collections and normally irrelevant fields are hidden -
INCLUDE_ALL
Everything is serialized, including empty collections -
STUB_ONLY
Only the fields required in a rule stub to be used with a template is serialized -
STRIP_TEMPLATE
Template information is stripped, otherwise likeNORMAL
-
-
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
-
toString
- Overrides:
toStringin classEnum<RuleSerializer.RuleSerializationOption>
-
fromString
-