| Description | The meta-choice is a listed within a property (on a 'choice' list) and holds one of the allowed values for a String-valued property.
For example, here is the definition of the choices for the Java 'access':
<choice name="private" description="Access restricted to defining class."/>
<choice name="protected" description="Access restricted to sub-classes."/>
<choice name="public" description="Accessible to all classes."/>
The allowed value is specified as the name of the choice. A description can also be added but is optional.
Only these properties of meta-choice are used.
When one or more choices are listed for a property, only those choices are allowed on input. Validation code is generated to check for the correct values when the property is read in.
If a choice is added to a property whose type is not 'String', the generated validation code will cause a compilation error when the meta-model is built.
|