JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   16.  'JeeWiz' Reference
 


16.1 MetaChoice Object

Used on
metaPropertyBase
DescriptionThe 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.
Inherited
properties
name (base property)

description (base property)

template (base property)

text (base property)

jwpattern (base property)

 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.