Package com.polarion.alm.tracker.model
Interface IPriorityEnumeration
- All Superinterfaces:
IEnumeration
- Author:
- dobisekm
-
Method Summary
Modifier and TypeMethodDescriptiongetClosestStandardOpt
(float value) Tries to find closest standard priority option with lower value.getClosestStandardOpt
(float value, IPObject pobject) Tries to find closest standard priority option with lower value.getClosestStandardOpt
(float value, Object controlValue) Tries to find closest standard priority option with lower value.wrapOption
(float value) Shortcut method, converts the float to string and calls theIEnumeration.wrapOption(String)
.wrapOption
(float value, IPObject pobject) Shortcut method, converts the float to string and calls theIEnumeration.wrapOption(String, IPObject)
.wrapOption
(float value, Object controlValue) Shortcut method, converts the float to string and calls theIEnumeration.wrapOption(String, Object)
.Methods inherited from interface com.polarion.platform.persistence.IEnumeration
getAllOptions, getAvailableOptions, getAvailableOptions, getControlKey, getDefaultOption, wrapOption, wrapOption, wrapOption
-
Method Details
-
getClosestStandardOpt
Tries to find closest standard priority option with lower value. Catches the case when value is lower than the lowest standard option.- Parameters:
value
-- Returns:
- The option, can be
null
if there are no options defined.
-
getClosestStandardOpt
Tries to find closest standard priority option with lower value. Catches the case when value is lower than the lowest standard option.This method checks only the option definition for given controlValue (even if
null
).- Parameters:
value
-controlValue
- control value- Returns:
- The option, can be
null
if there are no options defined. - Since:
- 3.1.1
- See Also:
-
getClosestStandardOpt
Tries to find closest standard priority option with lower value. Catches the case when value is lower than the lowest standard option.This method checks only the option definition applicable to given object.
If pobject is not specified then it acts as
getClosestStandardOpt(float, Object)
withnull
control value.- Parameters:
value
-pobject
- persistence object- Returns:
- The option, can be
null
if there are no options defined. - Since:
- 3.1.1
- See Also:
-
wrapOption
Shortcut method, converts the float to string and calls theIEnumeration.wrapOption(String)
.The string conversion is done with the precision of three decimal digits (e.g. 99.999).
- Parameters:
value
-- Returns:
- The option, never
null
.
-
wrapOption
Shortcut method, converts the float to string and calls theIEnumeration.wrapOption(String, Object)
.The string conversion is done with the precision of three decimal digits (e.g. 99.999).
- Parameters:
value
-controlValue
-- Returns:
- The option, never
null
. - Since:
- 3.1.1
- See Also:
-
wrapOption
Shortcut method, converts the float to string and calls theIEnumeration.wrapOption(String, IPObject)
.The string conversion is done with the precision of three decimal digits (e.g. 99.999).
- Parameters:
value
-pobject
-- Returns:
- The option, never
null
. - Since:
- 3.1.1
- See Also:
-