Interface | Description |
---|---|
Transformer |
This interface defines the behaviour expected of
Transformer s. |
Class | Description |
---|---|
A2BTransformer |
A generic transformer that searches for all occurrences of a string
A2BTransformer.a and replaces each with a string A2BTransformer.b . |
CapitalLettersExtractor |
CapitalLettersExtractor returns only the capital letters in a string, other letters
are replaced by
RegexTransformer.replacement (default space). |
CompositeTransformer |
A CompositeTransformer can have other transformers and
executes them in order on the given string.
|
DictionaryRegexTransformer |
Uses a
Dictionary object of which it iterates over
the keys to use each as a regular expression; if the pattern matches, it
transforms the string accordingly returning the corresponding value of the
Dictionary. |
DictionaryTransformer |
Uses a
Dictionary object to lookup a string in its
keys and returns the value if the key is found. |
LowerCaseTransformer |
Converts the input to lower case using the defined locale, default is English.
|
NormaliseDiacriticalMarksTransformer |
Removes diacritical marks from letters, intended for dealing with OCR errors
and language-ignorant string comparisons.
|
RegexExtractorTransformer |
A generic transformer that extracts all occurrences of a pattern (regEx)
in a string
It takes two optional parameters, RegexExtractorTransformer.removeMultipleWhitespaces (default true) and
RegexExtractorTransformer.trimIt (default true) |
RegexTransformer |
A generic transformer that searches for all occurrences of a regular expression pattern (regEx)
RegexTransformer.pattern in a string and replaces each with a string RegexTransformer.replacement . |
RemoveBracketedTextTransformer |
Removes all text in brackets (round, square and curly) incl.
|
RomanNumeralTransformer |
This transformer splits a string into a series of words.
|
SqueezeWhitespaceTransformer |
A transformer to find multiple whitespace characters (space, tab etc) and
replace them with a single space.
|
StringShrinkerTransformer |
Crops/shrinks a string to a length of
StringShrinkerTransformer.length characters. |
StripNonAlphabeticCharactersTransformer |
This is a chain of three transformations:
replace diacritical characters with their Latin equivalent (
NormaliseDiacriticalMarksTransformer )
replace all non-alphabetic characters with StripNonAlphabeticCharactersTransformer.replacement (default: space)
replace multiple whitespace occurrences with one whitespace
Returns a trimmed result. |
StripNonAlphanumericCharactersTransformer |
This is a chain of three transformations:
replace diacritical characters with their Latin equivalent (
NormaliseDiacriticalMarksTransformer )
replace all non-alphanumeric characters with StripNonAlphanumericCharactersTransformer.replacement (default: space)
replace multiple whitespace occurrences with one whitespace
Returns a trimmed result. |
StripNonAsciiAlphabeticCharactersTransformer |
This transformer strips non ASCII alphabetic characters (A to Z, a to z), replacing
them with a space.
|
StripNonAsciiAlphanumericCharactersTransformer |
This transformer strips non ASCII alphanumeric characters (A to Z, a to z, 0 to 9), replacing
them with a space.
|
StripNonNumericCharactersTransformer |
This transformer strips non numeric characters, i.e.
|
TitleCaseTransformer |
Converts the input to lower case.
|
UpperCaseTransformer |
Converts the input to lower case.
|
YearRangeExtractorTransformer |
Extracts year ranges from arbitrary strings.
|
ZeroToBlankTransformer |
This transformer translates zeros to blanks
|
Exception | Description |
---|---|
TransformationException |
Copyright © 2012–2014 Royal Botanic Gardens, Kew. All rights reserved.