public static RefactoringStatus checkTypeName(String name,IJavaElement context){
  if (name.indexOf(".") != -1)   return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.Checks_no_dot);
 else   return checkName(name,JavaConventionsUtil.validateJavaTypeName(name,context));
}

public static RefactoringStatus checkTypeName ( String name , IJavaElement context ) { if ( name . indexOf ( "." ) != - 1 ) return RefactoringStatus . createFatalErrorStatus ( RefactoringCoreMessages . Checks_no_dot ) ; else return checkName ( name , JavaConventionsUtil . validateJavaTypeName ( name , context ) ) ; }
checks if the given name is a valid java type name .
