Document Composer questions

  1. list Attribute → Enumeration Literal
    as screenshot, the Enumeration should be a Class with <<enumeration>> stereotype

Then, you retrieve the enumeration literals from Attribute.type :

<ModelElementPropertyConditionChecker property="type">
	<Conditions>
		<ValueChecker property="modelType" value="Class"/>
		<ValueChecker property="stereotypes" value="enumeration"/>
		<IterationBlockConditionChecker modelType="EnumerationLiteral"/>
	</Conditions>
	
	<Text> : [</Text>
	<ModelElementProperty property="type">
		<IterationBlock modelType="EnumerationLiteral" ignoreLastSeparator="true">
			<Property property="name"/>
			<Text>, </Text>
		</IterationBlock>
	</ModelElementProperty>
	<Text>]</Text>
</ModelElementPropertyConditionChecker>

1 Like