next up previous contents
Next: ITEM_RELATED Up: DDL Definitions Describing Previous: ITEM_METHODS

ITEM_RANGE

 

The item_range category defines a restricted range of permissible values for a data item. The restrictions are specified as one or more sets of the items _item_range.minimum and _item_range.maximum. These items give the lower and upper bounds for a permissible range. To specify that an item value may be equal to the upper or lower bound or a range, the minimum and maximum values of the range are equated. The special STAR value indicating that a data value is not appropriate can be used to avoid expressing an upper or lower bound value. When limits are applied to character data, comparisons are made following the collating sequence of the character set. When limits are applied to abstract data types, then methods must be provided to define any comparison operations which must be performed to check the boundary conditions.

The DDL for the item_range category is given in the following section.

save_ITEM_RANGE

    _category.description
;
     The range of permissible values of a data item.  When multiple
     ranges are specified they are interpreted sequentially 
     using a logical OR.  To specify that an item value may be
     equal to a boundary value,  specify an item range where the 
     maximum and mimimum values equal the boundary value.
;
    _category.id                         item_range
    _category.mandatory_code             no 
     loop_
    _category_key.name                  '_item_range.name'
                                        '_item_range.minimum'
                                        '_item_range.maximum'
     loop_
     _category_group.id                'ddl_group'
                                       'item_group'
     save_


save__item_range.minimum

    _item_description.description
;
     Minimum permissible value of a data item or the lower bound
     of a permissible range.  ( minimum value <  data value)
;
    _item.name                         '_item_range.minimum'
    _item.category_id                    item_range
    _item.mandatory_code                 no 
    _item_type.code                      any
     save_


save__item_range.maximum

    _item_description.description
;
     Maximum permissible value of a data item or the upper bound
     of a permissible range.  ( maximum value >  data value)
;
    _item.name                         '_item_range.maximum'
    _item.category_id                    item_range
    _item.mandatory_code                 no 
    _item_type.code                      any
     save_



John Westbrook
Thu Apr 11 06:25:55 EDT 1996