#\#CIF_2.0
##############################################################################
#                                                                            #
#       TEST DICTIONARY THAT CONTAINS DEFINITIONS WITH INCORRECTLY USED      #
#                     ENUMERATION DEFAULT INDEX ID VALUES                    #
#                                                                            #
##############################################################################
data_TEST_ENUM_DEFAULT_INDEX_ID_DIC
_dictionary.title            TEST_ENUM_DEFAULT_INDEX_ID_DIC
_dictionary.class            Instance
_dictionary.version          1.0.0
_dictionary.date             2021-08-21
_dictionary.uri              http://www.fake.org/test_enum_default_index_id.dic
_dictionary.ddl_conformance  4.0.2
_dictionary.namespace        TesEnumDefaultIndexIdDic
_description.text
;
 This dictionary purposely contains definitions with an incorrectly used
 '_enumeration.def_index_id' attribute.
;
loop_
_dictionary_audit.version
_dictionary_audit.date
_dictionary_audit.revision
1.0.0 2021-08-21 'Creating the dictionary.'

save_TEST_ENUM_DEFAULT_INDEX_ID_HEAD

_definition.id               TEST_ENUM_DEFAULT_INDEX_ID_HEAD
_definition.scope            Category
_definition.class            HEAD
_definition.update           2021-08-21
_description.text
;
 The HEAD category of the dictionary.
;
_name.category_id            TEST_ENUM_DEFAULT_INDEX_ID_DIC
_name.object_id              TEST_ENUM_DEFAULT_INDEX_ID_HEAD

save_

save_VALID_ENUM_DEFAULT_INDEX_ID

_definition.id               VALID_ENUM_DEFAULT_INDEX_ID
_definition.scope            Category
_definition.class            Set
_definition.update           2021-08-21
_description.text
;
 Data items in the VALID_ENUM_DEFAULT_INDEX_ID category contain
 definitions that correctly use the '_enumeration.def_index_id'
 attribute.
;
_name.category_id            TEST_ENUM_DEFAULT_INDEX_ID_HEAD
_name.object_id              VALID_ENUM_DEFAULT_INDEX_ID

save_

save_INVALID_ENUM_DEFAULT_INDEX_ID

_definition.id               INVALID_ENUM_DEFAULT_INDEX_ID
_definition.scope            Category
_definition.class            Set
_definition.update           2021-08-21
_description.text
;
 Data items in the INVALID_ENUM_DEFAULT_INDEX_ID category contain
 definitions that incorrectly use the '_enumeration.def_index_id'
 attribute.
;
_name.category_id            TEST_ENUM_DEFAULT_INDEX_ID_HEAD
_name.object_id              INVALID_ENUM_DEFAULT_INDEX_ID

save_

save_valid_enum_default_index_id.index_item

_definition.id               '_valid_enum_default_index_id.index_item'
_definition.update           2021-08-21
_description.text
;
 Data item definition that is referenced by other data items.
;
_name.category_id            valid_enum_default_index_id
_name.object_id              index_item
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text

save_

save_valid_enum_default_index_id.valid_ref

_definition.id               '_valid_enum_default_index_id.valid_ref'
_definition.update           2021-08-21
_description.text
;
 Data item definition that contains the '_enumeration.def_index_id' attribute
 that references a non-existent data item.
;
_name.category_id            valid_enum_default_index_id
_name.object_id              valid_ref
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text
_enumeration.def_index_id    '_valid_enum_default_index_id.index_item'
loop_
    _enumeration_default.index
    _enumeration_default.value
        a state_1
        b state_2
        c state_1

save_

save_invalid_enum_default_index_id.undefined_ref

_definition.id               '_invalid_enum_default_index_id.undefined_ref'
_definition.update           2021-08-21
_description.text
;
 Data item definition that contains the '_enumeration.def_index_id' attribute
 that references a non-existent data item.
;
_name.category_id            invalid_enum_default_index_id
_name.object_id              undefined_ref
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text
_enumeration.def_index_id    '_undefined.item'
loop_
    _enumeration_default.index
    _enumeration_default.value
        a state_1
        b state_2
        c state_1

save_

save_invalid_enum_default_index_id.self_ref

_definition.id               '_invalid_enum_default_index_id.self_ref'
_definition.update           2021-08-21
_description.text
;
 Data item definition that contains the '_enumeration.def_index_id' attribute
 that references the same definition.
;
_name.category_id            invalid_enum_default_index_id
_name.object_id              self_ref
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text
_enumeration.def_index_id    '_invalid_enum_default_index_id.self_ref'
loop_
    _enumeration_default.index
    _enumeration_default.value
        a state_1
        b state_2
        c state_1

save_

save_invalid_enum_default_index_id.no_default_value

_definition.id               '_invalid_enum_default_index_id.no_default_value'
_definition.update           2021-08-21
_description.text
;
 Data item definition that contains the '_enumeration.def_index_id' attribute,
 but does not contain the '_enumeration_default.value' data item.
;
_name.category_id            invalid_enum_default_index_id
_name.object_id              no_default_value
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text
_enumeration.def_index_id    '_valid_enum_default_index_id.index_item'

save_
