jaxb-codemodel icon indicating copy to clipboard operation
jaxb-codemodel copied to clipboard

getter for enum constants in JDefinedClass

Open glassfishrobot opened this issue 14 years ago • 2 comments

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); }

glassfishrobot avatar Jul 12 '11 12:07 glassfishrobot

Reported by hubert_wagener

glassfishrobot avatar Jul 12 '11 12:07 glassfishrobot

This issue was imported from java.net JIRA CODEMODEL-5

glassfishrobot avatar Apr 24 '17 07:04 glassfishrobot