Class CheckNoComponentInstalledOfFactoryId
java.lang.Object
io.openems.edge.core.appmanager.validator.AbstractCheckable
io.openems.edge.core.appmanager.validator.CheckNoComponentInstalledOfFactoryId
- All Implemented Interfaces:
Checkable
-
Field Summary
FieldsFields inherited from class io.openems.edge.core.appmanager.validator.AbstractCheckable
componentContext
-
Constructor Summary
ConstructorsConstructorDescriptionCheckNoComponentInstalledOfFactoryId
(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext) -
Method Summary
Modifier and TypeMethodDescriptionboolean
check()
Checks if the implemented task was successful or not.getErrorMessage
(Language language) Gets the error message if the check was not successful.getInvertedErrorMessage
(Language language) Gets the error message if the check was successful.void
setProperties
(Map<String, ?> properties) Sets the properties.Methods inherited from class io.openems.edge.core.appmanager.validator.AbstractCheckable
getComponentName, getTranslation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.core.appmanager.validator.Checkable
getComponentName
-
Field Details
-
COMPONENT_NAME
- See Also:
-
-
Constructor Details
-
CheckNoComponentInstalledOfFactoryId
public CheckNoComponentInstalledOfFactoryId(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext)
-
-
Method Details
-
setProperties
Description copied from interface:Checkable
Sets the properties.- Specified by:
setProperties
in interfaceCheckable
- Parameters:
properties
- the properties to be set for the next check
-
check
public boolean check()Description copied from interface:Checkable
Checks if the implemented task was successful or not. -
getErrorMessage
Description copied from interface:Checkable
Gets the error message if the check was not successful.- Specified by:
getErrorMessage
in interfaceCheckable
- Parameters:
language
- the language of the message- Returns:
- the message
-
getInvertedErrorMessage
Description copied from interface:Checkable
Gets the error message if the check was successful.- Specified by:
getInvertedErrorMessage
in interfaceCheckable
- Parameters:
language
- the language of the message- Returns:
- the message
-