@groovy.transform.CompileStatic @groovy.transform.InheritConstructors abstract class GloopChoicesObject<T> extends GloopObject<T> implements XmlAttributable
an abstract class that allows subclasses to have a list of valid values for this object and the ability to have values that aren't in the choices list
< - T >| Type | Name and description |
|---|---|
boolean |
allowOtherValues |
java.util.Set<T> |
choices |
boolean |
xmlAttribute |
| Constructor and description |
|---|
GloopChoicesObject
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addChoice(T choice) |
|
java.lang.Object |
clone()clones choices |
|
java.lang.String |
getGloopDocString(int indent)overridden to add the choices to the gloop doc |
|
void |
setChoices(java.util.Collection<T> choices) |
|
void |
setValue(java.lang.Object value) |
|
protected void |
validateValue()overridden to ensure the values are valid choices |
clones choices
overridden to add the choices to the gloop doc @return
overridden to ensure the values are valid choices
Groovy Documentation