Interface ModuleResourceResolver
-
- All Known Subinterfaces:
ModuleResourceResolver
@Beta 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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.default Optional<String>
findModuleYangTextResourcePath(ModuleLike module)
-
-
-
Method Detail
-
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 is nullIllegalArgumentException
- if the requested representation is not supported by this resolver
-
findModuleYangTextResourcePath
default Optional<String> findModuleYangTextResourcePath(ModuleLike module)
-
-