I have ~30 resources each having ~10 attributes. I want to store some information about each attribute. Ex: its multiplicity, it RW (Read/Write), RO (Read only), longName, shortname.
So I was thinking of storing it in a Enum like:
public enum Attributes {
U_RESOURCETYPE(true, "RW", "resourceType", "rt"),
U_RESOURCEID(false, "RO", "resourceID","ri"),
//...
}
But this lead to 300 constants (30 resources * 10 attributes).
I could also use a config file or a Singleton Enum with a Map as member.
What is the best possible way to achieve this ??