addCandidateLabel

public final void addCandidateLabel(String label)

Adds a candidate label with no description. Adding a label that is already present (case-insensitive) replaces the existing entry.

Parameters

label

The short display name of the class (for example, "Invoice"). This is the name reported in the result.


public final void addCandidateLabel(String label, String description)

Adds a candidate label with a description. The label is the short name shown in the result; the description is longer context used only to improve matching and never appears in the output. Labels and descriptions may contain any characters. Adding a label that is already present (case-insensitive) replaces the existing entry.

Parameters

label

The short display name of the class (for example, "Invoice"). This is the name reported in the result.

description

Longer context that helps the matcher (for example, "An itemized bill listing goods or services and the total amount due").