jboss-pojo_7_0.xsd 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2011, 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:pojo:7.0"
  25. xmlns="urn:jboss:pojo:7.0"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.1">
  29. <xs:complexType name="deployment">
  30. <xs:sequence>
  31. <xs:element name="bean" type="bean" minOccurs="0" maxOccurs="unbounded"/>
  32. </xs:sequence>
  33. </xs:complexType>
  34. <xs:complexType name="bean">
  35. <xs:sequence>
  36. <xs:element name="alias" type="alias" minOccurs="0" maxOccurs="unbounded"/>
  37. <xs:element name="classloader" type="classloader" minOccurs="0" maxOccurs="1"/>
  38. <xs:element name="constructor" type="constructor" minOccurs="0" maxOccurs="1"/>
  39. <xs:element name="property" type="property" minOccurs="0" maxOccurs="unbounded"/>
  40. <xs:element name="create" type="lifecycle" minOccurs="0" maxOccurs="1"/>
  41. <xs:element name="start" type="lifecycle" minOccurs="0" maxOccurs="1"/>
  42. <xs:element name="stop" type="lifecycle" minOccurs="0" maxOccurs="1"/>
  43. <xs:element name="destroy" type="lifecycle" minOccurs="0" maxOccurs="1"/>
  44. <xs:element name="install" type="install" minOccurs="0" maxOccurs="unbounded"/>
  45. <xs:element name="uninstall" type="install" minOccurs="0" maxOccurs="unbounded"/>
  46. <xs:element name="incallback" type="callback" minOccurs="0" maxOccurs="unbounded"/>
  47. <xs:element name="uncallback" type="callback" minOccurs="0" maxOccurs="unbounded"/>
  48. <xs:element name="depends" type="depends" minOccurs="0" maxOccurs="unbounded"/>
  49. </xs:sequence>
  50. <xs:attribute name="name" type="xs:string" use="required"/>
  51. <xs:attribute name="class" type="xs:string" use="optional"/>
  52. <xs:attribute name="mode" type="mode" use="optional"/>
  53. </xs:complexType>
  54. <xs:complexType name="alias" mixed="true" />
  55. <xs:complexType name="classloader">
  56. <xs:attribute name="name" type="xs:string" use="required"/>
  57. </xs:complexType>
  58. <xs:complexType name="constructor">
  59. <xs:sequence>
  60. <xs:element name="factory" type="parameter" minOccurs="0" maxOccurs="1"/>
  61. <xs:element name="parameter" type="parameter" minOccurs="0" maxOccurs="unbounded"/>
  62. </xs:sequence>
  63. <xs:attribute name="factory-class" type="xs:string" use="optional"/>
  64. <xs:attribute name="factory-method" type="xs:string" use="optional"/>
  65. </xs:complexType>
  66. <xs:simpleType name="mode">
  67. <xs:restriction base="xs:token">
  68. <xs:enumeration value="active"/>
  69. <xs:enumeration value="passive"/>
  70. <xs:enumeration value="on demand"/>
  71. <xs:enumeration value="never"/>
  72. </xs:restriction>
  73. </xs:simpleType>
  74. <xs:complexType name="property">
  75. <xs:choice minOccurs="0" maxOccurs="1">
  76. <xs:element name="value" type="value"/>
  77. <xs:element name="inject" type="inject"/>
  78. <xs:element name="value-factory" type="value-factory"/>
  79. <xs:element name="list" type="collection"/>
  80. <xs:element name="set" type="collection"/>
  81. <xs:element name="map" type="map"/>
  82. </xs:choice>
  83. <xs:attribute name="name" type="xs:string" use="required"/>
  84. </xs:complexType>
  85. <xs:complexType name="depends">
  86. <xs:attribute name="state" type="xs:string" use="optional"/>
  87. </xs:complexType>
  88. <xs:complexType name="inject">
  89. <xs:attribute name="bean" type="xs:string" use="optional"/>
  90. <xs:attribute name="service" type="xs:string" use="optional"/>
  91. <xs:attribute name="property" type="xs:string" use="optional"/>
  92. </xs:complexType>
  93. <xs:complexType name="value-factory">
  94. <xs:sequence>
  95. <xs:element name="parameter" type="parameter" minOccurs="0" maxOccurs="unbounded"/>
  96. </xs:sequence>
  97. <xs:attribute name="bean" type="xs:string" use="required"/>
  98. <xs:attribute name="method" type="xs:string" use="required"/>
  99. </xs:complexType>
  100. <xs:complexType name="collection">
  101. <xs:sequence>
  102. <xs:element name="value" type="value"/>
  103. <xs:element name="inject" type="inject"/>
  104. <xs:element name="value-factory" type="value-factory"/>
  105. <xs:element name="list" type="collection"/>
  106. <xs:element name="set" type="collection"/>
  107. <xs:element name="map" type="map"/>
  108. </xs:sequence>
  109. <xs:attribute name="class" type="xs:string" use="optional"/>
  110. <xs:attribute name="elementClass" type="xs:string" use="optional"/>
  111. </xs:complexType>
  112. <xs:complexType name="map">
  113. <xs:sequence>
  114. <xs:element name="entry" type="entry"/>
  115. </xs:sequence>
  116. <xs:attribute name="class" type="xs:string" use="optional"/>
  117. <xs:attribute name="keyClass" type="xs:string" use="optional"/>
  118. <xs:attribute name="valueClass" type="xs:string" use="optional"/>
  119. </xs:complexType>
  120. <xs:complexType name="entry">
  121. <xs:sequence>
  122. <xs:element name="key" type="value-value"/>
  123. <xs:element name="value" type="value-value"/>
  124. </xs:sequence>
  125. </xs:complexType>
  126. <xs:complexType name="value-value" mixed="true">
  127. <xs:sequence>
  128. <xs:element name="value" type="value"/>
  129. <xs:element name="inject" type="inject"/>
  130. <xs:element name="value-factory" type="value-factory"/>
  131. <xs:element name="list" type="collection"/>
  132. <xs:element name="set" type="collection"/>
  133. <xs:element name="map" type="map"/>
  134. </xs:sequence>
  135. </xs:complexType>
  136. <xs:complexType name="lifecycle">
  137. <xs:sequence>
  138. <xs:element name="parameter" type="parameter" minOccurs="0" maxOccurs="unbounded"/>
  139. </xs:sequence>
  140. <xs:attribute name="method" type="xs:string" use="optional"/>
  141. </xs:complexType>
  142. <xs:complexType name="install">
  143. <xs:sequence>
  144. <xs:element name="parameter" type="parameter" minOccurs="0" maxOccurs="unbounded"/>
  145. </xs:sequence>
  146. <xs:attribute name="bean" type="xs:string" use="optional"/>
  147. <xs:attribute name="method" type="xs:string" use="required"/>
  148. <xs:attribute name="whenRequired" type="xs:string" use="optional"/>
  149. <xs:attribute name="state" type="xs:string" use="optional"/>
  150. </xs:complexType>
  151. <xs:complexType name="callback">
  152. <xs:attribute name="method" type="xs:string" use="required"/>
  153. <xs:attribute name="whenRequired" type="xs:string" use="optional"/>
  154. <xs:attribute name="state" type="xs:string" use="optional"/>
  155. <xs:attribute name="signature" type="xs:string" use="optional"/>
  156. </xs:complexType>
  157. <xs:complexType name="value" mixed="true">
  158. <xs:attribute name="replace" type="xs:boolean" use="optional"/>
  159. <xs:attribute name="trim" type="xs:boolean" use="optional"/>
  160. </xs:complexType>
  161. <xs:complexType name="parameter" mixed="true">
  162. <xs:sequence>
  163. <xs:element name="value" type="value" minOccurs="0" maxOccurs="1"/>
  164. </xs:sequence>
  165. <xs:attribute name="class" type="xs:string" use="optional"/>
  166. </xs:complexType>
  167. <!-- Root elements -->
  168. <xs:element name="deployment" type="deployment"/>
  169. </xs:schema>