@groovy.transform.CompileStatic @groovy.transform.InheritConstructors abstract class GloopChoicesObject extends GloopObject
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 >Fields inherited from class | Fields |
---|---|
class GloopObject |
DEFAULT_NAMESPACE |
Type | Name and description |
---|---|
boolean |
allowOtherValues |
java.util.Set<T> |
choices |
boolean |
xmlAttribute |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addChoice(T choice) |
|
java.lang.Object |
clone() clones choices |
|
java.lang.String |
getGloopDocString(int indent = 0 ) 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 |
Methods inherited from class | Name |
---|---|
class GloopObject |
asJson, asJson, asJson, asType, asXml, asXml, asYaml, asYaml, asYaml, call, clone, clone, commentsString, convertValue, each, eachWithIndex, escapeGloopDocParameter, find, fromGloopDoc, fromJson, fromJson, fromJson, fromXml, fromXml, fromXml, fromYaml, fromYaml, fromYaml, getAlias, getAt, getFilename, getFormattedValue, getGloopDocString, getGloopDocType, getNamespaceUri, getPathName, getRawDefaultValue, getRawValue, getType, getTypeClass, getValue, getValue, iconName, isEmpty, isNullValue, iterator, leftShift, marshall, minus, parseVal, plus, putAt, rightShift, setArray, setName, setNamespaceUri, setTypeClass, setValue, size, throwClassCastException, toString, toolTipText, treeString, treeSuffix, validate, validateValue |
clones choices
overridden to add the choices to the gloop doc
overridden to ensure the values are valid choices