Category:Enumset

From JRapid

Jump to: navigation, search

Enumsets are named lists of fixed values that can be used to restrict the values of a property.

The enumset element is a global element used to define the values for an enum. It may be reused by many enum-type properties throughout the application.

Usage:

<enumset 
        name = NAME
        privileges = PRIVILEGES
        (enum*) 
/>

Example:

The "GenderEnum" enumset can be used in any entity which specifies a "gender" property.

"Gender enumset"
 <enumset name="GenderEnum">
      <enum value="M">Male</enum>
      <enum value="F">Female</enum>
 </enumset>

The GenderEnum enumset is then reused in the Seller entity and in the Person entity.

<entity name="Seller" label="Seller">
    ...
    <property enumset="Gender" label="Gender" name="gender" type="enum"/>
    ...
</entity>
<entity name="Person" label="Person">
    ...
    <property enumset="Gender" label="Gender" name="gender" type="enum"/>
    ...
</entity>

See also:

Pages in category "Enumset"

This category contains only the following page.

P