#\#CIF_2.0
##############################################################################
#                                                                            #
#        TEST DICTIONARY THAT CONTAINS DEFINITIONS WITH AN INCORRECTLY       #
#                       USED DEFINITION CLASS ATTRIBUTE                      #
#                                                                            #
##############################################################################
data_DEFINITION_CLASS_DIC
_dictionary.title            TEST_DEFINITION_CLASS_DIC
_dictionary.class            Instance
_dictionary.version          1.0.0
_dictionary.date             2021-10-14
_dictionary.uri              https://www.fake.org/definition_class_issue.dic
_dictionary.ddl_conformance  4.2.0
_dictionary.namespace        SoftwareTest
_description.text
;
 This dictionary purposely contains definitions with an incorrectly used
 '_definition.class' attribute.
;
loop_
_dictionary_audit.version
_dictionary_audit.date
_dictionary_audit.revision
1.0.0 2021-10-14 'Initial release of the dictionary.'

save_TEST_DEFINITION_CLASS_HEAD

_definition.id               TEST_DEFINITION_CLASS_HEAD
_definition.scope            Category
_definition.class            HEAD
_definition.update           2021-10-14
_description.text
;
 The HEAD category of the dictionary.
;
_name.category_id            TEST_DEFINITION_CLASS_DIC
_name.object_id              TEST_DEFINITION_CLASS_HEAD

save_

save_INVALID_DEFINITION_CLASS

_definition.id               INVALID_DEFINITION_CLASS
_definition.scope            Category
_definition.class            Set
_definition.update           2021-10-14
_description.text
;
 Definitions of data items in the INVALID_DEFINITION_CLASS category
 incorrectly use the '_definition.class' attribute.
;
_name.category_id            TEST_DEFINITION_CLASS_HEAD
_name.object_id              INVALID_DEFINITION_CLASS

save_

save_invalid_definition_class.item_as_head

_definition.id               '_invalid_definition_class.item_as_head'
_definition.scope            Item
_definition.class            Head
_definition.update           2021-10-14
_description.text
;
 Data item that incorrectly has the '_definition.scope' attribute
 value set to 'Head'.
;
_name.category_id            invalid_definition_class
_name.object_id              item_as_head
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text

save_

save_invalid_definition_class.item_as_loop

_definition.id               '_invalid_definition_class.item_as_loop'
_definition.scope            Item
_definition.class            Loop
_definition.update           2021-10-14
_description.text
;
 Data item that incorrectly has the '_definition.scope' attribute
 value set to 'Loop'.
;
_name.category_id            invalid_definition_class
_name.object_id              item_as_loop
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text

save_

save_invalid_definition_class.item_as_set

_definition.id               '_invalid_definition_class.item_as_set'
_definition.scope            Item
_definition.class            Set
_definition.update           2021-10-14
_description.text
;
 Data item that incorrectly has the '_definition.scope' attribute
 value set to 'Set'.
;
_name.category_id            invalid_definition_class
_name.object_id              item_as_set
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text

save_

save_INVALID_DEFINITION_CLASS_FUNCTIONS

_definition.id               INVALID_DEFINITION_CLASS_FUNCTIONS
_definition.scope            Category
_definition.class            Functions
_definition.update           2021-10-14
_description.text
;
 Definitions of data items in the INVALID_DEFINITION_CLASS_FUNCTIONS category
 incorrectly use the '_definition.class' attribute.
;
_name.category_id            TEST_DEFINITION_CLASS_HEAD
_name.object_id              INVALID_DEFINITION_CLASS_FUNCTIONS

save_

save_invalid_definition_class_functions.no_method

_definition.id               '_invalid_definition_class_functions.no_method'
_definition.scope            Item
_definition.class            Functions
_definition.update           2021-10-14
_description.text
;
 Data item that has the '_definition.scope' attribute with value 'Functions',
 but does not contain the '_method.expression' attribute.
;
_name.category_id            invalid_definition_class_functions
_name.object_id              no_method
_type.purpose                Describe
_type.source                 Assigned
_type.container              Single
_type.contents               Text

save_

save_INVALID_DEFINITION_CLASS_LOOP_NO_KEY

_definition.id               INVALID_DEFINITION_CLASS_LOOP_NO_KEY
_definition.scope            Category
_definition.class            Loop
_definition.update           2021-10-14
_description.text
;
 Definitions of data items in the INVALID_DEFINITION_CLASS_LOOP_NO_KEY
 category has the the '_definition.class' attribute with value 'Loop',
 but does not contain the '_category_key.name' attribute.
;
_name.category_id            TEST_DEFINITION_CLASS_HEAD
_name.object_id              INVALID_DEFINITION_CLASS_LOOP_NO_KEY

save_

save_INVALID_DEFINITION_CLASS_DATUM

_definition.id               INVALID_DEFINITION_CLASS_DATUM
_definition.scope            Category
_definition.class            Datum
_definition.update           2021-10-14
_description.text
;
 Definitions of data items in the INVALID_DEFINITION_CLASS_LOOP_NO_KEY
 category has the the '_definition.class' attribute with value 'Datum'
 that should normally only be used with data item definitions.
;
_name.category_id            TEST_DEFINITION_CLASS_HEAD
_name.object_id              INVALID_DEFINITION_CLASS_DATUM

save_
