Difference between revisions of "Named Data Template"

From wiki.fine.cz
Jump to navigation Jump to search
(Created page with "ndt")
 
m
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
ndt
Named Data Template defines input of data for various items, e. g. field test, etc.
 
==== Template XML definition ====
Template consists of individual items of various types, documented in detail in [[Named Data]].
{| class="wikitable"
!Property
!XML
!Description
!Presence
!Default
!Version
|-
|GUID
|<sup>[[Legend of XML elements|[A]]]</sup> STRING GUID
|GUID of the Template
|required
|
|
|-
|Preference of Ident
|<sup>[[Legend of XML elements|[A]]]</sup> BOOL <code>PreferIdent</code>
|Use [[Common properties of Named Data|Identifier]] in input labels if specified, otherwise use Name
|optional
|<code>false</code>
|
|-
|Name specification
|<sup>[[Legend of XML elements|[A]]]</sup> ENUM <code>NameSpecial</code>
|Specification of a name data [[Special named data types|special type]]
|optional
|if not specified, the first data type string
|2024
|-
|Template name
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Name</code>
|Template Name, used in multi templates
|oprional
|empty
|
|-
|Item
|<sup>[[Legend of XML elements|[:E:]]]</sup> <code>Item</code>
|List of named data types
| required
|
|
|}
 
 
'''Example of template XML'''
 
<code><Template GUID="{2BBF3527-B079-423B-9A34-AC5666693C36}" PreferIdent="false"></code>
 
<code>  <Name Lang="CS" Text="Vrt" /></code>
 
<code>  <Item ID="{F12017FC-9AF4-4866-9FC2-BE7CF40B1A67}" ItemType="String"></code>
 
<code>    <Name Lang="CS" Text="Název zkoušky" /></code>
 
<code>    <Settings /></code>
 
<code>  </Item></code>
 
<code>  <Item ..... /></code>
 
<code>  <Item ..... /></code>
 
<code>  <Item ..... /></code>
 
<code></Template></code>

Latest revision as of 22:42, 3 October 2023

Named Data Template defines input of data for various items, e. g. field test, etc.

Template XML definition

Template consists of individual items of various types, documented in detail in Named Data.

Property XML Description Presence Default Version
GUID [A] STRING GUID GUID of the Template required
Preference of Ident [A] BOOL PreferIdent Use Identifier in input labels if specified, otherwise use Name optional false
Name specification [A] ENUM NameSpecial Specification of a name data special type optional if not specified, the first data type string 2024
Template name [E] Name Template Name, used in multi templates oprional empty
Item [:E:] Item List of named data types required


Example of template XML

<Template GUID="{2BBF3527-B079-423B-9A34-AC5666693C36}" PreferIdent="false">

<Name Lang="CS" Text="Vrt" />

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

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

    <Settings />

  </Item>

  <Item ..... />

  <Item ..... />

  <Item ..... />

</Template>