Package de.xima.fc.plugin.lifecycle
Class DefaultPluginValidationResult
java.lang.Object
de.xima.fc.plugin.lifecycle.DefaultPluginValidationResult
- All Implemented Interfaces:
IPluginInitializeValidationResult
public final class DefaultPluginValidationResult
extends Object
implements IPluginInitializeValidationResult
Default POJO implementation of
IPluginInitializeValidationResult
.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPluginValidationResult
(boolean valid, List<String> errorMessages) Creates a new instance with the given data. -
Method Summary
Modifier and TypeMethodDescriptionGets the localized error messages.boolean
isValid()
Gets whether the plugin configuration is valid.
-
Constructor Details
-
DefaultPluginValidationResult
Creates a new instance with the given data.- Parameters:
valid
- Whether the plugin configuration is valid.errorMessages
- An optional list of localized error messages.
-
-
Method Details
-
isValid
public boolean isValid()Description copied from interface:IPluginInitializeValidationResult
Gets whether the plugin configuration is valid. If it is invalid,error messages
may also be available, but a validation result may be invalid even without error messages.- Specified by:
isValid
in interfaceIPluginInitializeValidationResult
- Returns:
true
if the properties are valid,false
if the plugin configuration is invalid.
-
getErrorMessages
Description copied from interface:IPluginInitializeValidationResult
Gets the localized error messages. Note that this validation result may beinvalid
even when this list is empty.- Specified by:
getErrorMessages
in interfaceIPluginInitializeValidationResult
- Returns:
- A list of localized error messages.
-