test_class.declarator: configStatusService
test_class.modifier: private
test_class.original_string: private ConfigStatusService configStatusService;
test_class.type: ConfigStatusService
test_class.var_name: configStatusService
test_class.declarator: ENTITY_ID1 = "entity1"
test_class.modifier: private static final
test_class.original_string: private static final String ENTITY_ID1 = "entity1";
test_class.type: String
test_class.var_name: ENTITY_ID1
test_class.declarator: ENTITY_ID2 = "entity2"
test_class.modifier: private static final
test_class.original_string: private static final String ENTITY_ID2 = "entity2";
test_class.type: String
test_class.var_name: ENTITY_ID2
test_class.declarator: LOCALE_DE = new Locale("de")
test_class.modifier: private static final
test_class.original_string: private static final Locale LOCALE_DE = new Locale("de");
test_class.type: Locale
test_class.var_name: LOCALE_DE
test_class.declarator: LOCALE_EN = new Locale("en")
test_class.modifier: private static final
test_class.original_string: private static final Locale LOCALE_EN = new Locale("en");
test_class.type: Locale
test_class.var_name: LOCALE_EN
test_class.declarator: PARAM1 = "param1"
test_class.modifier: private static final
test_class.original_string: private static final String PARAM1 = "param1";
test_class.type: String
test_class.var_name: PARAM1
test_class.declarator: PARAM2 = "param2"
test_class.modifier: private static final
test_class.original_string: private static final String PARAM2 = "param2";
test_class.type: String
test_class.var_name: PARAM2
test_class.declarator: PARAM3 = "param3"
test_class.modifier: private static final
test_class.original_string: private static final String PARAM3 = "param3";
test_class.type: String
test_class.var_name: PARAM3
test_class.declarator: MSG_KEY1 = "msg1"
test_class.modifier: private static final
test_class.original_string: private static final String MSG_KEY1 = "msg1";
test_class.type: String
test_class.var_name: MSG_KEY1
test_class.declarator: MSG_KEY2 = "msg2"
test_class.modifier: private static final
test_class.original_string: private static final String MSG_KEY2 = "msg2";
test_class.type: String
test_class.var_name: MSG_KEY2
test_class.declarator: MSG_KEY3 = "msg3"
test_class.modifier: private static final
test_class.original_string: private static final String MSG_KEY3 = "msg3";
test_class.type: String
test_class.var_name: MSG_KEY3
test_class.declarator: MSG1_DE = "German 1"
test_class.modifier: private static final
test_class.original_string: private static final String MSG1_DE = "German 1";
test_class.type: String
test_class.var_name: MSG1_DE
test_class.declarator: MSG2_DE = "German 2 - {0}"
test_class.modifier: private static final
test_class.original_string: private static final String MSG2_DE = "German 2 - {0}";
test_class.type: String
test_class.var_name: MSG2_DE
test_class.declarator: MSG3_DE = "German 3 - {0}"
test_class.modifier: private static final
test_class.original_string: private static final String MSG3_DE = "German 3 - {0}";
test_class.type: String
test_class.var_name: MSG3_DE
test_class.declarator: MSG1_EN = "English 1"
test_class.modifier: private static final
test_class.original_string: private static final String MSG1_EN = "English 1";
test_class.type: String
test_class.var_name: MSG1_EN
test_class.declarator: MSG2_EN = "English 2 - {0}"
test_class.modifier: private static final
test_class.original_string: private static final String MSG2_EN = "English 2 - {0}";
test_class.type: String
test_class.var_name: MSG2_EN
test_class.declarator: MSG3_EN = "English 3 - {0}"
test_class.modifier: private static final
test_class.original_string: private static final String MSG3_EN = "English 3 - {0}";
test_class.type: String
test_class.var_name: MSG3_EN
test_class.declarator: ARGS = "args"
test_class.modifier: private static final
test_class.original_string: private static final String ARGS = "args";
test_class.type: String
test_class.var_name: ARGS
test_class.declarator: PARAM1_MSG1 = ConfigStatusMessage.Builder.information(PARAM1)
              .withMessageKeySuffix(MSG_KEY1).build()
test_class.modifier: private static final
test_class.original_string: private static final ConfigStatusMessage PARAM1_MSG1 = ConfigStatusMessage.Builder.information(PARAM1)
              .withMessageKeySuffix(MSG_KEY1).build();
test_class.type: ConfigStatusMessage
test_class.var_name: PARAM1_MSG1
test_class.declarator: PARAM2_MSG2 = ConfigStatusMessage.Builder.warning(PARAM2)
              .withMessageKeySuffix(MSG_KEY2).withStatusCode(1).withArguments(ARGS).build()
test_class.modifier: private static final
test_class.original_string: private static final ConfigStatusMessage PARAM2_MSG2 = ConfigStatusMessage.Builder.warning(PARAM2)
              .withMessageKeySuffix(MSG_KEY2).withStatusCode(1).withArguments(ARGS).build();
test_class.type: ConfigStatusMessage
test_class.var_name: PARAM2_MSG2
test_class.declarator: PARAM3_MSG3 = ConfigStatusMessage.Builder.error(PARAM3)
              .withMessageKeySuffix(MSG_KEY3).withStatusCode(2).withArguments(ARGS).build()
test_class.modifier: private static final
test_class.original_string: private static final ConfigStatusMessage PARAM3_MSG3 = ConfigStatusMessage.Builder.error(PARAM3)
              .withMessageKeySuffix(MSG_KEY3).withStatusCode(2).withArguments(ARGS).build();
test_class.type: ConfigStatusMessage
test_class.var_name: PARAM3_MSG3
test_class.declarator: messagesEntity1 = new ArrayList<>()
test_class.modifier: private final
test_class.original_string: private final Collection<ConfigStatusMessage> messagesEntity1 = new ArrayList<>();
test_class.type: Collection<ConfigStatusMessage>
test_class.var_name: messagesEntity1
test_class.declarator: messagesEntity2 = new ArrayList<>()
test_class.modifier: private final
test_class.original_string: private final Collection<ConfigStatusMessage> messagesEntity2 = new ArrayList<>();
test_class.type: Collection<ConfigStatusMessage>
test_class.var_name: messagesEntity2
test_class.declarator: messagesEntity1De = new ArrayList<>()
test_class.modifier: private final
test_class.original_string: private final Collection<ConfigStatusMessage> messagesEntity1De = new ArrayList<>();
test_class.type: Collection<ConfigStatusMessage>
test_class.var_name: messagesEntity1De
test_class.declarator: messagesEntity2De = new ArrayList<>()
test_class.modifier: private final
test_class.original_string: private final Collection<ConfigStatusMessage> messagesEntity2De = new ArrayList<>();
test_class.type: Collection<ConfigStatusMessage>
test_class.var_name: messagesEntity2De
test_class.declarator: messagesEntity1En = new ArrayList<>()
test_class.modifier: private final
test_class.original_string: private final Collection<ConfigStatusMessage> messagesEntity1En = new ArrayList<>();
test_class.type: Collection<ConfigStatusMessage>
test_class.var_name: messagesEntity1En
test_class.declarator: messagesEntity2En = new ArrayList<>()
test_class.modifier: private final
test_class.original_string: private final Collection<ConfigStatusMessage> messagesEntity2En = new ArrayList<>();
test_class.type: Collection<ConfigStatusMessage>
test_class.var_name: messagesEntity2En
test_class.file: bundles/org.openhab.core.config.core/src/test/java/org/openhab/core/config/core/status/ConfigStatusServiceTest.java
test_class.identifier: ConfigStatusServiceTest
test_class.superclass: extends JavaTest
test_case.body: @Test
      public void assertThatNullIsReturnedForEntityWithoutRegisteredValidator() {
          ConfigStatusInfo info = configStatusService.getConfigStatus("unknown", null);
          assertThat("Config status info is null.", info, is((ConfigStatusInfo) null));
      }
test_case.class_method_signature: ConfigStatusServiceTest.assertThatNullIsReturnedForEntityWithoutRegisteredValidator()
test_case.full_signature: @Test public void assertThatNullIsReturnedForEntityWithoutRegisteredValidator()
test_case.identifier: assertThatNullIsReturnedForEntityWithoutRegisteredValidator
test_case.invocations: getConfigStatus assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertThatNullIsReturnedForEntityWithoutRegisteredValidator()
focal_class.declarator: logger = LoggerFactory.getLogger(ConfigStatusService.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger logger = LoggerFactory.getLogger(ConfigStatusService.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: configStatusProviders = new CopyOnWriteArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<ConfigStatusProvider> configStatusProviders = new CopyOnWriteArrayList<>();
focal_class.type: List<ConfigStatusProvider>
focal_class.var_name: configStatusProviders
focal_class.declarator: eventPublisher
focal_class.modifier: private
focal_class.original_string: private EventPublisher eventPublisher;
focal_class.type: EventPublisher
focal_class.var_name: eventPublisher
focal_class.declarator: localeProvider
focal_class.modifier: private
focal_class.original_string: private LocaleProvider localeProvider;
focal_class.type: LocaleProvider
focal_class.var_name: localeProvider
focal_class.declarator: translationProvider
focal_class.modifier: private
focal_class.original_string: private TranslationProvider translationProvider;
focal_class.type: TranslationProvider
focal_class.var_name: translationProvider
focal_class.declarator: bundleResolver
focal_class.modifier: private
focal_class.original_string: private BundleResolver bundleResolver;
focal_class.type: BundleResolver
focal_class.var_name: bundleResolver
focal_class.declarator: executorService = ThreadPoolManager
              .getPool(ConfigStatusService.class.getSimpleName())
focal_class.modifier: private final
focal_class.original_string: private final ExecutorService executorService = ThreadPoolManager
              .getPool(ConfigStatusService.class.getSimpleName());
focal_class.type: ExecutorService
focal_class.var_name: executorService
focal_class.file: bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/status/ConfigStatusService.java
focal_class.identifier: ConfigStatusService
focal_class.interfaces: implements ConfigStatusCallback
focal_class.class_method_signature: ConfigStatusService.getConfigStatus(String entityId, final Locale locale)
focal_class.full_signature: public ConfigStatusInfo getConfigStatus(String entityId, final Locale locale)
focal_class.identifier: getConfigStatus
focal_class.modifiers: public
focal_class.parameters: (String entityId, final Locale locale)
focal_class.return: ConfigStatusInfo
focal_class.signature: ConfigStatusInfo getConfigStatus(String entityId, final Locale locale)
focal_class.class_method_signature: ConfigStatusService.configUpdated(final ConfigStatusSource configStatusSource)
focal_class.full_signature: @Override public void configUpdated(final ConfigStatusSource configStatusSource)
focal_class.identifier: configUpdated
focal_class.modifiers: @Override public
focal_class.parameters: (final ConfigStatusSource configStatusSource)
focal_class.return: void
focal_class.signature: void configUpdated(final ConfigStatusSource configStatusSource)
focal_class.class_method_signature: ConfigStatusService.getConfigStatus(ConfigStatusProvider configStatusProvider, String entityId,
              Locale locale)
focal_class.full_signature: private ConfigStatusInfo getConfigStatus(ConfigStatusProvider configStatusProvider, String entityId,
              Locale locale)
focal_class.identifier: getConfigStatus
focal_class.modifiers: private
focal_class.parameters: (ConfigStatusProvider configStatusProvider, String entityId,
              Locale locale)
focal_class.return: ConfigStatusInfo
focal_class.signature: ConfigStatusInfo getConfigStatus(ConfigStatusProvider configStatusProvider, String entityId,
              Locale locale)
focal_class.class_method_signature: ConfigStatusService.addConfigStatusProvider(ConfigStatusProvider configStatusProvider)
focal_class.full_signature: @Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) protected void addConfigStatusProvider(ConfigStatusProvider configStatusProvider)
focal_class.identifier: addConfigStatusProvider
focal_class.modifiers: @Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) protected
focal_class.parameters: (ConfigStatusProvider configStatusProvider)
focal_class.return: void
focal_class.signature: void addConfigStatusProvider(ConfigStatusProvider configStatusProvider)
focal_class.class_method_signature: ConfigStatusService.removeConfigStatusProvider(ConfigStatusProvider configStatusProvider)
focal_class.full_signature: protected void removeConfigStatusProvider(ConfigStatusProvider configStatusProvider)
focal_class.identifier: removeConfigStatusProvider
focal_class.modifiers: protected
focal_class.parameters: (ConfigStatusProvider configStatusProvider)
focal_class.return: void
focal_class.signature: void removeConfigStatusProvider(ConfigStatusProvider configStatusProvider)
focal_class.class_method_signature: ConfigStatusService.setEventPublisher(EventPublisher eventPublisher)
focal_class.full_signature: @Reference(policy = ReferencePolicy.DYNAMIC) protected void setEventPublisher(EventPublisher eventPublisher)
focal_class.identifier: setEventPublisher
focal_class.modifiers: @Reference(policy = ReferencePolicy.DYNAMIC) protected
focal_class.parameters: (EventPublisher eventPublisher)
focal_class.return: void
focal_class.signature: void setEventPublisher(EventPublisher eventPublisher)
focal_class.class_method_signature: ConfigStatusService.unsetEventPublisher(EventPublisher eventPublisher)
focal_class.full_signature: protected void unsetEventPublisher(EventPublisher eventPublisher)
focal_class.identifier: unsetEventPublisher
focal_class.modifiers: protected
focal_class.parameters: (EventPublisher eventPublisher)
focal_class.return: void
focal_class.signature: void unsetEventPublisher(EventPublisher eventPublisher)
focal_class.class_method_signature: ConfigStatusService.setLocaleProvider(LocaleProvider localeProvider)
focal_class.full_signature: @Reference protected void setLocaleProvider(LocaleProvider localeProvider)
focal_class.identifier: setLocaleProvider
focal_class.modifiers: @Reference protected
focal_class.parameters: (LocaleProvider localeProvider)
focal_class.return: void
focal_class.signature: void setLocaleProvider(LocaleProvider localeProvider)
focal_class.class_method_signature: ConfigStatusService.unsetLocaleProvider(LocaleProvider localeProvider)
focal_class.full_signature: protected void unsetLocaleProvider(LocaleProvider localeProvider)
focal_class.identifier: unsetLocaleProvider
focal_class.modifiers: protected
focal_class.parameters: (LocaleProvider localeProvider)
focal_class.return: void
focal_class.signature: void unsetLocaleProvider(LocaleProvider localeProvider)
focal_class.class_method_signature: ConfigStatusService.setTranslationProvider(TranslationProvider i18nProvider)
focal_class.full_signature: @Reference protected void setTranslationProvider(TranslationProvider i18nProvider)
focal_class.identifier: setTranslationProvider
focal_class.modifiers: @Reference protected
focal_class.parameters: (TranslationProvider i18nProvider)
focal_class.return: void
focal_class.signature: void setTranslationProvider(TranslationProvider i18nProvider)
focal_class.class_method_signature: ConfigStatusService.unsetTranslationProvider(TranslationProvider i18nProvider)
focal_class.full_signature: protected void unsetTranslationProvider(TranslationProvider i18nProvider)
focal_class.identifier: unsetTranslationProvider
focal_class.modifiers: protected
focal_class.parameters: (TranslationProvider i18nProvider)
focal_class.return: void
focal_class.signature: void unsetTranslationProvider(TranslationProvider i18nProvider)
focal_class.class_method_signature: ConfigStatusService.setBundleResolver(BundleResolver bundleResolver)
focal_class.full_signature: @Reference protected void setBundleResolver(BundleResolver bundleResolver)
focal_class.identifier: setBundleResolver
focal_class.modifiers: @Reference protected
focal_class.parameters: (BundleResolver bundleResolver)
focal_class.return: void
focal_class.signature: void setBundleResolver(BundleResolver bundleResolver)
focal_class.class_method_signature: ConfigStatusService.unsetBundleResolver(BundleResolver bundleResolver)
focal_class.full_signature: protected void unsetBundleResolver(BundleResolver bundleResolver)
focal_class.identifier: unsetBundleResolver
focal_class.modifiers: protected
focal_class.parameters: (BundleResolver bundleResolver)
focal_class.return: void
focal_class.signature: void unsetBundleResolver(BundleResolver bundleResolver)
focal_method.body: public ConfigStatusInfo getConfigStatus(String entityId, final Locale locale) {
          if (entityId == null || entityId.equals("")) {
              throw new IllegalArgumentException("EntityId must not be null or empty");
          }
  
          final Locale loc = locale != null ? locale : localeProvider.getLocale();
  
          for (ConfigStatusProvider configStatusProvider : configStatusProviders) {
              if (configStatusProvider.supportsEntity(entityId)) {
                  return getConfigStatus(configStatusProvider, entityId, loc);
              }
          }
  
          logger.debug("There is no config status provider for entity {} available.", entityId);
  
          return null;
      }
focal_method.class_method_signature: ConfigStatusService.getConfigStatus(String entityId, final Locale locale)
focal_method.full_signature: public ConfigStatusInfo getConfigStatus(String entityId, final Locale locale)
focal_method.identifier: getConfigStatus
focal_method.invocations: equals getLocale supportsEntity getConfigStatus debug
focal_method.modifiers: public
focal_method.parameters: (String entityId, final Locale locale)
focal_method.return: ConfigStatusInfo
focal_method.signature: ConfigStatusInfo getConfigStatus(String entityId, final Locale locale)