Centralized argument validation utility for detecting and reporting null or blank values.
More...
|
| boolean | checkNPE (Object obj, String methodName, String name) |
| | Validates that the specified object is not null.
|
| |
|
| boolean | checkNullOrBlankInternal (Object obj, String methodName, String name) |
| | Validates the given object for null or blank values.
|
| |
Centralized argument validation utility for detecting and reporting null or blank values.
Implemented as an enum singleton to ensure a single shared instance. Designed for defensive programming and consistent user feedback through standardized error dialogs.
◆ checkNPE()
| boolean fr.softsf.canscan.util.Checker.checkNPE |
( |
Object | obj, |
|
|
String | methodName, |
|
|
String | name ) |
Validates that the specified object is not null.
Displays an error dialog if the value is invalid.
- Parameters
-
| obj | the object to validate |
| methodName | the name of the calling method, used for context in the error dialog |
| name | the parameter name, displayed in the error dialog |
- Returns
true if the object is null; false otherwise
◆ checkNullOrBlankInternal()
| boolean fr.softsf.canscan.util.Checker.checkNullOrBlankInternal |
( |
Object | obj, |
|
|
String | methodName, |
|
|
String | name ) |
|
private |
Validates the given object for null or blank values.
Displays a standardized error dialog if invalid.
- Parameters
-
| obj | the object to validate |
| methodName | the name of the calling method |
| name | the name of the parameter |
- Returns
true if the object is invalid; false otherwise
◆ INSTANCE
| fr.softsf.canscan.util.Checker.INSTANCE |
The documentation for this enum was generated from the following file: