[A-Za-z_][A-Za-z_0-9]*
nil
is a reserved name for the nil type)<type name="bool"> <type name="position">
isAbstract
attribute which specifies if the type is abstract, meaning that it can not be directly used in a Data or a structure field.<types> <simpleType name="int" baseType="int" /> <simpleType name="float" baseType="float" /> <structType name="abstractPosition" isAbstract="true"> <field name="latitude" type="float" /> <field name="lontitude" type="float" /> </structType> <structType name="Position2Element" > <extends name="abstractPosition" /> <field name="elementID" type="int" /> </structType> </types>
namespace
element as a parent of the types declaration[1]
<types> <namespace uri="http://mydomain.com/common" > <type name="bool"> <type name="position"> </namespace> </services>
<types> <simpleType name="bool" baseType="boolean" /> <simpleType name="int" baseType="int" /> <enumType name="intEnum" > <enumValue name="ONE" /> <enumValue name="TWO" /> </enumType> <arrayType name="arrayOfInt" type="int" /> <structType name="struct"> <field name="intArray" type="arrayOfInt" /> <field name="enum" type="intEnum" /> <field name="int" type="int" /> </structType> </types>
<types> <simpleType name="bool" baseType="boolean" /> <simpleType name="bool2" baseType="boolean" /> <simpleType name="int" baseType="int" /> <simpleType name="int2" baseType="int" /> <enumType name="intEnum" > <enumValue name="ONE" /> <enumValue name="TWO" /> </enumType> <enumType name="intEnum2" > <enumValue name="ONE" /> <enumValue name="THREE" /> </enumType> <enumType name="intEnum3" > <enumValue name="ONE" /> <enumValue name="TWO" /> <enumValue name="THREE" /> </enumType> <arrayType name="arrayOfInt" type="int" /> <arrayType name="arrayOfInt2" type="int" /> <arrayType name="arrayOfBool" type="bool" /> <structType name="struct"> <field name="intArray" type="arrayOfInt" /> <field name="enum" type="intEnum" /> <field name="int" type="int" /> </structType> <structType name="struct2"> <field name="intArray" type="arrayOfInt2" /> <field name="enum" type="intEnum" /> <field name="int" type="int" /> </structType> <structType name="struct3"> <field name="enum" type="intEnum" /> <field name="int" type="int" /> <field name="intArray" type="arrayOfInt" /> </structType> </types>In this example:
<types> <simpleType name="int" desc="the base int type" baseType="int" /> <simpleType name="string" baseType="string" /> <mapType name="map" keyType="string" valueType="int" /> <structType name="struct"> <field name="mapField" desc="a Map field" type="map" /> <field name="enum" type="intEnum" /> <field name="int" type="int" /> </structType> </types>In this example, the "map" type specifies a Map where:
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence