Home
Categories
Dictionary
Glossary
Download
Project Details
Changes Log
What Links Here
FAQ
License

Abstract types


structure types or union types have an optional isAbstract attribute which specifies if the type is abstract, meaning that it can not be directly used in a Data or a structure field.

This can be useful for example if you extend a service and you don't want to use the type upon which you extend.

Example

In the following example it is not allowed to use the abstractPosition type:
      <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>

See also


Categories: concepts

Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence