-
- All Implemented Interfaces:
-
org.jetbrains.kotlinx.jupyter.api.libraries.VariablesSubstitutionAware
public final class LibraryResource implements VariablesSubstitutionAware<LibraryResource>
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ResourceFallbacksBundle>bundlesprivate final ResourceTypetypeprivate final Stringname
-
Constructor Summary
Constructors Constructor Description LibraryResource(List<ResourceFallbacksBundle> bundles, ResourceType type, String name)
-
Method Summary
Modifier and Type Method Description LibraryResourcereplaceVariables(Map<String, String> mapping)Replace variables and return the result. final List<ResourceFallbacksBundle>component1()final ResourceTypecomponent2()final Stringcomponent3()final LibraryResourcecopy(List<ResourceFallbacksBundle> bundles, ResourceType type, String name)final List<ResourceFallbacksBundle>getBundles()final ResourceTypegetType()final StringgetName()-
-
Constructor Detail
-
LibraryResource
LibraryResource(List<ResourceFallbacksBundle> bundles, ResourceType type, String name)
-
-
Method Detail
-
replaceVariables
LibraryResource replaceVariables(Map<String, String> mapping)
Replace variables and return the result.
- Parameters:
mapping- maps variables names to their values
-
component1
final List<ResourceFallbacksBundle> component1()
-
component2
final ResourceType component2()
-
component3
final String component3()
-
copy
final LibraryResource copy(List<ResourceFallbacksBundle> bundles, ResourceType type, String name)
-
getBundles
final List<ResourceFallbacksBundle> getBundles()
-
getType
final ResourceType getType()
-
-
-
-