Interface ModuleResourceResolver
public interface ModuleResourceResolver
An SPI-level interface to find the schema source for a particular YANG module, as packaged in the final artifact.
The module must be part of the current resolution context.
-
Method Summary
Modifier and TypeMethodDescriptionfindModuleResourcePath
(ModuleLike module, Class<? extends SchemaSourceRepresentation> representation) Find the path of the packaged resource which corresponds to the specified module in the specified representation.
-
Method Details
-
findModuleResourcePath
Optional<String> findModuleResourcePath(ModuleLike module, Class<? extends SchemaSourceRepresentation> representation) Find the path of the packaged resource which corresponds to the specified module in the specified representation.- Parameters:
module
- Requested modulerepresentation
- Requested representation- Returns:
- Path to packaged resource
- Throws:
NullPointerException
- if any argument isnull
IllegalArgumentException
- if the requested representation is not supported by this resolver
-
findModuleYangTextResourcePath
-