Autopsy  4.19.3
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 PersonNameValidator.java.

Member Function Documentation

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

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

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

Definition at line 73 of file PersonNameValidator.java.

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 
)
static

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

Parameters
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.
Returns
The validation message if the name is not valid or null.

Definition at line 49 of file PersonNameValidator.java.

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: Thu Sep 29 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.