Class ChoiceOptionWithCost
java.lang.Object
org.ametys.plugins.forms.question.sources.ChoiceOption
org.ametys.plugins.forms.question.sources.ChoiceOptionWithCost
Class for creating choices options with costs
-
Constructor Summary
ConstructorDescriptionChoiceOptionWithCost
(Object value, Double cost) Create aChoiceOptionWithCost
-
Method Summary
-
Constructor Details
-
ChoiceOptionWithCost
Create aChoiceOptionWithCost
- Parameters:
value
- value of optioncost
- cost of option
-
-
Method Details
-
getCost
Get the cost of option- Returns:
- the cost
-
getAttributes
Description copied from class:ChoiceOption
Get all attributes for this option- Overrides:
getAttributes
in classChoiceOption
- Returns:
- the attributes
-