Spring Data Core

org.springframework.data.util
Class ParsingUtils

java.lang.Object
  extended by org.springframework.data.util.ParsingUtils

public abstract class ParsingUtils
extends Object

Utility methods for String parsing.

Since:
1.5
Author:
Oliver Gierke

Method Summary
static String reconcatenateCamelCase(String source, String delimiter)
          Reconcatenates the given camel-case source String using the given delimiter.
static List<String> splitCamelCase(String source)
          Splits up the given camel-case String.
static List<String> splitCamelCaseToLower(String source)
          Splits up the given camel-case String and returns the parts in lower case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

splitCamelCase

public static List<String> splitCamelCase(String source)
Splits up the given camel-case String.

Parameters:
source - must not be null.
Returns:

splitCamelCaseToLower

public static List<String> splitCamelCaseToLower(String source)
Splits up the given camel-case String and returns the parts in lower case.

Parameters:
source - must not be null.
Returns:

reconcatenateCamelCase

public static String reconcatenateCamelCase(String source,
                                            String delimiter)
Reconcatenates the given camel-case source String using the given delimiter. Will split up the camel-case String and use an uncapitalized version of the parts.

Parameters:
source - must not be null.
delimiter - must not be null.
Returns:

Spring Data Core

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.