element <defineMacro>

Namespace: | http://www.nokia.com/sdt/emf/component
Type: | embedded complexType
Content: | complex, 2 attributes, 6 elements
Defined: | globally within component.xsd, see XML source
Used: | at 1 location

XML Representation Summary
<defineMacro
| help | = | xsd:string
| id | = | xsd:string
| >
Content: | importArguments*, macroArgument*, (template | inline | defineLocation | expandMacro)*
</defineMacro>

May contain elements (6):

  defineLocation, expandMacro, importArguments, inline, macroArgument, template

May be included in elements (1):

  sourceGen

Known Usage Locations

- Within embedded complexTypes of elements (1):
  sourceGen [ref]

Annotation
Added post 1.1.
This element defines a macro consisting of a set of templates
and inlines which may be variable-substituted.
If a given defineMacro imports multiple arguments
of the same name, then they must be explicitly redefined,
to resolve any ambiguities about the default value.
XML Source

<xsd:element name="defineMacro"> <xsd:annotation> <xsd:documentation> Added post 1.1. This element defines a macro consisting of a set of templates and inlines which may be variable-substituted. If a given defineMacro imports multiple arguments of the same name, then they must be explicitly redefined, to resolve any ambiguities about the default value. </xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="unbounded" minOccurs="0" ref="importArguments"/> <xsd:element maxOccurs="unbounded" minOccurs="0" ref="macroArgument"/> <xsd:choice maxOccurs="unbounded" minOccurs="0"> <xsd:element ref="template"/> <xsd:element ref="inline"/> <xsd:element ref="defineLocation"/> <xsd:element ref="expandMacro"/> </xsd:choice> </xsd:sequence> <xsd:attribute name="id" type="xsd:string" use="optional"> <xsd:annotation> <xsd:documentation> Unique id for the macro within a component. Ids may be shared for different forms. Derived components inherit macros automatically but may redefine a macro with the same id. </xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="help" type="xsd:string" use="optional"> <xsd:annotation> <xsd:documentation> Help/usage text for a documentation generating tool. </xsd:documentation> </xsd:annotation> </xsd:attribute> </xsd:complexType> </xsd:element>

Attribute Detail
help

  Help/usage text for a documentation generating tool.

  Type: | xsd:string
  Use: | optional
  Defined: | locally, within this element

  XML Source

  <xsd:attribute name="help" type="xsd:string" use="optional"> <xsd:annotation> <xsd:documentation> Help/usage text for a documentation generating tool. </xsd:documentation> </xsd:annotation> </xsd:attribute>

id

  Unique id for the macro within a component.
  Ids may be shared for different
  forms. Derived components inherit macros automatically
  but may redefine a macro with the same id.

  Type: | xsd:string
  Use: | optional
  Defined: | locally, within this element

  XML Source

  <xsd:attribute name="id" type="xsd:string" use="optional"> <xsd:annotation> <xsd:documentation> Unique id for the macro within a component. Ids may be shared for different forms. Derived components inherit macros automatically but may redefine a macro with the same id. </xsd:documentation> </xsd:annotation> </xsd:attribute>

Content Element Detail
defineLocation

  Type: | embedded, complex content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="defineLocation"/>

expandMacro

  Type: | embedded (extension of ConditionalSourceGen), complex content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="expandMacro"/>

importArguments

  Type: | embedded, empty content
  Defined: | by reference, within this element

  XML Source

  <xsd:element maxOccurs="unbounded" minOccurs="0" ref="importArguments"/>

inline

  Type: | embedded (extension of ConditionalSourceGenString), simple content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="inline"/>

macroArgument

  Type: | embedded (extension of xsd:string), simple content
  Defined: | by reference, within this element

  XML Source

  <xsd:element maxOccurs="unbounded" minOccurs="0" ref="macroArgument"/>

template

  Type: | embedded (extension of ConditionalSourceGenString), empty content
  Defined: | by reference, within this element

  XML Source

  <xsd:element ref="template"/>