olg.csv.bean.filter.impl
Class DecorateFilter
java.lang.Object
olg.csv.bean.filter.AbstractStringFilter
olg.csv.bean.filter.impl.DecorateFilter
public final class DecorateFilter
- extends AbstractStringFilter
Filter which decorate the given string.
- Author:
- Olivier Godineau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecorateFilter
public DecorateFilter(String after,
String before)
- Parameters:
before
- this string will be added front of the given string. Can be
null
after
- this string will be added behind the given string. Can be
null
doFiltre
protected String doFiltre(String value)
- Description copied from class:
AbstractStringFilter
- Realizes the specified transformation promised by this filtre.
- Specified by:
doFiltre
in class AbstractStringFilter
- Parameters:
value
- the value to filter.
- Returns:
- the value after filtering.
getBefore
public String getBefore()
- Returns:
- The string to place before.
setBefore
public void setBefore(String before)
- Parameters:
before
- the string to place before.
getAfter
public String getAfter()
- Returns:
- the string to place after.
setAfter
public void setAfter(String after)
- Parameters:
after
- the string to place after.
Copyright © 2014. All rights reserved.