Enum BasicCodeGenerator.ImportResolutionMode
- java.lang.Object
-
- java.lang.Enum<BasicCodeGenerator.ImportResolutionMode>
-
- org.opendaylight.yangtools.yang2sources.spi.BasicCodeGenerator.ImportResolutionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<BasicCodeGenerator.ImportResolutionMode>
- Enclosing interface:
- BasicCodeGenerator
public static enum BasicCodeGenerator.ImportResolutionMode extends Enum<BasicCodeGenerator.ImportResolutionMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REVISION_EXACT_OR_LATEST
Standard, RFC6020 and RFC7950 compliant mode.SEMVER_LATEST
Deprecated, for removal: This API element is subject to removal in a future version.This mode has no users and is deprecated for removal.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull FileGenerator.ImportResolutionMode
toFileGeneratorMode()
ReturnFileGenerator.ImportResolutionMode
equivalent of this mode.static BasicCodeGenerator.ImportResolutionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static BasicCodeGenerator.ImportResolutionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REVISION_EXACT_OR_LATEST
public static final BasicCodeGenerator.ImportResolutionMode REVISION_EXACT_OR_LATEST
Standard, RFC6020 and RFC7950 compliant mode. Imports are satisfied by exact revision match (if specified), or by latest available revision.
-
SEMVER_LATEST
@Deprecated(forRemoval=true, since="8.0.4") public static final BasicCodeGenerator.ImportResolutionMode SEMVER_LATEST
Deprecated, for removal: This API element is subject to removal in a future version.This mode has no users and is deprecated for removal.Semantic version based mode. Imports which specify a semantic version (via the OpenConfig extension) will be satisfied by module which exports the latest compatible revision. Imports which do not specify semantic version will be resolved just as they would be viaREVISION_EXACT_OR_LATEST
.
-
-
Method Detail
-
values
public static BasicCodeGenerator.ImportResolutionMode[] 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 (BasicCodeGenerator.ImportResolutionMode c : BasicCodeGenerator.ImportResolutionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicCodeGenerator.ImportResolutionMode 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
-
toFileGeneratorMode
public final @NonNull FileGenerator.ImportResolutionMode toFileGeneratorMode()
ReturnFileGenerator.ImportResolutionMode
equivalent of this mode.- Returns:
FileGenerator.ImportResolutionMode
equivalent of this mode
-
-