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 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
-
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 benullparentId- The identifier of the parent category. May not benulltitle- 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, notnulltitle- check title, notnulldescription- check description, notnullissueType- check issue type, notnullenabled- enabled,protectedObjectCheckEnabled-severity- check severity, notnullparentId- category id from from extension point "com.e1c.g5.v8.dt.check.category" ornullif noneproperties- check properties, notnull
-
-
Method Details
-
equals
-
getId
Description copied from interface:ICheckSettingsGets the unique idenfier of the check- Specified by:
getIdin interfaceICheckSettings- Specified by:
getIdin interfaceINamedElement- Returns:
- The unique identifier of the check. May not be
null
-
getDescription
Description copied from interface:INamedElementReturns localized description.- Specified by:
getDescriptionin interfaceINamedElement- Returns:
- title, not
null
-
getParameters
Description copied from interface:ICheckSettingsReturns the immutable map of check properties by names.- Specified by:
getParametersin interfaceICheckSettings- Returns:
- map of check properties by names, not
null.
-
getParentId
Description copied from interface:INamedElementReturns parent id.- Specified by:
getParentIdin interfaceINamedElement- Returns:
- parent id, empty string if empty, not
null
-
getSeverity
Description copied from interface:ICheckSettingsGets the severity of the check as configured- Specified by:
getSeverityin interfaceICheckSettings- Returns:
- The severity of the check. May not be
null
-
getTitle
Description copied from interface:INamedElementReturns localized title.- Specified by:
getTitlein interfaceINamedElement- Returns:
- title, not
null
-
getType
Description copied from interface:ICheckSettingsGets the type of the check issues- Specified by:
getTypein interfaceICheckSettings- Returns:
- The type of the check issues. May not be
null
-
hashCode
public int hashCode() -
isDefault
public boolean isDefault()Description copied from interface:ICheckSettingsReturns whether check settings is default.- Specified by:
isDefaultin interfaceICheckSettings- Returns:
- whether check settings is default.
-
isEnabled
public boolean isEnabled()Description copied from interface:ICheckSettingsReads the enablement status of the check- Specified by:
isEnabledin interfaceICheckSettings- Returns:
- True if the check is enabled at the moment
-
isProtectedObjectCheckEnabled
public boolean isProtectedObjectCheckEnabled()Description copied from interface:ICheckSettingsReads the protected object check mode enablement status- Specified by:
isProtectedObjectCheckEnabledin interfaceICheckSettings- Returns:
- True if the protected object check mode is enabled
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:ICheckSettingsSets check enabling.- Specified by:
setEnabledin interfaceICheckSettings- Parameters:
enabled- check enabling
-
setSeverity
Description copied from interface:ICheckSettingsSets check severity.- Specified by:
setSeverityin interfaceICheckSettings- Parameters:
severity- check severity, notnull
-
toString
-