Class CheckSettings
java.lang.Object
com.e1c.g5.v8.dt.internal.check.settings.CheckSettings
- All Implemented Interfaces:
ICheckSettings
,INamedElement
Base implementation for
ICheckSettings
.-
Field Summary
Fields inherited from interface com.e1c.g5.v8.dt.check.settings.INamedElement
ROOT_ID
-
Constructor Summary
ConstructorsConstructorDescriptionCheckSettings
(CheckUid checkUid, CheckUid parentId, String title, String description, boolean enabled, boolean originalEnabled, IssueSeverity severity, IssueSeverity originalSeverity, IssueType issueType, Map<String, ICheckParameterSettings> parameters) Constructs check settings instanceCheckSettings
(CheckUid checkUid, CheckUid parentId, String title, Supplier<String> description, boolean enabled, boolean protectedObjectCheckEnabled, boolean originalEnabled, IssueSeverity severity, IssueSeverity originalSeverity, IssueType issueType, Map<String, ICheckParameterSettings> parameters) Creates new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns localized description.getId()
Gets the unique idenfier of the checkReturns the immutable map of check properties by names.Returns parent id.Gets the severity of the check as configuredgetTitle()
Returns localized title.getType()
Gets the type of the check issuesint
hashCode()
boolean
Returns whether check settings is default.boolean
Reads the enablement status of the checkboolean
Reads the protected object check mode enablement statusvoid
setEnabled
(boolean enabled) Sets check enabling.void
setSeverity
(IssueSeverity severity) Sets check severity.toString()
-
Constructor Details
-
CheckSettings
public CheckSettings(CheckUid checkUid, CheckUid parentId, String title, String description, boolean enabled, boolean originalEnabled, IssueSeverity severity, IssueSeverity originalSeverity, IssueType issueType, Map<String, ICheckParameterSettings> parameters) Constructs check settings instance- Parameters:
checkId
- The identifier of the check. May not benull
parentId
- The identifier of the parent category. May not benull
title
- The default title of the checkdescription
-enabled
-originalEnabled
-severity
-originalSeverity
-issueType
-parameters
-
-
CheckSettings
public CheckSettings(CheckUid checkUid, CheckUid parentId, String title, Supplier<String> description, boolean enabled, boolean protectedObjectCheckEnabled, boolean originalEnabled, IssueSeverity severity, IssueSeverity originalSeverity, IssueType issueType, Map<String, ICheckParameterSettings> parameters) Creates new instance.- Parameters:
checkUid
- check id, notnull
title
- check title, notnull
description
- check description, notnull
issueType
- check issue type, notnull
enabled
- enabled,protectedObjectCheckEnabled
-severity
- check severity, notnull
parentId
- category id from from extension point "com.e1c.g5.v8.dt.check.category" ornull
if noneproperties
- check properties, notnull
-
-
Method Details
-
equals
-
getId
Description copied from interface:ICheckSettings
Gets the unique idenfier of the check- Specified by:
getId
in interfaceICheckSettings
- Specified by:
getId
in interfaceINamedElement
- Returns:
- The unique identifier of the check. May not be
null
-
getDescription
Description copied from interface:INamedElement
Returns localized description.- Specified by:
getDescription
in interfaceINamedElement
- Returns:
- title, not
null
-
getParameters
Description copied from interface:ICheckSettings
Returns the immutable map of check properties by names.- Specified by:
getParameters
in interfaceICheckSettings
- Returns:
- map of check properties by names, not
null
.
-
getParentId
Description copied from interface:INamedElement
Returns parent id.- Specified by:
getParentId
in interfaceINamedElement
- Returns:
- parent id, empty string if empty, not
null
-
getSeverity
Description copied from interface:ICheckSettings
Gets the severity of the check as configured- Specified by:
getSeverity
in interfaceICheckSettings
- Returns:
- The severity of the check. May not be
null
-
getTitle
Description copied from interface:INamedElement
Returns localized title.- Specified by:
getTitle
in interfaceINamedElement
- Returns:
- title, not
null
-
getType
Description copied from interface:ICheckSettings
Gets the type of the check issues- Specified by:
getType
in interfaceICheckSettings
- Returns:
- The type of the check issues. May not be
null
-
hashCode
public int hashCode() -
isDefault
public boolean isDefault()Description copied from interface:ICheckSettings
Returns whether check settings is default.- Specified by:
isDefault
in interfaceICheckSettings
- Returns:
- whether check settings is default.
-
isEnabled
public boolean isEnabled()Description copied from interface:ICheckSettings
Reads the enablement status of the check- Specified by:
isEnabled
in interfaceICheckSettings
- Returns:
- True if the check is enabled at the moment
-
isProtectedObjectCheckEnabled
public boolean isProtectedObjectCheckEnabled()Description copied from interface:ICheckSettings
Reads the protected object check mode enablement status- Specified by:
isProtectedObjectCheckEnabled
in interfaceICheckSettings
- Returns:
- True if the protected object check mode is enabled
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:ICheckSettings
Sets check enabling.- Specified by:
setEnabled
in interfaceICheckSettings
- Parameters:
enabled
- check enabling
-
setSeverity
Description copied from interface:ICheckSettings
Sets check severity.- Specified by:
setSeverity
in interfaceICheckSettings
- Parameters:
severity
- check severity, notnull
-
toString
-