Package nz.org.riskscape.wizard
Class Choice
java.lang.Object
nz.org.riskscape.wizard.Choice
Represents a predefined option, or 'choice', that the user can make when configuring model parameter or wizard question.
-
Field Summary
FieldsModifier and TypeFieldDescriptionExtra help information to describe the choice -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean<T> TgetDerivedFrom(Class<T> asType) Convenience to return the underlying object in the correct typegetDescription(nz.org.riskscape.engine.i18n.TranslationContext context) getLabel(nz.org.riskscape.engine.i18n.TranslationContext context) getValue()The actual value that gets bound and turned into pipeline codeinthashCode()<T> Optional<T>Checks if the underlying object is of the given type, and returns it if sonz.org.riskscape.engine.bind.ParameterTemplate.ChoicetoParameter(nz.org.riskscape.engine.i18n.TranslationContext context)
-
Field Details
-
description
Extra help information to describe the choice
-
-
Constructor Details
-
Choice
Creates a new
Choiceinstance.- Parameters:
value- The actual value that gets bound and turned into pipeline codelabel- A friendly label for the choicedescription- Extra help information to describe the choicederivedFrom-
-
-
Method Details
-
getDescription
-
getLabel
-
toParameter
public nz.org.riskscape.engine.bind.ParameterTemplate.Choice toParameter(nz.org.riskscape.engine.i18n.TranslationContext context) - Returns:
- a choice that can be passed up to the Platform UI
-
getDerivedFrom
Convenience to return the underlying object in the correct type
-
isA
Checks if the underlying object is of the given type, and returns it if so
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getValue
The actual value that gets bound and turned into pipeline code
-