Changes between Version 9 and Version 10 of ComponentRegistryAndEditor/FrontEndSpec


Ignore:
Timestamp:
11/14/14 14:56:31 (10 years ago)
Author:
Twan Goosen
Comment:

Editor (incomplete)

Legend:

Unmodified
Added
Removed
Modified
  • ComponentRegistryAndEditor/FrontEndSpec

    v9 v10  
    120120* Concept link (optional; see below for details on search)
    121121
    122 XML example:
     122For XML examples, see Elements and Components.
     123
     124=== Elements ===
     125
     126Components can have any number of child elements defined
     127
     128Elements have the following properties:
     129* Name (mandatory; must be a valid XML attribute name)
     130* Type (mandatory; see below for details on selection)
     131* !DisplayPriority (mandatory - each component must have at least one child element with a value > 0)
     132* !MinOccurrences (mandatory, should be an integer >= 0)
     133* !MaxOccurrences (mandatory, should be an integer >= !MinOccurrences or 'unbounded')
     134* Concept link (optional; see below for details on search)
     135* Documentation (optional)
     136* Multilingual (optional boolean)
     137
     138Elements can have any number of attributes as children
     139
     140XML example of an optional (0:1) 'string' type element with one attribute
    123141{{{#!xml
    124 <AttributeList>
     142<CMD_Element name="myElement" ValueScheme="string" CardinalityMin="0" CardinalityMax="1" DisplayPriority="1" Multilingual="false">
     143      <AttributeList>
     144        <Attribute>
     145          <Name>elementAttribute</Name>
     146          <Type>string</Type>
     147        </Attribute>
     148      </AttributeList>
     149</CMD_Element>
     150}}}
     151
     152=== Components ===
     153
     154Components can have any number of child components defined. These can either be references to other components with an ID of their own, or inline components that constitute a level of hierarchy but cannot be reused outside the context in which they are defined.
     155
     156==== Linking in existing components ====
     157Existing components from the public, private or group spaces can be chosen for inclusion as a reference.
     158
     159TODO: XML example
     160
     161==== Inline components ====
     162
     163Inline components have the following properties:
     164
     165
     166Inline components can have any number of attributes and elements as children
     167
     168XML example of a 1:N component with an element and an attribute as children
     169{{{#!xml
     170<CMD_Component name="DiscAn_TextCorpus" CardinalityMin="1" CardinalityMax="unbounded">
     171    <AttributeList>
    125172      <Attribute>
    126         <Name>firstAttribute</Name>
     173        <Name>componentAttribute</Name>
    127174        <ConceptLink>http://www.isocat.org/datcat/DC-3870</ConceptLink>
    128175        <Type>string</Type>
    129176      </Attribute>
    130       <Attribute>
    131         <Name>secondAttribute</Name>
    132         <ConceptLink>http://www.isocat.org/datcat/DC-3870</ConceptLink>
    133         <Type>boolean</Type>
    134       </Attribute>
    135 </AttributeList>
     177    </AttributeList>
     178    <CMD_Element name="childElement" ValueScheme="string" CardinalityMin="1" CardinalityMax="1" DisplayPriority="1" Multilingual="false">
     179    ...
    136180}}}
    137181
    138 === Elements ===
    139 
    140 Components can have any number of child elements defined
    141 
    142 Elements have the following properties:
    143 
    144 TODO: XML example
    145 
    146 === Components ===
    147 
    148 Components can have any number of child components defined. These can either be references to other components with an ID of their own, or inline components that constitute a level of hierarchy but cannot be reused outside the context in which they are defined.
    149 
    150 ==== Linking in existing components ====
    151 Existing components from the public, private or group spaces can be chosen for inclusion as a reference.
    152 
    153 TODO: XML example
    154 
    155 ==== Inline components ====
    156 
    157 Inline components have the following properties:
    158 *
    159 
    160 TODO: XML example
    161182
    162183=== Type selection ===