alerts.xsd 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
  3. targetNamespace="https://procesy5.pl/alerts" vc:minVersion="1.1"
  4. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:p5Al="https://procesy5.pl/alerts">
  5. <xs:annotation>
  6. <xs:documentation>klasa do dziedziczen alertow i konstruowania szczegółowych modeli</xs:documentation>
  7. </xs:annotation>
  8. <xs:attributeGroup name="errors">
  9. <xs:attribute ref="p5Al:error"/>
  10. <xs:attribute ref="p5Al:alert"/>
  11. <xs:attribute ref="p5Al:warning"/>
  12. </xs:attributeGroup>
  13. <xs:complexType name="ThrowException">
  14. <xs:sequence>
  15. <xs:element name="Exception"/>
  16. </xs:sequence>
  17. <xs:attributeGroup ref="p5Al:errors"/>
  18. </xs:complexType>
  19. <xs:group name="ThrowException">
  20. <xs:sequence/>
  21. </xs:group>
  22. <xs:simpleType name="alertType.danger">
  23. <xs:restriction base="xs:string">
  24. <xs:enumeration value="danger"/>
  25. </xs:restriction>
  26. </xs:simpleType>
  27. <xs:simpleType name="alertType.warning">
  28. <xs:restriction base="xs:string">
  29. <xs:enumeration value="warning"/>
  30. </xs:restriction>
  31. </xs:simpleType>
  32. <xs:simpleType name="alertType">
  33. <xs:union memberTypes="p5Al:alertType.warning p5Al:alertType.danger"/>
  34. </xs:simpleType>
  35. <xs:simpleType name="msg">
  36. <xs:restriction base="xs:string"/>
  37. </xs:simpleType>
  38. <xs:complexType name="alert">
  39. <xs:annotation>
  40. <xs:documentation>abstrakt</xs:documentation>
  41. </xs:annotation>
  42. <xs:sequence>
  43. <xs:element name="alertType" type="p5Al:alertType"/>
  44. <xs:element name="msg" type="p5Al:msg">
  45. <xs:complexType/>
  46. </xs:element>
  47. </xs:sequence>
  48. </xs:complexType>
  49. <xs:element name="alert"/>
  50. <xs:element name="danger"/>
  51. <xs:element name="warning"/>
  52. <xs:element name="debug"/>
  53. <xs:attribute name="error"/>
  54. <xs:attribute name="alert"/>
  55. <xs:attribute name="warning"/>
  56. </xs:schema>