[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Simplified XML
We have had some discussion of "simplified XML representation" of a BP Meta model. Enclosed is a fragment of the output from the component definition and assembly tool we are building based on the CCA (OMG Component Collaboration Architecture). While the tag names are not the same and would require some adjustment, it gives and idea of how simple a XML spec of an XML interface can be. The XMI for the equivalent UML profile would be much larger (But each can be 100% produced from the other). I have also included a screen shot of the graphical representation in the tool. Note that we are not "proposing" this syntax as is and it is not yet formally specified, but we feel it makes a good start and could be formalized easily. Regards, Cory Casanave <<SampleOrder.doc>> -------------------------------------------------------- <?xml version="1.0" ?> <ComponentX> <package name="dat"> <package name="comp"> <provides name="OrderInterface"> <sends-xml name="OrderConfirmation" type="OrderConfirmation"/> <recieves-xml name="Order" type="Order"/> <sends-xml name="OrderDeclined" type="OrderDeclined"/> </provides> <component name="OrderPlacer" > <uses name="OrderInterface"/> </component> <component name="OrderTaker" > <provides name="OrderInterface"/> </component> <component name="OrderSystem" > <component name="OrderPlacer" extends="/dat/comp/OrderPlacer" /> <component name="OrderTaker" extends="/dat/comp/OrderTaker" /> <wire to="OrderTaker/OrderInterface" from="OrderPlacer/OrderInterface"/> </component> </package> <typePackage name="types"> <var name="Order" type="composite" constraint="required"> <var name="OrderNumber" extends="/dat/types/OrderNumber"/> <var name="CustomerID" extends="/dat/types/CustomerID"/> <var name="Date" extends="/dat/types/Date"/> <var name="LineItem" extends="/dat/types/LineItem" constraint="zeroOrMore"> <var name="PartID" extends="/dat/types/PartID"/> <var name="Quantity" extends="/dat/types/Quantity"/> <var name="Price" extends="/dat/types/Price"/> </var> <var name="Total" extends="/dat/types/Total"/> </var> <var name="OrderNumber" type="int" constraint="required"/> <var name="CustomerID" type="char" constraint="required"/> <var name="Date" type="char" constraint="required"/> <var name="LineItem" type="composite" constraint="required"/> <var name="PartID" type="char" constraint="required"/> <var name="Quantity" type="float" constraint="required"/> <var name="Price" type="float" constraint="required"/> <var name="Total" type="float" constraint="required"/> <var name="OrderConfirmation" type="composite" constraint="required"> <var name="OrderNumber" extends="/dat/types/OrderNumber"/> <var name="Total" extends="/dat/types/Total"/> </var> <var name="OrderDeclined" type="composite" constraint="required"> <var name="OrderNumber" extends="/dat/types/OrderNumber"/> <var name="Reason" extends="/dat/types/Reason" constraint="optional"/> </var> <var name="Reason" type="char" constraint="required"/> </typePackage> </ComponentX>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC