Set (Named Data Type)

From wiki.fine.cz
Jump to navigation Jump to search

Used to store a multiple values from a list of enumeration elements.

Template XML definition

Common Properties

Property Template XML Description Presence Default
Settings [E] Settings required
    Preference of identifier     [A] BOOL PreferIdent If true, while composing the set description the Ident properties of enumeration elements are used, if defined, otherwise Name property is used

Template's PreferIdent has higher priority

optional false
    Allow strings     [A] BOOL AllowStrings User can enter strings and select from set elements, otherwise only select from set elements optional true
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 set optional 0
Range [E] Range optional
    Allow empty     [A] BOOL AllowEmpty User is not forced to select value optional true

Example of Template XML

<Item ID="{0F4958EB-8565-4720-93FC-7BFBE38A4F3F}" ItemType="Set">

  <Name .... />

  <Comment .... />

  <Settings PreferIdent="true" />

  <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

Common Properties

Property XML Description
Count of Set values [A] INT SetCount Number of set elements - GUIDs and optionally text values.
Set value [:E:] SetItem
Value     [A] STRING Value Contains GUIDs or unique text identifiers, optionally added text values (if AllowStrings).

Example of Data XML

<Item ID="{4ACF87F2-0D30-4402-B8D4-30BCAE886828}" SetCount="3">

 <SetItem Value="{35C9ED81-AD3F-496F-A4A3-24E536C7262D}" />

 <SetItem Value=" with " />

 <SetItem Value="{0F2DDE6F-A28A-47BF-9DA5-71046DD580B0}" />

</Item>