Package org.conical.common.bbl.enums.ifc
Interface Named
- All Known Implementing Classes:
Ethnicity
,Handedness
,NameSuffix
,Race
,Religion
,Sex
,SexualOrientation
,State
public interface Named
This is a convenience interface that all BBL enums should implement. The
purpose is for all enums to have a "name" attribute (not just the method), since
a lot of Java frameworks (e.g. Struts) use attribute names + reflection to
retrieve data from objects. The implementation for your enum may vary but should
almost certainly return simply "name()" so that such frameworks can access the
name of your enum.
- Author:
- rdoherty
-
Method Summary
-
Method Details
-
getName
String getName()Convenience method to provide getter access to name().- Returns:
- same as name()
-