Class DefaultSettingsValidator
java.lang.Object
org.apache.maven.settings.validation.DefaultSettingsValidator
- All Implemented Interfaces:
SettingsValidator
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultSettingsValidator
extends Object
implements SettingsValidator
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Deprecated.private static final Pattern
Deprecated.private final SettingsBuilder
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addViolation
(SettingsProblemCollector problems, SettingsProblem.Severity severity, String message) Deprecated.void
validate
(Settings settings, boolean isProjectSettings, SettingsProblemCollector problems) Deprecated.Validate the specified settings.void
validate
(Settings settings, SettingsProblemCollector problems) Deprecated.Validate the specified settings.
-
Field Details
-
ID
Deprecated.- See Also:
-
ID_REGEX
Deprecated. -
settingsBuilder
Deprecated.
-
-
Constructor Details
-
DefaultSettingsValidator
Deprecated.
-
-
Method Details
-
validate
Deprecated.Description copied from interface:SettingsValidator
Validate the specified settings.- Specified by:
validate
in interfaceSettingsValidator
- Parameters:
settings
- The settings to validate, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.
-
validate
public void validate(Settings settings, boolean isProjectSettings, SettingsProblemCollector problems) Deprecated.Description copied from interface:SettingsValidator
Validate the specified settings.- Specified by:
validate
in interfaceSettingsValidator
- Parameters:
settings
- The settings to validate, must not benull
.isProjectSettings
- Boolean indicating if the validation is for project settings or user / global settings.problems
- The container used to collect problems that were encountered, must not benull
.
-
addViolation
private static void addViolation(SettingsProblemCollector problems, SettingsProblem.Severity severity, String message) Deprecated.
-
DefaultSettingsValidator
instead