Skip to content

Instantly share code, notes, and snippets.

@KalpaD
Created July 19, 2015 03:35
CustomXpath Java implementation.
package custom.xpath;
import com.google.common.base.CaseFormat;
public class CustomXpath {
/**
* Returns lower camel case of the given String input.
*
* @param elementName local name of the xml element.
* @return Converted String as lower camel case.
* @see CaseFormat
*/
public static String toLowerCamelCase(String elementName) {
return CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_CAMEL, elementName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment