Difference between revisions of "Common properties of Named Data"

From wiki.fine.cz
Jump to navigation Jump to search
Line 29: Line 29:
|The optional identifier, used especially for libraries that have it prescribed, can then be reflected in the [[Mapping]]
|The optional identifier, used especially for libraries that have it prescribed, can then be reflected in the [[Mapping]]
|}
|}
'''Example of Template XML'''


==== Example of Template XML====
<code><Item ID="{F12017FC-9AF4-4866-9FC2-BE7CF40B1A67}" ItemType="String"></code>
<code><Item ID="{F12017FC-9AF4-4866-9FC2-BE7CF40B1A67}" ItemType="String"></code>


Line 50: Line 50:


<code></Item></code>
<code></Item></code>
====Data XML definition====
{| class="wikitable"
!Property
!XML
!Description
|-
|Identifier
|<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>ID</code>
|<code>ID</code> can be either a GUID or a unique text identifier corresponding to <code>ID</code> / <code>GUID</code> attribute of Template Item
|}
'''Example of Data XML'''
<code><Item ID="{B1DC392E-0C1A-4016-8B77-1CD25D89DC65}" StrValue="Pokus obsah" /></code>

Revision as of 14:55, 22 March 2022

Template XML definition

Property XML Description
GUID [A] STRING ID or GUID Unique GUID of the named data element, is written to the ID attribute, if an alternative text identifier is used in the ID, optionally specified in the GUID attribute
Name [E] Name Element name, can be translated into multiple languages (see Multilingual text)
Comment [E] Comment Optional comment, can be translated into multiple languages (see Multilingual text)
Item type [A] ENUM ItemType Item type {[V] String, [V] Double, [V] Enum, [V] Set, [V] EnumItem, [V] DateTime, [V] Table, [V] Group, [V] SoilPattern}
Settings [E] Settings Different for each element type
    Identifier     [A] STRING Ident The optional identifier, used especially for libraries that have it prescribed, can then be reflected in the Mapping

Example of Template XML

<Item ID="{F12017FC-9AF4-4866-9FC2-BE7CF40B1A67}" ItemType="String">

  <Name>

    <Item Lang="CS" Text="Název zkoušky" />

    <Item Lang="EN" Text="Test name" />

  </Name>

  <Comment>

    <Item Lang="CS" Text="General / Fixed" />

  </Comment>

  <Settings Ident="ID123" />

</Item>

Data XML definition

Property XML Description
Identifier [A] STRING ID ID can be either a GUID or a unique text identifier corresponding to ID / GUID attribute of Template Item

Example of Data XML

<Item ID="{B1DC392E-0C1A-4016-8B77-1CD25D89DC65}" StrValue="Pokus obsah" />