I have an enumerator and a custom annotation that represents the enumerator's description:
public @interface Description {
String name() default "";
}
Enumerator:
public enum KeyIntermediaryService {
@Description(name="Descrizione WorldCheckService")
WORLDCHECKSERVICE,
@Description(name="blabla")
WORLDCHECKDOWNLOAD,
@Description(name="")
WORLDCHECKTERRORISM,
// ...
}
How can I get the enumerator description from within another class?