On 6/10/06, John Kaputin <[EMAIL PROTECTED]> wrote:
And...#2

This change imposes on the Element API what in UML terms is 'composition'
where a class only exists in the context of another class (i.e. it must
have exactly 1 parent or owner). What we have at the moment in the Element
API is 'aggregation' (i.e. an element can be created then later added to
one or more parent elements).

My mental model of an XML document is more 'composition' than
'aggregation'. With aggregation, if I have an InterfaceElement which I
add to two different DescriptionElements and then change the name of
the InterfaceElement then it will change for both DescriptionElement
objects. This is different to using an editor to edit two WSDL
documents. With an editor I would expect only one to change.

This is of course just my mental model and may be different to others :-)

Jeremy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to