Class YangLibraryConstants


  • @Beta
    @NonNullByDefault
    public final class YangLibraryConstants
    extends Object
    Constants related to ietf-yang-library.yang. As schema-mount works in concert with yang-library, we need these constants to interpret correctly categorize incoming data and present them to schema resolution process.

    While RFC7895 and RFC8525 are not strictly required by YANG, RFC7950 contains a weak reference to it when dealing with capability negotiation on protocol layers. Moreover RFC8528 makes it explicit that an instance of yang-library is mounted underneath both inline and shared-schema types of mount.

    While we could mandate use of either RFC7895 or RFC8525 across the board, this is not feasible, as mount points may be nested and point to external systems -- hence it is completely possible to encounter both old and new information in a single mount point tree.

    • Field Detail

      • MODULE_NAMESPACE

        public static final URI MODULE_NAMESPACE
        The namespace assigned to ietf-yang-library. This constant is required for XML-like parsers, using XML namespaces to reference modules.
      • MODULE_NAME

        public static final String MODULE_NAME
        The module name assigned to ietf-yang-library. This constant is required for JSON-like parsers, using module names to reference modules.
        See Also:
        Constant Field Values