| org.springframework.core.enums.LabeledEnumResolver |
Known Indirect Subclasses
|
This interface is deprecated.
as of Spring 3.0, in favor of Java 5 enums.
Interface for looking up LabeledEnum instances.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Resolve a single
LabeledEnum by its identifying code. | |||||||||||
Resolve a single
LabeledEnum by its identifying code. | |||||||||||
Return a map of enumerations of a particular type.
| |||||||||||
Return a set of enumerations of a particular type.
| |||||||||||
Resolve a single LabeledEnum by its identifying code.
| type | the enum type |
|---|---|
| code | the enum code |
| IllegalArgumentException | if the code did not map to a valid instance |
|---|
Resolve a single LabeledEnum by its identifying code.
| type | the enum type |
|---|---|
| label | the enum label |
| IllegalArgumentException | if the label did not map to a valid instance |
|---|
Return a map of enumerations of a particular type. Each element in the
map should be a key/value pair, where the key is the enum code, and the
value is the LabeledEnum instance.
| type | the enum type |
|---|
LabeledEnum instance as value| IllegalArgumentException | if the type is not supported |
|---|
Return a set of enumerations of a particular type. Each element in the set should be an instance of LabeledEnum.
| type | the enum type |
|---|
| IllegalArgumentException | if the type is not supported |
|---|