|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LabeledEnumResolver
Interface for looking up LabeledEnum instances.
| Method Summary | |
|---|---|
LabeledEnum |
getLabeledEnumByCode(Class type,
Comparable code)
Resolve a single LabeledEnum by its identifying code. |
LabeledEnum |
getLabeledEnumByLabel(Class type,
String label)
Resolve a single LabeledEnum by its identifying code. |
Map |
getLabeledEnumMap(Class type)
Return a map of enumerations of a particular type. |
Set |
getLabeledEnumSet(Class type)
Return a set of enumerations of a particular type. |
| Method Detail |
|---|
Set getLabeledEnumSet(Class type) throws IllegalArgumentException
type - the enum type
IllegalArgumentException - if the type is not supportedMap getLabeledEnumMap(Class type) throws IllegalArgumentException
LabeledEnum instance.
type - the enum type
LabeledEnum instance as value
IllegalArgumentException - if the type is not supportedLabeledEnum getLabeledEnumByCode(Class type, Comparable code) throws IllegalArgumentException
LabeledEnum by its identifying code.
type - the enum typecode - the enum code
IllegalArgumentException - if the code did not map to a valid instanceLabeledEnum getLabeledEnumByLabel(Class type, String label) throws IllegalArgumentException
LabeledEnum by its identifying code.
type - the enum typelabel - the enum label
IllegalArgumentException - if the label did not map to a valid instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||