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
Modifier and TypeFieldDescriptionExtra help information to describe the choice -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
<T> T
getDerivedFrom
(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 codeint
hashCode()
<T> Optional<T>
Checks if the underlying object is of the given type, and returns it if sonz.org.riskscape.engine.bind.ParameterTemplate.Choice
toParameter
(nz.org.riskscape.engine.i18n.TranslationContext context)
-
Field Details
-
description
Extra help information to describe the choice
-
-
Constructor Details
-
Choice
-
-
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
-