Do not provide SourceIdentifiers from extensions
[yangtools.git] / model / rfc6241-model-api / src / main / java / org / opendaylight / yangtools / rfc6241 / model / api / NetconfConstants.java
index 031f9836f71f96edbd12145b70ac094acce16c95..08fbc4f2479f1ad8ddd10c59d3df5b4ba59f6f61 100644 (file)
@@ -7,24 +7,21 @@
  */
 package org.opendaylight.yangtools.rfc6241.model.api;
 
-import com.google.common.collect.ImmutableList;
-import java.util.Collection;
 import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.common.Revision;
 import org.opendaylight.yangtools.yang.common.UnresolvedQName.Unqualified;
 import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 
 /**
  * Constants associated with RFC6241.
  */
 @NonNullByDefault
 public final class NetconfConstants {
-    private static final Unqualified MODULE_NAME = Unqualified.of("ietf-netconf").intern();
-    private static final XMLNamespace MODULE_NAMESPACE =
+    public static final Unqualified MODULE_NAME = Unqualified.of("ietf-netconf").intern();
+    public static final XMLNamespace MODULE_NAMESPACE =
         XMLNamespace.of("urn:ietf:params:xml:ns:netconf:base:1.0").intern();
-    private static final Revision RFC6241_REVISION = Revision.of("2011-06-01");
+    public static final Revision RFC6241_REVISION = Revision.of("2011-06-01");
 
     /**
      * Runtime RFC6241 identity.
@@ -32,25 +29,11 @@ public final class NetconfConstants {
     public static final QNameModule RFC6241_MODULE = QNameModule.create(MODULE_NAMESPACE, RFC6241_REVISION).intern();
 
     /**
-     * RFC6241 model source name.
-     */
-    public static final SourceIdentifier RFC6241_SOURCE = new SourceIdentifier(MODULE_NAME, RFC6241_REVISION);
-
-    /**
-     * Normative prefix to use when importing {@link #RFC6241_SOURCE}.
+     * Normative prefix to use when importing {@link #MODULE_NAME}.
      */
     public static final String MODULE_PREFIX = "nc";
 
     private NetconfConstants() {
         // Hidden on purpose
     }
-
-    /**
-     * Return identifiers of all sources known to define NACM extension.
-     *
-     * @return Collection of identifiers.
-     */
-    public static Collection<SourceIdentifier> knownModelSources() {
-        return ImmutableList.of(RFC6241_SOURCE);
-    }
 }