Enum BasicCodeGenerator.ImportResolutionMode

    • 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 via REVISION_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 name
        NullPointerException - if the argument is null