enum fields not displaying allowed values

When an enum is declared as a field then allowed values are not displayed. If an enum has a getter it works fine. The problem is that the Class.getDeclaringClass used in the ModelPropertyParser.parseField returns a class where the "isEnum" method returns false for enums. It is now fixed by using the Class.getType instead. The printing of Allowed Values for enums functionality should now be the same for both enums with and without getters. Tests provided cover both cases.