Class CheckSettings
java.lang.Object
com.e1c.g5.v8.dt.internal.check.settings.CheckSettings
- All Implemented Interfaces:
- ICheckSettings,- INamedElement
Base implementation for 
ICheckSettings.- 
Field SummaryFields inherited from interface com.e1c.g5.v8.dt.check.settings.INamedElementROOT_ID
- 
Constructor SummaryConstructorsConstructorDescriptionCheckSettings(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 SummaryModifier and TypeMethodDescriptionbooleanReturns 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 issuesinthashCode()booleanReturns whether check settings is default.booleanReads the enablement status of the checkbooleanReads the protected object check mode enablement statusvoidsetEnabled(boolean enabled) Sets check enabling.voidsetSeverity(IssueSeverity severity) Sets check severity.toString()
- 
Constructor Details- 
CheckSettingspublic 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 be- null
- parentId- The identifier of the parent category. May not be- null
- title- The default title of the check
- description-
- enabled-
- originalEnabled-
- severity-
- originalSeverity-
- issueType-
- parameters-
 
- 
CheckSettingspublic 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, not- null
- title- check title, not- null
- description- check description, not- null
- issueType- check issue type, not- null
- enabled- enabled,
- protectedObjectCheckEnabled-
- severity- check severity, not- null
- parentId- category id from from extension point "com.e1c.g5.v8.dt.check.category" or- nullif none
- properties- check properties, not- null
 
 
- 
- 
Method Details- 
equals
- 
getIdDescription copied from interface:ICheckSettingsGets the unique idenfier of the check- Specified by:
- getIdin interface- ICheckSettings
- Specified by:
- getIdin interface- INamedElement
- Returns:
- The unique identifier of the check. May not be null
 
- 
getDescriptionDescription copied from interface:INamedElementReturns localized description.- Specified by:
- getDescriptionin interface- INamedElement
- Returns:
- title, not null
 
- 
getParametersDescription copied from interface:ICheckSettingsReturns the immutable map of check properties by names.- Specified by:
- getParametersin interface- ICheckSettings
- Returns:
- map of check properties by names, not null.
 
- 
getParentIdDescription copied from interface:INamedElementReturns parent id.- Specified by:
- getParentIdin interface- INamedElement
- Returns:
- parent id, empty string if empty, not null
 
- 
getSeverityDescription copied from interface:ICheckSettingsGets the severity of the check as configured- Specified by:
- getSeverityin interface- ICheckSettings
- Returns:
- The severity of the check. May not be null
 
- 
getTitleDescription copied from interface:INamedElementReturns localized title.- Specified by:
- getTitlein interface- INamedElement
- Returns:
- title, not null
 
- 
getTypeDescription copied from interface:ICheckSettingsGets the type of the check issues- Specified by:
- getTypein interface- ICheckSettings
- Returns:
- The type of the check issues. May not be null
 
- 
hashCodepublic int hashCode()
- 
isDefaultpublic boolean isDefault()Description copied from interface:ICheckSettingsReturns whether check settings is default.- Specified by:
- isDefaultin interface- ICheckSettings
- Returns:
- whether check settings is default.
 
- 
isEnabledpublic boolean isEnabled()Description copied from interface:ICheckSettingsReads the enablement status of the check- Specified by:
- isEnabledin interface- ICheckSettings
- Returns:
- True if the check is enabled at the moment
 
- 
isProtectedObjectCheckEnabledpublic boolean isProtectedObjectCheckEnabled()Description copied from interface:ICheckSettingsReads the protected object check mode enablement status- Specified by:
- isProtectedObjectCheckEnabledin interface- ICheckSettings
- Returns:
- True if the protected object check mode is enabled
 
- 
setEnabledpublic void setEnabled(boolean enabled) Description copied from interface:ICheckSettingsSets check enabling.- Specified by:
- setEnabledin interface- ICheckSettings
- Parameters:
- enabled- check enabling
 
- 
setSeverityDescription copied from interface:ICheckSettingsSets check severity.- Specified by:
- setSeverityin interface- ICheckSettings
- Parameters:
- severity- check severity, not- null
 
- 
toString
 
-