Add generalized FileGenerator interface
[yangtools.git] / yang / yang-maven-plugin-spi / src / main / java / org / opendaylight / yangtools / yang2sources / spi / ModuleResourceResolver.java
index d1e0c5b82f5b2c8bad2f8dfa9a5c7a030fbc4e73..62af2042b52a65c1ebd7eb5a22b48c2dd1410747 100644 (file)
@@ -8,9 +8,7 @@
 package org.opendaylight.yangtools.yang2sources.spi;
 
 import com.google.common.annotations.Beta;
-import java.util.Optional;
-import org.opendaylight.yangtools.yang.model.api.ModuleLike;
-import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 
 /**
  * An SPI-level interface to find the schema source for a particular YANG module, as packaged in the final artifact.
@@ -18,16 +16,7 @@ import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation
  */
 @Beta
 @FunctionalInterface
-public interface ModuleResourceResolver {
-    /**
-     * Find the path of the packaged resource which corresponds to the specified module in the specified representation.
-     *
-     * @param module Requested module
-     * @param representation Requested representation
-     * @return Path to packaged resource
-     * @throws NullPointerException if any argument is null
-     * @throws IllegalArgumentException if the requested representation is not supported by this resolver
-     */
-    Optional<String> findModuleResourcePath(ModuleLike module,
-        Class<? extends SchemaSourceRepresentation> representation);
+@SuppressFBWarnings(value = "NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification = "Migration to new place")
+public interface ModuleResourceResolver extends org.opendaylight.yangtools.plugin.generator.api.ModuleResourceResolver {
+
 }