public class A2BTransformer extends Object implements Transformer
a
and replaces each with a string b
.
removeMultipleWhitespaces
(default true) and
trimIt
(default true)Constructor and Description |
---|
A2BTransformer() |
Modifier and Type | Method and Description |
---|---|
String |
getA() |
String |
getB() |
boolean |
isRemoveMultipleWhitespaces() |
boolean |
isTrimIt() |
void |
setA(String a) |
void |
setB(String b) |
void |
setRemoveMultipleWhitespaces(boolean removeMultipleWhitespaces) |
void |
setTrimIt(boolean trimIt) |
String |
transform(String s)
Transform
s into another String. |
public A2BTransformer()
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.