public static String toClassName(String commonName,Category category){
  if (StringUtils.isEmpty(commonName)) {
    return "";
  }
  String suffix;
switch (category) {
case BEHAVIOR:
case COMPONENT:
case CONTROLLER:
case FIXTURE:
case HELPER:
case SHELL:
case TABLE:
case TASK:
case TEST_CASE:
case VIEW:
case VIEW_CELL:
    suffix=category.getSuffix();
  break;
default :
return commonName;
}
return commonName.concat(suffix);
}

public static String toClassName ( String commonName , Category category ) { if ( StringUtils . isEmpty ( commonName ) ) { return "" ; } String suffix ; switch ( category ) { case BEHAVIOR : case COMPONENT : case CONTROLLER : case FIXTURE : case HELPER : case SHELL : case TABLE : case TASK : case TEST_CASE : case VIEW : case VIEW_CELL : suffix = category . getSuffix ( ) ; break ; default : return commonName ; } return commonName . concat ( suffix ) ; }
convert to a common name to a class name for a category . e . g . some - > somecomponent
