I'll second this request.
Something along the lines of an isComposite function would be welcome here.
David
But making an vertex a Composite Element in EA doesn't actually make it composite, it just attaches a diagram (according to a specified algorithm)to the vertex (as you'll see if you look in the t_object table.
Notwithstanding the new
Show Composite Diagram Contents context menu item, it still doesn't
actually guarantee you're going to get a composition.
My view is to separate the two concepts.
1) An (arbitrary) Diagram linked to a vertex
2) Formal specification of the Composition
Now it could be argued (and I did - with myself

, that the best form of the composition specification is a
Composite Structure diagram.
In that case, if the diagram being linked to is of that type, then a different Symbol (than the chain-link o-o) should be rendered. The Chain link would merely show a linked diagram (not of type Composite Structure)
The boolean attribute
isStructuredClassifier would be more in keeping with the
[size=13]UML 2.1 Superstructure (interim)[/size] Specification on this topic (
9. Composite Structures). This would not necessarily require a diagram be present, but merely indicate the nature of the classifier.
A separate boolean attribute
hasLinkedDiagram would indicate a linked diagram exists. If
isStructuredClassifier is true and
hasLinkedDiagram is true, then the diagram
MUST be a Composite Structure diagram and the content is
defined to be the structure of the Classifier and would be validated for UML compliance.
Paolo
[size=0]©2006 Paolo Cantoni, -Semantica-[/size]