java.lang.Object | |||
↳ | org.springframework.core.enums.AbstractLabeledEnum | ||
↳ | org.springframework.core.enums.AbstractGenericLabeledEnum | ||
↳ | org.springframework.core.enums.StringCodedLabeledEnum |
This class is deprecated.
as of Spring 3.0, in favor of Java 5 enums.
Implementation of LabeledEnum which uses a String as the code type.
Should almost always be subclassed, but for some simple situations it may be
used directly. Note that you will not be able to use unique type-based
functionality like LabeledEnumResolver.getLabeledEnumSet(type) in this case.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new StringCodedLabeledEnum instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the String code of this LabeledEnum instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Create a new StringCodedLabeledEnum instance.
code | the String code |
---|---|
label | the label (can be null )
|
Return the String code of this LabeledEnum instance.