public class RegexExtractorTransformer extends Object implements Transformer
removeMultipleWhitespaces
(default true) and
trimIt
(default true)Constructor and Description |
---|
RegexExtractorTransformer() |
Modifier and Type | Method and Description |
---|---|
String |
getRegex() |
boolean |
isRemoveMultipleWhitespaces() |
boolean |
isTrimIt() |
void |
setRegex(String regex) |
void |
setRemoveMultipleWhitespaces(boolean removeMultipleWhitespaces) |
void |
setTrimIt(boolean trimIt) |
String |
transform(String s)
Transform
s into another String. |
public RegexExtractorTransformer()
public String transform(String s)
Transformer
s
into another String.transform
in interface Transformer
s
- The string to transformpublic boolean isRemoveMultipleWhitespaces()
public void setRemoveMultipleWhitespaces(boolean removeMultipleWhitespaces)
public boolean isTrimIt()
public void setTrimIt(boolean trimIt)
Copyright © 2012–2014 Royal Botanic Gardens, Kew. All rights reserved.