Is it possible to convert a property file into an enum.
I have a propoerty file with lot of settings. for example
equipment.height
equipment.widht
e
Java has static typing. That means, you can't create types dynamically. So, the answer is no. You can't convert a property file into a enum.
What you could do is generate an enum
from that properties file. Or, use a Dictionary (Map) to access your properties with something like:
equipment.get("height");