Difference between revisions of "Enumeration (Named Data Type)"
Jump to navigation
Jump to search
Petr.Bures (talk | contribs) |
Petr.Bures (talk | contribs) m |
||
Line 7: | Line 7: | ||
!XML | !XML | ||
!Description | !Description | ||
!Presence | |||
!Default | |||
|- | |- | ||
|Settings | |Settings | ||
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Settings</code> | |<sup>[[Legend of XML elements|[E]]]</sup> <code>Settings</code> | ||
| | |||
|requred | |||
| | | | ||
|- | |- | ||
Line 15: | Line 19: | ||
|<sup>[[Legend of XML elements|[:E:]]]</sup> <code>Item</code> | |<sup>[[Legend of XML elements|[:E:]]]</sup> <code>Item</code> | ||
|List of elements (only the [[Enumeration or Set Element (Named Data Type)|enumeration element]] type can be used) | |List of elements (only the [[Enumeration or Set Element (Named Data Type)|enumeration element]] type can be used) | ||
|required | |||
| | |||
|- | |- | ||
| Indent | | Indent | ||
| <sup>[[Legend of XML elements|[A]]]</sup> INT <code>Level</code> | | <sup>[[Legend of XML elements|[A]]]</sup> INT <code>Level</code> | ||
|Indentation of individual elements of the enumeration (zero or absence means unindented), it is written as an attribute to the elements, but it is stored with the enumeration | |Indentation of individual elements of the enumeration (zero or absence means unindented), it is written as an attribute to the elements, but it is stored with the enumeration | ||
|optional | |||
|0 | |||
|} | |} | ||
'''Example of Template XML''' | '''Example of Template XML''' |
Revision as of 09:25, 27 March 2022
Used to store a single value from a list of enumeration elements.
Template XML definition
Property | XML | Description | Presence | Default |
---|---|---|---|---|
Settings | [E] Settings
|
requred | ||
Item | [:E:] Item
|
List of elements (only the enumeration element type can be used) | required | |
Indent | [A] INT Level
|
Indentation of individual elements of the enumeration (zero or absence means unindented), it is written as an attribute to the elements, but it is stored with the enumeration | optional | 0 |
Example of Template XML
<Item ID="{EFEC9E11-6FFD-44B9-9FC8-AC6F1E892461}" ItemType="Enum">
<Name .... />
<Comment .... />
<Settings />
<Item ID="{E3237AF4-3F69-44F9-BD34-EA5BF71D5A3A}" ItemType="EnumItem">
<Name ... />
<Settings IsHeading="true" />
</Item>
<Item ID="{F14426ED-878B-4B30-ACF0-EC7062DDEA80}" ItemType="EnumItem">
<Name .... />
</Item>
<Item ID="{A99658F7-FD21-4F12-B1B8-7159E8C78F34}" ItemType="EnumItem" Level="1">
<Name .... />
</Item>
</Item>
Data XML definition
Property | XML | Description |
---|---|---|
Value | [A] STRING EnumValue
|
Contains GUID or unique text identifier. |
Example of Data XML
<Item ID="{EFEC9E11-6FFD-44B9-9FC8-AC6F1E892461}" EnumValue="{A99658F7-FD21-4F12-B1B8-7159E8C78F34}" />