Xsd
From Informatics
Contents |
General
xsd is in XML format. Basicly, xsd contains data type information in your UML model you created in EA.
Create/Generate
We create xsd file using EA, then manually modify it in text editor or xmlspy so it can be used by introduce.
- create a UML model in EA.
- export XML schema to xsd format
then
We modify the header (as described in CaGrid_Datatypes) to something like:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="gme://cagrid.geworkbench.columbia.edu/1/edu.columbia.geworkbench.cagrid.foo" xmlns:mobius="gme://cagrid.geworkbench.columbia.edu/1/edu.columbia.geworkbench.cagrid.foo" targetNamespace="gme://cagrid.geworkbench.columbia.edu/1/edu.columbia.geworkbench.cagrid.foo" elementFormDefault="qualified" attributeFormDefault="unqualified">
and change the "String" type to "xs:string" manually. (detail see CaGrid_Datatypes)
- We use xsd files generated above as input to introduce to generate java code for caGrid services.
Limitation
- EA won't generate xsd for methods, it only generate xsd for class data types.
- It won't let you export two models at once, which means you'll need to export models separatly and combine the xsd file manually. (It's just an XML file, you can do it easily)