org.databene.text
Class NameNormalizer

java.lang.Object
  extended by org.databene.commons.converter.AbstractConverter<S,T>
      extended by org.databene.commons.converter.ThreadSafeConverter<java.lang.String,java.lang.String>
          extended by org.databene.text.NormalizeSpaceConverter
              extended by org.databene.text.NameNormalizer
All Implemented Interfaces:
java.lang.Cloneable, Converter<java.lang.String,java.lang.String>, ThreadAware

public class NameNormalizer
extends NormalizeSpaceConverter

Normalizes names in capitalization and spacing. This includes trimming left and right, internal space normalization and starting each single word with a capital letter.

Created at 20.11.2008 19:39:20

Since:
0.4.6
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.commons.converter.AbstractConverter
sourceType, targetType
 
Constructor Summary
NameNormalizer()
           
 
Method Summary
 java.lang.String convert(java.lang.String sourceValue)
          Concerts an object of type S to an object of type T
 
Methods inherited from class org.databene.commons.converter.ThreadSafeConverter
clone, isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.commons.converter.AbstractConverter
getSourceType, getTargetType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameNormalizer

public NameNormalizer()
Method Detail

convert

public java.lang.String convert(java.lang.String sourceValue)
Description copied from interface: Converter
Concerts an object of type S to an object of type T

Specified by:
convert in interface Converter<java.lang.String,java.lang.String>
Overrides:
convert in class NormalizeSpaceConverter
Parameters:
sourceValue - the object to convert
Returns:
the converted object


Copyright © 2010. All Rights Reserved.