com.polarion.platform.persistence.IEnumeration
METHODS
Modifiers and Type | Name | Description |
---|---|---|
T | wrapOption(String) | Wraps any given ID into a valid option of this enumeration. This is needed to correctly handle any values coming e.g. from the storage. This method checks all the option definitions for all controlValues and returns the correct value if it appears in any of them. If no definition is found, then phantom option is created. |
T | wrapOption(String,Object) | Wraps any given ID into a valid option of this enumeration. This method checks only the option definition for given controlValue (even if |
T | wrapOption(String,IPObject) | Wraps any given ID into a valid option of this enumeration. This method checks only the option definition applicable to given object. If no definition is found, then phantom option is created. If pobject is not specified then it acts as {@link #wrapOption(String,Object)} with |
List | getAvailableOptions(Object) | Currently, the control value can be only {@link String} or {@link IEnumOption} . Passing in something else will result in {@link UnsupportedOperationException} |
String | getControlKey() | |
List | getAllOptions() | |
List | getAvailableOptions(Object,IEnumOption) | Currently, the control value can be only {@link String} or {@link IEnumOption} . Passing in something else will result in {@link UnsupportedOperationException} . |
T | getDefaultOption(Object) |
Back to Index