olg.csv.bean.filter.impl
Class UpperCaseFirstFilter

java.lang.Object
  extended by olg.csv.bean.filter.AbstractStringFilter
      extended by olg.csv.bean.filter.impl.UpperCaseFirstFilter

public class UpperCaseFirstFilter
extends AbstractStringFilter

Filter specialized in uppercase setting of the first letter of a string.

Author:
Olivier Godineau

Constructor Summary
UpperCaseFirstFilter(Locale locale)
           
 
Method Summary
protected  String doFiltre(String value)
          Realizes the specified transformation promised by this filtre.
 Locale getLocale()
          the locale used to uppercase.
 
Methods inherited from class olg.csv.bean.filter.AbstractStringFilter
filtre, getDecorateFilter, getFilter, getLowerFilter, getReplaceFilter, getSplitFilter, getTrimFilter, getUpperFilter, getUpperFirstFilter, setFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpperCaseFirstFilter

public UpperCaseFirstFilter(Locale locale)
Parameters:
locale - the locale. If null jvm default locale is used.
Method Detail

getLocale

public Locale getLocale()
the locale used to uppercase.

Returns:
the locale

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.


Copyright © 2014. All rights reserved.