Package com.e1c.g5.v8.dt.check.settings
Class CheckSettingsChange
java.lang.Object
com.e1c.g5.v8.dt.check.settings.CheckSettingsChange
The difference between the previous state of the check settings and the last one. Used by the
ICheckSettingsChangeListener
lifecycle to perform selective changes in check-related data (e.g. markers, etc)
This class isn't intended for the direct instantiation or changes by the clients-
Constructor Summary
ConstructorsConstructorDescriptionCheckSettingsChange
(CheckUid checkId) Constructs an instance of theCheckSettingsChange
-
Method Summary
Modifier and TypeMethodDescriptionGets the check identifierGest the new severity (if set)boolean
Checks if the check is disabled as a result of the settings changeboolean
Checks if the check is enabled as a result of the settings changeboolean
Checks if the custom check settings are changedvoid
Set disabled state change flag.void
Set enabled state change flag.void
setNewSeverity
(IssueSeverity severity) Set new severity for target markersvoid
Sets the generic check setting change flag
-
Constructor Details
-
CheckSettingsChange
Constructs an instance of theCheckSettingsChange
- Parameters:
checkId
- The indentifier of the check. May not benull
-
-
Method Details
-
getCheckId
Gets the check identifier- Returns:
- The check unqiue identifier. May not be
null
-
getNewSeverity
Gest the new severity (if set)- Returns:
- The new severity setting. May be
null
if no severity was changed
-
isDisabled
public boolean isDisabled()Checks if the check is disabled as a result of the settings change- Returns:
- True if the check is disabled
-
isEnabled
public boolean isEnabled()Checks if the check is enabled as a result of the settings change- Returns:
- True if the check is enabled
-
isSettingsChanged
public boolean isSettingsChanged()Checks if the custom check settings are changed- Returns:
- True if the check settings are changed
-
setDisabled
public void setDisabled()Set disabled state change flag. Must not be called along withsetEnabled()
-
setEnabled
public void setEnabled()Set enabled state change flag. Must not be called along withsetDisabled()
-
setNewSeverity
Set new severity for target markers- Parameters:
severity
- The new severity to set. May not benull
-
setSettingsChanged
public void setSettingsChanged()Sets the generic check setting change flag
-