Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | List of all members
org.sleuthkit.autopsy.datamodel.persons.PersonNameValidator Class Reference

Static Public Member Functions

static Set< String > getSanitizedPersonNames (Collection< Person > persons)
static String getValidationMessage (String curName, String initialName, Set< String > currentPersonsTrimmedUpper)

Detailed Description

Provides methods for validating person names.

Definition at line 32 of file

Member Function Documentation

static Set<String> org.sleuthkit.autopsy.datamodel.persons.PersonNameValidator.getSanitizedPersonNames ( Collection< Person >  persons)

Generates a list of person names trimmed and to upper case that can be used with getValidationMessage.

personsThe persons.
The set of person names trimmed and to upper case.

Definition at line 73 of file

Referenced by org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.AddEditPersonDialog().

static String org.sleuthkit.autopsy.datamodel.persons.PersonNameValidator.getValidationMessage ( String  curName,
String  initialName,
Set< String >  currentPersonsTrimmedUpper 

Gets the validation message based on the current text checked against the person names.

curNameThe current name to be validated.
initialNameIf editing a name, the initial name of the person. Otherwise, null can be provided for this parameter.
currentPersonsTrimmedUpperThe current person names. This set should be sanitized to upper case and trimmed.
The validation message if the name is not valid or null.

Definition at line 49 of file

Referenced by org.sleuthkit.autopsy.datamodel.persons.AddEditPersonDialog.onNameUpdate().

The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.