jboss-as-cmp_1_1.xsd 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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:domain:cmp:1.0"
  25. xmlns="urn:jboss:domain:cmp:1.0"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.0">
  29. <!-- The cmp subsystem root element -->
  30. <xs:element name="subsystem" type="subsystem"/>
  31. <xs:complexType name="subsystem">
  32. <xs:all>
  33. <xs:element name="key-generators" type="keyGeneratorsType" minOccurs="0" maxOccurs="1"/>
  34. </xs:all>
  35. </xs:complexType>
  36. <xs:complexType name="keyGeneratorsType">
  37. <xs:sequence>
  38. <xs:choice minOccurs="0" maxOccurs="unbounded">
  39. <xs:element name="uuid" type="uuidType">
  40. <xs:annotation>
  41. <xs:documentation>
  42. <![CDATA[[
  43. Specifies a UUID based key generator.
  44. ]]>
  45. </xs:documentation>
  46. </xs:annotation>
  47. </xs:element>
  48. <xs:element name="hilo" type="hiloType">
  49. <xs:annotation>
  50. <xs:documentation>
  51. <![CDATA[[
  52. Specifies a HiLo based key generator.
  53. ]]>
  54. </xs:documentation>
  55. </xs:annotation>
  56. </xs:element>
  57. </xs:choice>
  58. </xs:sequence>
  59. </xs:complexType>
  60. <xs:complexType name="uuidType">
  61. <xs:attribute name="name" type="xs:string"/>
  62. <xs:attribute name="jndi-name" type="xs:string" use="optional"/>
  63. </xs:complexType>
  64. <xs:complexType name="hiloType">
  65. <xs:sequence>
  66. <xs:element name="block-size" type="xs:long"/>
  67. <xs:element name="create-table" type="xs:boolean"/>
  68. <xs:element name="create-table-ddl" type="xs:string"/>
  69. <xs:element name="data-source" type="xs:token"/>
  70. <xs:element name="drop-table" type="xs:boolean"/>
  71. <xs:element name="id-column" type="xs:token"/>
  72. <xs:element name="select-hi-ddl" type="xs:string"/>
  73. <xs:element name="sequence-column" type="xs:token"/>
  74. <xs:element name="sequence-name" type="xs:token"/>
  75. <xs:element name="table-name" type="xs:token"/>
  76. </xs:sequence>
  77. <xs:attribute name="name" type="xs:string"/>
  78. <xs:attribute name="jndi-name" type="xs:string" use="optional"/>
  79. </xs:complexType>
  80. </xs:schema>