@@ -0,0 +1,2616 @@
+/*%0A * Copyright (c) 2019 PANTHEON.tech s.r.o. and others. All rights reserved.%0A *%0A * This program and the accompanying materials are made available under the%0A * terms of the Eclipse Public License v1.0 which accompanies this distribution,%0A * and is available at http://www.eclipse.org/legal/epl-v10.html%0A */%0Apackage org.opendaylight.yangtools.rfc8528.model.api;%0A%0Aimport static java.util.Objects.requireNonNull;%0A%0Aimport com.google.common.annotations.Beta;%0Aimport java.net.URI;%0Aimport org.eclipse.jdt.annotation.NonNullByDefault;%0A%0A/**%0A * Constants related to %7B@code ietf-yang-library.yang%7D. As schema-mount works in concert with yang-library, we need%0A * these constants to interpret correctly categorize incoming data and present them to schema resolution process.%0A *%0A * %3Cp%3E%0A * While RFC7895 and RFC8525 are not strictly required by YANG, RFC7950 contains a weak reference to it when dealing%0A * with capability negotiation on protocol layers. Moreover RFC8528 makes it explicit that an instance of yang-library%0A * is mounted underneath both %7B@code inline%7D and %7B@code shared-schema%7D types of mount.%0A *%0A * %3Cp%3E%0A * While we could mandate use of either RFC7895 or RFC8525 across the board, this is not feasible, as mount points may%0A * be nested and point to external systems -- hence it is completely possible to encounter both old and new information%0A * in a single mount point tree.%0A */%0A@Beta%0A@NonNullByDefault%0Apublic final class YangLibraryConstants %7B%0A    /**%0A     * The namespace assigned to %7B@code ietf-yang-library%7D. This constant is required for XML-like parsers, using%0A     * XML namespaces to reference modules.%0A     */%0A    public static final URI MODULE_NAMESPACE = URI.create(%22urn:ietf:params:xml:ns:yang:ietf-yang-library%22);%0A    /**%0A     * The module name assigned to %7B@code ietf-yang-library%7D. This constant is required for JSON-like parsers, using%0A     * module names to reference modules.%0A     */%0A    public static final String MODULE_NAME = %22ietf-yang-library%22;%0A%0A    /**%0A     * Top-level containers which hold YANG Library information.%0A     */%0A    public enum ContainerName %7B%0A        /**%0A         * Container in RFC7895 (pre-NMDA) YANG Library.%0A         */%0A        RFC7895(%22modules-state%22),%0A        /**%0A         * Container in RFC8525 (NMDA) YANG Library.%0A         */%0A        RFC8525(%22yang-library%22);%0A%0A        private final String localName;%0A%0A        ContainerName(final String localName) %7B%0A            this.localName = requireNonNull(localName);%0A        %7D%0A%0A        public String getLocalName() %7B%0A            return localName;%0A        %7D%0A    %7D%0A%0A    private YangLibraryConstants() %7B%0A        // Hidden%0A    %7D%0A%7D%0A

Add YangLibraryConstants