build enum data from class name