Class CheckNoComponentInstalledOfFactoryId

java.lang.Object
io.openems.edge.core.appmanager.validator.AbstractCheckable
io.openems.edge.core.appmanager.validator.CheckNoComponentInstalledOfFactoryId
All Implemented Interfaces:
Checkable

public class CheckNoComponentInstalledOfFactoryId extends AbstractCheckable implements Checkable
  • Field Details

  • Constructor Details

    • CheckNoComponentInstalledOfFactoryId

      public CheckNoComponentInstalledOfFactoryId(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext)
  • Method Details

    • setProperties

      public void setProperties(Map<String,?> properties)
      Description copied from interface: Checkable
      Sets the properties.
      Specified by:
      setProperties in interface Checkable
      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.
      Specified by:
      check in interface Checkable
      Returns:
      true if the check was successful else false
    • getErrorMessage

      public String getErrorMessage(Language language)
      Description copied from interface: Checkable
      Gets the error message if the check was not successful.
      Specified by:
      getErrorMessage in interface Checkable
      Parameters:
      language - the language of the message
      Returns:
      the message
    • getInvertedErrorMessage

      public String getInvertedErrorMessage(Language language)
      Description copied from interface: Checkable
      Gets the error message if the check was successful.
      Specified by:
      getInvertedErrorMessage in interface Checkable
      Parameters:
      language - the language of the message
      Returns:
      the message