Move historyAndStatusFlags()
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / source / PrefixToModule.java
index 076e15fe83c25e6a36f3000f475968f65d20df9f..b425a38230f2e607c268314abdfeaeef137e1273 100644 (file)
@@ -8,51 +8,34 @@
 package org.opendaylight.yangtools.yang.parser.spi.source;
 
 import java.net.URISyntaxException;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
 import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.yangtools.yang.common.QNameModule;
-import org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour;
+import org.opendaylight.yangtools.yang.parser.spi.meta.ParserNamespace;
 
 /**
  * Source-specific mapping of prefixes to namespaces.
  */
-public interface PrefixToModule extends IdentifierNamespace<String, QNameModule> {
+public interface PrefixToModule extends ParserNamespace<String, QNameModule> {
     NamespaceBehaviour<String, QNameModule, @NonNull PrefixToModule> BEHAVIOUR =
             NamespaceBehaviour.global(PrefixToModule.class);
     String DEFAULT_PREFIX = "";
 
     /**
-     * Returns QNameModule (namespace + revision) associated with supplied
-     * prefix.
+     * Returns QNameModule (namespace + revision) associated with supplied prefix.
      *
-     * @param prefix
-     *            Prefix
-     * @return QNameModule associated with supplied prefix, or null if prefix is
-     *         not defined.
+     * @param prefix Prefix
+     * @return QNameModule associated with supplied prefix, or null if prefix is not defined.
      */
-    @Override
-    @Nullable QNameModule get(@Nonnull String prefix);
+    QNameModule get(String prefix);
 
     /**
      * Returns QNameModule (namespace + revision) associated with XML namespace (URI).
      *
-     * @param namespace
-     *            XML Namespace
-     * @return QNameModule associated with supplied namespace, or null if prefix
-     *         is not defined.
+     * @param namespace XML Namespace
+     * @return QNameModule associated with supplied namespace, or null if prefix is not defined.
      * @throws URISyntaxException if the input string is not valid URI
      */
     @Nullable QNameModule getByNamespace(String namespace) throws URISyntaxException;
-
-    /**
-     * Pre-linkage map does not consider revision-dates of modules and it contains module namespaces only.
-     *
-     * @return true if it is the pre-linkage map.
-     *
-     * @deprecated This property is bound to the currently-executing stage and so should be statically-wired.
-     */
-    @Deprecated
-    boolean isPreLinkageMap();
 }