Class CheckDescription
java.lang.Object
com.e1c.g5.v8.dt.internal.check.settings.CheckDescription
- All Implemented Interfaces:
ICheckDescription,INamedElement
Immutable implementation for
ICheckDescription.-
Field Summary
Fields inherited from interface com.e1c.g5.v8.dt.check.settings.INamedElement
ROOT_ID -
Constructor Summary
ConstructorsConstructorDescriptionCheckDescription(CheckUid checkUid, String title, String description, IssueType issueType, boolean enabled, boolean protectedObjectCheckEnabled, boolean criticalDataIntegrityCheck, IssueSeverity severity, CheckUid parentId, Map<String, CheckParameterDefinition> parameters) Instantiates a new check description.CheckDescription(CheckUid checkUid, String title, Supplier<String> description, IssueType issueType, boolean enabled, boolean protectedObjectCheckEnabled, boolean criticalDataIntegrityCheck, IssueSeverity severity, CheckUid parentId, Map<String, CheckParameterDefinition> parameters) Creates new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns localized description.getId()Returns idReturns the immutable map of check parameters by their names.Returns category id from extension point "com.e1c.g5.v8.dt.check.category" ornullif none.Returns check severity.getTitle()Returns localized title.getType()Returns check type.inthashCode()booleanChecks if this definition describes the critical data integrity checkbooleanReturns check enabling.booleanReturns the protected object check mode enablement statustoString()
-
Constructor Details
-
CheckDescription
public CheckDescription(CheckUid checkUid, String title, String description, IssueType issueType, boolean enabled, boolean protectedObjectCheckEnabled, boolean criticalDataIntegrityCheck, IssueSeverity severity, CheckUid parentId, Map<String, CheckParameterDefinition> parameters) Instantiates a new check description.- Parameters:
checkUid- the check unique id, cannot benull.title- the title, cannot benull.description- the description, cannot benull.issueType- the issue type, cannot benull.enabled- the enabled of the checkprotectedObjectCheckEnabled- the protected object check enabledcriticalDataIntegrityCheck- the critical data integrity checkseverity- the severity, cannot benull.parentId- the parent id, means category id from from extension point "com.e1c.g5.v8.dt.check.checks" ornullif noneparameters- the parameters, cannot benull.
-
CheckDescription
public CheckDescription(CheckUid checkUid, String title, Supplier<String> description, IssueType issueType, boolean enabled, boolean protectedObjectCheckEnabled, boolean criticalDataIntegrityCheck, IssueSeverity severity, CheckUid parentId, Map<String, CheckParameterDefinition> parameters) Creates new instance.- Parameters:
id- check id, notnulltitle- check title,nullif emptydescription- check description,nullif emptyissueType- check issue type, notnullenabled- enabled default check enablementprotectedObjectCheckEnabled- The protected object check mode enablementprotectedObjectCheckEnabled- The critical data integrity check flagseverity- check severity, notnullparentId- category id from from extension point "com.e1c.g5.v8.dt.check.checks" ornullif noneparameters- check properties, notnull
-
-
Method Details
-
getId
Description copied from interface:INamedElementReturns id- Specified by:
getIdin interfaceINamedElement- Returns:
- id, not
null
-
getTitle
Description copied from interface:INamedElementReturns localized title.- Specified by:
getTitlein interfaceINamedElement- Returns:
- title, not
null
-
getDescription
Description copied from interface:INamedElementReturns localized description.- Specified by:
getDescriptionin interfaceINamedElement- Returns:
- title, not
null
-
getSeverity
Description copied from interface:ICheckDescriptionReturns check severity.- Specified by:
getSeverityin interfaceICheckDescription- Returns:
- check severity, not
null
-
getType
Description copied from interface:ICheckDescriptionReturns check type.- Specified by:
getTypein interfaceICheckDescription- Returns:
- check type, not
null
-
getParentId
Description copied from interface:ICheckDescriptionReturns category id from extension point "com.e1c.g5.v8.dt.check.category" ornullif none.- Specified by:
getParentIdin interfaceICheckDescription- Specified by:
getParentIdin interfaceINamedElement- Returns:
- category or
nullif none
-
isEnabled
public boolean isEnabled()Description copied from interface:ICheckDescriptionReturns check enabling.- Specified by:
isEnabledin interfaceICheckDescription- Returns:
- whether check is enableb
-
isProtectedObjectCheckEnabled
public boolean isProtectedObjectCheckEnabled()Description copied from interface:ICheckDescriptionReturns the protected object check mode enablement status- Specified by:
isProtectedObjectCheckEnabledin interfaceICheckDescription- Returns:
- True if the protected object check mode is enabled
-
isCriticalDataIntegrityCheck
public boolean isCriticalDataIntegrityCheck()Description copied from interface:ICheckDescriptionChecks if this definition describes the critical data integrity check- Specified by:
isCriticalDataIntegrityCheckin interfaceICheckDescription- Returns:
- True if the check is a critical integrity check
-
getParameters
Description copied from interface:ICheckDescriptionReturns the immutable map of check parameters by their names.- Specified by:
getParametersin interfaceICheckDescription- Returns:
- map of check properties by their names, not
null.
-
toString
-
hashCode
public int hashCode() -
equals
-