Deprecate YangConstants.RFC7950_YANG_LIBRARY_CAPABILITY 97/105997/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 16 May 2023 17:15:45 +0000 (19:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 16 May 2023 18:37:59 +0000 (20:37 +0200)
This capability, in proper String format is hosted in the NETCONF
project, which is its proper place. Deprecate the constatnt for removal.

Change-Id: Ibfd87395354f8a88d5e4a25229a65564530d826d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangConstants.java

index 565b06bdadcfdf49121b8b157020aa783b773022..433b82bc7a01ddf495db1bc9c7b222af2128e9c9 100644 (file)
@@ -20,93 +20,79 @@ public final class YangConstants {
      * YANG File Extension, as defined in <a href="https://tools.ietf.org/html/rfc6020#section-14.1">RFC6020</a>.
      */
     public static final String RFC6020_YANG_FILE_EXTENSION = ".yang";
-
     /**
      * YANG Media Type, as defined in <a href="https://tools.ietf.org/html/rfc6020#section-14.1">RFC6020</a>.
      */
     public static final String RFC6020_YANG_MAC_FILE_TYPE = "TEXT";
-
-
     /**
      * YANG Media Type, as defined in h<a href="https://tools.ietf.org/html/rfc6020#section-14.1">RFC6020</a>.
      */
     public static final String RFC6020_YANG_MEDIA_TYPE = "application/yang";
-
     /**
      * YANG namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in String format.
      */
     public static final String RFC6020_YANG_NAMESPACE_STRING = "urn:ietf:params:xml:ns:yang:1";
-
     /**
      * YANG namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in URI format.
      */
     public static final XMLNamespace RFC6020_YANG_NAMESPACE = XMLNamespace.of(RFC6020_YANG_NAMESPACE_STRING).intern();
-
     /**
      * Base QNameModule for all YANG statements.
      */
     public static final QNameModule RFC6020_YANG_MODULE = QNameModule.create(RFC6020_YANG_NAMESPACE).intern();
-
     /**
      * YIN File Extension, as defined in <a href="https://tools.ietf.org/html/rfc6020#section-14.2">RFC6020</a>.
      */
     public static final String RFC6020_YIN_FILE_EXTENSION = ".yin";
-
     /**
      * YANG Media Type, as defined in <a href="https://tools.ietf.org/html/rfc6020#section-14.1">RFC6020</a>.
      */
     public static final String RFC6020_MAC_FILE_TYPE = "TEXT";
-
     /**
      * YANG Media Type, as defined in <a href="https://tools.ietf.org/html/rfc6020#section-14.2">RFC6020</a>.
      */
     public static final String RFC6020_YIN_MEDIA_TYPE = "application/yin+xml";
-
     /**
      * YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in String format.
      */
     public static final String RFC6020_YIN_NAMESPACE_STRING = "urn:ietf:params:xml:ns:yang:yin:1";
-
     /**
      * YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in URI format.
      */
     public static final XMLNamespace RFC6020_YIN_NAMESPACE = XMLNamespace.of(RFC6020_YIN_NAMESPACE_STRING).intern();
-
     /**
      * Base QNameModule for all YIN statements.
      */
     public static final QNameModule RFC6020_YIN_MODULE = QNameModule.create(RFC6020_YIN_NAMESPACE).intern();
-
     /**
      * YANG Library NETCONF Capability, as defined in https://tools.ietf.org/html/rfc7950#section-16.
+     *
+     * @deprecated This constant is deprecated. Its replacement is
+     *             {@code org.opendaylight.netconf.api.CapabilityURN.YANG_LIBRARY}.
      */
+    @Deprecated(since = "10.0.7", forRemoval = true)
     public static final URI RFC7950_YANG_LIBRARY_CAPABILITY =
         URI.create("urn:ietf:params:netconf:capability:yang-library:1.0");
-
     /**
      * Prefix for YANG-specific XPath functions.
      */
     public static final String YANG_XPATH_FUNCTIONS_PREFIX = "yang";
-
     /**
      * NETCONF protocol elements' namespace, as defined in
      * <a href="https://datatracker.ietf.org/doc/html/rfc4741#section-3.1">RFC4741 section 3.1</a>, in String format.
      */
     public static final String NETCONF_NAMESPACE_STRING = "urn:ietf:params:xml:ns:netconf:base:1.0";
-
     /**
      * NETCONF protocol elements' namespace, as defined in
      * <a href="https://datatracker.ietf.org/doc/html/rfc4741#section-3.1">RFC4741 section 3.1</a>, in String format.
      */
     public static final XMLNamespace NETCONF_NAMESPACE = XMLNamespace.of(NETCONF_NAMESPACE_STRING).intern();
-
     /**
      * NETCONF namespace bound to YANG through
      * <a href="https://datatracker.ietf.org/doc/html/rfc6241#section-10.3">ietf-netconf@2011-06-01.yang</a>.
      */
     public static final QNameModule RFC6241_YANG_MODULE =
         QNameModule.create(NETCONF_NAMESPACE, Revision.of("2011-06-01")).intern();
-
     /**
      * {@code bad-attribute}, value is the name of the attribute.
      */