Difference between revisions of "Common properties of Named Data"

From wiki.fine.cz
Jump to navigation Jump to search
(Created page with "{| class="wikitable" !Property !Template XML !Description |- |GUID |<sup>[A]</sup> STRING <code>ID</code> or <code>GUID</code> |Unikátní GUID prvku pojmenovaných dat, zapisuje se do atributu <code>ID</code>, pokud se použije v <code>ID</code> alternativní textový identifikátor, volitelně je uveden v atributu <code>GUID</code> |- |Name |<sup>[E]</sup> <code>Name</code> |Název prvku, může být překládán d...")
 
Line 6: Line 6:
|GUID
|GUID
|<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>ID</code> or <code>GUID</code>
|<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>ID</code> or <code>GUID</code>
|Unikátní GUID prvku pojmenovaných dat, zapisuje se do atributu <code>ID</code>, pokud se použije v <code>ID</code> alternativní textový identifikátor, volitelně je uveden v atributu <code>GUID</code>
|Unique GUID of the named data element, is written to the <code>ID</code> attribute, if an alternative text identifier is used in the <code>ID</code>, optionally specified in the <code>GUID</code> attribute
|-
|-
|Name
|Name
|<sup>[[Legend of XML elements|[E]]]</sup>  <code>Name</code>
|<sup>[[Legend of XML elements|[E]]]</sup>  <code>Name</code>
|Název prvku, může být překládán do více jazyků (viz [[Vícejazyčný text]])
|Element name, can be translated into multiple languages (see [[Multilingual text]])
|-
|-
|Comment
|Comment
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Comment</code>
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Comment</code>
|Volitelný komentář k prvku, může být překládán do více jazyků (viz [[Vícejazyčný text]])
|Optional comment, can be translated into multiple languages (see [[Multilingual text]])
|-
|-
|Item type
|Item type
|<sup>[[Legend of XML elements|[A]]]</sup> ENUM <code>ItemType</code>
|<sup>[[Legend of XML elements|[A]]]</sup> ENUM <code>ItemType</code>
|Typ prvku {<code>[[Pojmenovaná data textový řetězec|String]]</code>, <code>[[Pojmenovaná data číslo|Double]]</code> , <code>Enum</code>, <code>EnumItem</code>, <code>DateTime</code>, <code>Table</code>, <code>Group</code>, <code>SoilPattern</code>}
|Item type {String, Double, Enum, Set, EnumItem, DateTime, Table, Group, SoilPattern}
|-
|-
|Settings
|Settings
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Settings</code>
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Settings</code>
|Různá pro jednotlivé typy prvků
|Different for each element type
|-
|-
|&nbsp;&nbsp;&nbsp;&nbsp;Identifier
|&nbsp;&nbsp;&nbsp;&nbsp;Identifier
|&nbsp;&nbsp;&nbsp;&nbsp;<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>Ident</code>
|&nbsp;&nbsp;&nbsp;&nbsp;<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>Ident</code>
|Volitelný identifikátor, použitý zejména pro knihovny, které jej mají předepsán, může se pak promítnout do mapování
|The optional identifier, used especially for libraries that have it prescribed, can then be reflected in the [[Mapping]]
|}
|}


====Příklad zápisu XML v šabloně====
====Example of the Template XML====
<code><Item ID="{F12017FC-9AF4-4866-9FC2-BE7CF40B1A67}" ItemType="String"></code>
<code><Item ID="{F12017FC-9AF4-4866-9FC2-BE7CF40B1A67}" ItemType="String"></code>



Revision as of 16:09, 21 March 2022

Property Template 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 {String, Double, Enum, Set, EnumItem, DateTime, Table, Group, 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 the 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>