Here you can find the source of className(String nodeName)
public static String className(String nodeName)
//package com.java2s; //License from project: Apache License public class Main { public static String className(String nodeName) { return toJavaIdentifier(nodeName, true); }/* w ww. j a v a2 s . c om*/ public static String toJavaIdentifier(String nodeName, boolean boundary) { StringBuilder result = new StringBuilder(); for (char c : nodeName.toCharArray()) { if (c == '_') { boundary = true; } else if (boundary) { result.append(c); boundary = false; } else { result.append(Character.toLowerCase(c)); } } return result.toString(); } }