system_info_generated: Rearrange <enum> be a child of <key> 51/308151/1
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 14 Mar 2024 06:46:52 +0000 (15:46 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 14 Mar 2024 08:48:59 +0000 (17:48 +0900)
commitc8fd6b2bfba370a7b6d6403d74630a89687406c0
treeba9905fc83cde0da954a4ded687ed05bd788c00b
parentba147563e97665ca702e15889189bd716edeca82
system_info_generated: Rearrange <enum> be a child of <key>

Previously, the <key> and <enum> are at the same level. Changed it so
that the <key> now adopts an <enum> as a child only when its @type="enum".
The implementation follows the concept that the <enum> is subordinate
to the <key>. That is, the operations of the class 'TizenFeatureEnum'
are controlled by its parent, the class 'TizenFeature'.
  - Parsing 'TizenFeature' is followed by parsing 'TizenFeatureEnum'
  - Printing 'TizenFeature' is followed by printing 'TizenFeatureEnum'

Change-Id: I683c84823f67fce91c8f5703a037f4bf7c24adbf
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
SystemInfoGenerator/ModelConfigParser.py
SystemInfoGenerator/SystemInfoGenerator.py
SystemInfoGenerator/SystemInfoUtilityGenerator.py
SystemInfoGenerator/TizenFeature.py
SystemInfoGenerator/__main__.py