org.specrunner.util.string
Interface IStringNormalizer

All Known Implementing Classes:
StringNormalizerDefault

public interface IStringNormalizer

Given a string return it normalized.

Author:
Thiago Santos

Method Summary
 String camelCase(String text)
          Camel case characters, as Java attributes or methods.
 String camelCase(String text, boolean changeFirst)
          Normalize a string using camel case rules.
 String clean(String str)
          Remove all Latin characters.
 String normalize(String str)
          Normalize a string, removing white spaces.
 

Method Detail

normalize

String normalize(String str)
Normalize a string, removing white spaces.

Parameters:
str - The original string.
Returns:
The normalized version.

camelCase

String camelCase(String text)
Camel case characters, as Java attributes or methods.

Parameters:
text - The text to change.
Returns:
The text changed.

camelCase

String camelCase(String text,
                 boolean changeFirst)
Normalize a string using camel case rules.

Parameters:
text - The text to be normalized.
changeFirst - Flag to upper first character also.
Returns:
The normalized string.

clean

String clean(String str)
Remove all Latin characters.

Parameters:
str - The string to be normalized.
Returns:
The cleaned string.


Copyright © 2015. All rights reserved.