jboss-service_7_0.xsd 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2010, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:service:7.0"
  25. xmlns="urn:jboss:service:7.0"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.0">
  29. <xs:complexType name="server">
  30. <xs:sequence>
  31. <xs:element name="mbean" type="mbean" minOccurs="0" maxOccurs="unbounded"/>
  32. </xs:sequence>
  33. <xs:attribute name="mode" type="mode" default="active" use="optional"/>
  34. </xs:complexType>
  35. <xs:complexType name="mbean">
  36. <xs:sequence>
  37. <xs:element name="constructor" type="constructor" minOccurs="0" maxOccurs="1"/>
  38. <xs:element name="attribute" type="attribute" minOccurs="0" maxOccurs="unbounded"/>
  39. <xs:element name="depends" type="depends" minOccurs="0" maxOccurs="unbounded"/>
  40. <xs:element name="depends-list" type="depends-list" minOccurs="0" maxOccurs="unbounded"/>
  41. <xs:element name="alias" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
  42. <xs:element name="annotation" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
  43. </xs:sequence>
  44. <xs:attribute name="name" type="xs:string" use="required"/>
  45. <xs:attribute name="code" type="xs:string" use="required"/>
  46. </xs:complexType>
  47. <xs:complexType name="constructor">
  48. <xs:sequence>
  49. <xs:element name="arg" type="arg" minOccurs="0" maxOccurs="unbounded"/>
  50. </xs:sequence>
  51. </xs:complexType>
  52. <xs:complexType name="arg">
  53. <xs:attribute name="type" type="xs:string" default="java.lang.String" use="optional"/>
  54. <xs:attribute name="value" type="xs:string" use="required"/>
  55. </xs:complexType>
  56. <xs:simpleType name="mode">
  57. <xs:restriction base="xs:token">
  58. <xs:enumeration value="active"/>
  59. <xs:enumeration value="passive"/>
  60. <xs:enumeration value="on demand"/>
  61. <xs:enumeration value="never"/>
  62. </xs:restriction>
  63. </xs:simpleType>
  64. <xs:complexType name="attribute">
  65. <xs:choice minOccurs="0" maxOccurs="1">
  66. <xs:element name="inject" type="inject"/>
  67. <xs:element name="value-factory" type="value-factory"/>
  68. </xs:choice>
  69. <xs:attribute name="name" type="xs:string" use="required"/>
  70. <xs:attribute name="replace" type="xs:boolean" use="optional"/>
  71. <xs:attribute name="trim" type="xs:boolean" use="optional"/>
  72. </xs:complexType>
  73. <xs:complexType name="depends">
  74. <xs:sequence>
  75. <xs:element name="mbean" type="mbean" minOccurs="0" maxOccurs="1"/>
  76. </xs:sequence>
  77. <xs:attribute name="optional-attribute-name" type="xs:string" use="optional"/>
  78. <xs:attribute name="proxy-type" type="xs:boolean" use="optional"/>
  79. </xs:complexType>
  80. <xs:complexType name="depends-list">
  81. <xs:sequence>
  82. <xs:element name="depends-list-element" type="depends-list-element" minOccurs="0" maxOccurs="1"/>
  83. </xs:sequence>
  84. <xs:attribute name="optional-attribute-name" type="xs:string" use="optional"/>
  85. </xs:complexType>
  86. <xs:complexType name="depends-list-element">
  87. <xs:sequence>
  88. <xs:element name="mbean" type="mbean" minOccurs="0" maxOccurs="1"/>
  89. </xs:sequence>
  90. </xs:complexType>
  91. <xs:complexType name="inject">
  92. <xs:attribute name="bean" type="xs:string" use="required"/>
  93. <xs:attribute name="property" type="xs:string" use="optional"/>
  94. </xs:complexType>
  95. <xs:complexType name="value-factory">
  96. <xs:sequence>
  97. <xs:element name="parameter" type="parameter" minOccurs="0" maxOccurs="1"/>
  98. </xs:sequence>
  99. <xs:attribute name="bean" type="xs:string" use="required"/>
  100. <xs:attribute name="method" type="xs:string" use="required"/>
  101. </xs:complexType>
  102. <xs:complexType name="parameter">
  103. <xs:attribute name="class" type="xs:string" use="required"/>
  104. </xs:complexType>
  105. <!-- Root elements -->
  106. <xs:element name="server" type="server"/>
  107. </xs:schema>