Class YangNames


  • @Beta
    @NonNullByDefault
    public final class YangNames
    extends Object
    Utility class for handling various naming conventions mentioned in YANG and related specifications.
    Author:
    Robert Varga
    • Method Detail

      • parseFilename

        public static Map.Entry<String,​@Nullable String> parseFilename​(String baseName)
        Parse a file name according to rules outlined in https://tools.ietf.org/html/rfc6020#section-5.2. Input string should be the base path with file extension stripped.
        Parameters:
        baseName - file base name
        Returns:
        A tuple containing the module name and parsed revision, if present.
        Throws:
        NullPointerException - if baseName is null