Package org.openhab.core.transform
Interface TransformationConfigurationRegistry
-
- All Superinterfaces:
Registry<TransformationConfiguration,String>
@NonNullByDefault public interface TransformationConfigurationRegistry extends Registry<TransformationConfiguration,String>
TheTransformationConfigurationRegistry
is the interface for the transformation configuration registry- Author:
- Jan N. Klug - Initial contribution
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
CONFIG_UID_PATTERN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable TransformationConfiguration
get(String uid, @Nullable Locale locale)
Get a localized version of the configuration for a given UIDCollection<TransformationConfiguration>
getConfigurations(Collection<String> types)
Get all configurations which match the given types-
Methods inherited from interface org.openhab.core.common.registry.Registry
add, addRegistryChangeListener, get, getAll, remove, removeRegistryChangeListener, stream, update
-
-
-
-
Field Detail
-
CONFIG_UID_PATTERN
static final Pattern CONFIG_UID_PATTERN
-
-
Method Detail
-
get
@Nullable TransformationConfiguration get(String uid, @Nullable Locale locale)
Get a localized version of the configuration for a given UID- Parameters:
uid
- the configuration UIDlocale
- a locale (system locale is used ifnull
)- Returns:
- the requested
TransformationConfiguration
(ornull
if not found).
-
getConfigurations
Collection<TransformationConfiguration> getConfigurations(Collection<String> types)
Get all configurations which match the given types- Parameters:
types
- aCollection
of configuration types- Returns:
- a
Collection
ofTransformationConfiguration
s
-
-