jaxb-codemodel
jaxb-codemodel copied to clipboard
getter for enum constants in JDefinedClass
When using a visitor pattern to generate classes (enums), it would be helpful to get the map of enum constants from JDefinedClass defined so far.
I would much appreciate the introduction of a method like:
public Map<String, JEnumConstant> getEnumConstantsByName()
{ return Collections.unmodifiableMap(enumConstantsByName); }
Reported by hubert_wagener
This issue was imported from java.net JIRA CODEMODEL-5