schema.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
  3. <xsd:element name="Class" >
  4. <xsd:complexType>
  5. <xsd:sequence>
  6. <xsd:element
  7. name="attribute"
  8. minOccurs="0"
  9. maxOccurs="unbounded">
  10. <xsd:complexType>
  11. <xsd:attribute name="name" type="xsd:string"/>
  12. <xsd:attribute name="type" type="xsd:string"/>
  13. <xsd:attribute name="visibility" type="xsd:string"/>
  14. <xsd:attribute name="init-value" type="xsd:string"/>
  15. </xsd:complexType>
  16. </xsd:element>
  17. <xsd:element
  18. name="method"
  19. minOccurs="0"
  20. maxOccurs="unbounded">
  21. <xsd:complexType>
  22. <xsd:attribute name="name" type="xsd:string"/>
  23. <xsd:attribute name="type" type="xsd:string"/>
  24. <xsd:attribute name="parameters" type="xsd:string"/>
  25. <xsd:attribute name="visibility" type="xsd:string"/>
  26. </xsd:complexType>
  27. </xsd:element>
  28. <xsd:element name="relationships" >
  29. <xsd:complexType>
  30. <xsd:sequence>
  31. <xsd:element
  32. name="association"
  33. minOccurs="0"
  34. maxOccurs="unbounded">
  35. <xsd:complexType>
  36. <xsd:attribute name="class-relation" type="xsd:string" />
  37. <xsd:attribute name="card-min" type="xsd:string"/>
  38. <xsd:attribute name="card-max" type="xsd:string"/>
  39. </xsd:complexType>
  40. </xsd:element>
  41. <xsd:element
  42. name="inheritance"
  43. minOccurs="0"
  44. maxOccurs="unbounded">
  45. <xsd:complexType>
  46. <xsd:attribute name="class-relation" type="xsd:string" />
  47. <xsd:attribute name="priority" type="xsd:integer" />
  48. </xsd:complexType>
  49. </xsd:element>
  50. </xsd:sequence>
  51. </xsd:complexType>
  52. </xsd:element>
  53. </xsd:sequence>
  54. <xsd:attribute name="name" type="xsd:string"/>
  55. <xsd:attribute name="default" type="xsd:boolean"/>
  56. </xsd:complexType>
  57. </xsd:element>
  58. </xsd:schema>