Enum GeneratedFileLifecycle
- java.lang.Object
-
- java.lang.Enum<GeneratedFileLifecycle>
-
- org.opendaylight.yangtools.plugin.generator.api.GeneratedFileLifecycle
-
- All Implemented Interfaces:
Serializable
,Comparable<GeneratedFileLifecycle>
@Beta @NonNullByDefault public enum GeneratedFileLifecycle extends Enum<GeneratedFileLifecycle>
Lifecycle policy of a generated file. This governs how existing files interact with newly-generated bodies.- Author:
- Robert Varga
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PERSISTENT
Generated file should be persistent and potentially customized.TRANSIENT
Generated file should be transient and is not expected to be further modified.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeneratedFileLifecycle
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeneratedFileLifecycle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSIENT
public static final GeneratedFileLifecycle TRANSIENT
Generated file should be transient and is not expected to be further modified.
-
PERSISTENT
public static final GeneratedFileLifecycle PERSISTENT
Generated file should be persistent and potentially customized. It should not be overwritten if it already exists.
-
-
Method Detail
-
values
public static GeneratedFileLifecycle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GeneratedFileLifecycle c : GeneratedFileLifecycle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeneratedFileLifecycle valueOf(String name)
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
-
-