New method getEnum.