PiiDetectionSkillMaskingMode Class

public final class PiiDetectionSkillMaskingMode
extends ExpandableStringEnum<PiiDetectionSkillMaskingMode>

A string indicating what maskingMode to use to mask the personal information detected in the input text.

Field Summary

Modifier and Type Field and Description
static final PiiDetectionSkillMaskingMode NONE

No masking occurs and the maskedText output will not be returned.

static final PiiDetectionSkillMaskingMode REPLACE

Replaces the detected entities with the character given in the maskingCharacter parameter.

Constructor Summary

Constructor Description
PiiDetectionSkillMaskingMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PiiDetectionSkillMaskingMode value.

Method Summary

Modifier and Type Method and Description
static PiiDetectionSkillMaskingMode fromString(String name)

Creates or finds a PiiDetectionSkillMaskingMode from its string representation.

static Collection<PiiDetectionSkillMaskingMode> values()

Gets known PiiDetectionSkillMaskingMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

NONE

public static final PiiDetectionSkillMaskingMode NONE

No masking occurs and the maskedText output will not be returned.

REPLACE

public static final PiiDetectionSkillMaskingMode REPLACE

Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText.

Constructor Details

PiiDetectionSkillMaskingMode

@Deprecated
public PiiDetectionSkillMaskingMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PiiDetectionSkillMaskingMode value.

Method Details

fromString

public static PiiDetectionSkillMaskingMode fromString(String name)

Creates or finds a PiiDetectionSkillMaskingMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PiiDetectionSkillMaskingMode.

values

public static Collection<PiiDetectionSkillMaskingMode> values()

Gets known PiiDetectionSkillMaskingMode values.

Returns:

known PiiDetectionSkillMaskingMode values.

Applies to