public final class PatternCaptureTokenFilter extends TokenFilter
Constructor and Description |
---|
PatternCaptureTokenFilter(String name,
List<String> patterns)
Constructor of
PatternCaptureTokenFilter . |
Modifier and Type | Method and Description |
---|---|
List<String> |
getPatterns()
Get the patterns property: A list of patterns to match against each
token.
|
Boolean |
isPreserveOriginal()
Get the preserveOriginal property: A value indicating whether to return
the original token even if one of the patterns matches.
|
PatternCaptureTokenFilter |
setPreserveOriginal(Boolean preserveOriginal)
Set the preserveOriginal property: A value indicating whether to return
the original token even if one of the patterns matches.
|
getName
public PatternCaptureTokenFilter(String name, List<String> patterns)
PatternCaptureTokenFilter
.name
- The name of the token filter. It must only contain letters, digits,
spaces, dashes or underscores, can only start and end with alphanumeric
characters, and is limited to 128 characters.patterns
- A list of patterns to match against each token.public List<String> getPatterns()
public Boolean isPreserveOriginal()
public PatternCaptureTokenFilter setPreserveOriginal(Boolean preserveOriginal)
preserveOriginal
- the preserveOriginal value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.