public interface RuntimeModelRegistry
| Modifier and Type | Method and Description |
|---|---|
default boolean |
acceptingNewImports() |
Collection<String> |
availableModels()
List all models that are currently available.
|
Optional<RuntimeModel> |
get(String id)
Get a previously registered import model.
|
DashbuilderRuntimeMode |
getMode()
Returns the registry mode
|
boolean |
isEmpty()
Returns if this registry has at least one model.
|
Optional<RuntimeModel> |
registerFile(String filePath)
Store the import from a File path;
|
void |
remove(String runtimeModelid)
Removes a runtime model.
|
void |
setMode(DashbuilderRuntimeMode mode)
Sets this runtime mode.
|
Optional<RuntimeModel> |
single()
Returns the first model available.
|
default boolean acceptingNewImports()
Optional<RuntimeModel> single()
boolean isEmpty()
DashbuilderRuntimeMode getMode()
Optional<RuntimeModel> get(String id)
id - void setMode(DashbuilderRuntimeMode mode)
mode - The mode to be used.Optional<RuntimeModel> registerFile(String filePath)
filePath - The path to the file.void remove(String runtimeModelid)
runtimeModelid - The id of the runtime model to be removed.Collection<String> availableModels()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.