jboss-as-osgi_1_1.xsd 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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:osgi:1.1"
  25. xmlns="urn:jboss:domain:osgi:1.1"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.0">
  29. <!-- The OSGi subsystem root element -->
  30. <xs:element name="subsystem" type="subsystemType"/>
  31. <xs:complexType name="subsystemType">
  32. <xs:annotation>
  33. <xs:documentation>
  34. <![CDATA[
  35. The configuration of the OSGi subsystem.
  36. ]]>
  37. </xs:documentation>
  38. </xs:annotation>
  39. <xs:sequence>
  40. <xs:element name="configuration" type="configurationType" minOccurs="0" maxOccurs="unbounded"/>
  41. <xs:element name="properties" type="propertiesType" minOccurs="0"/>
  42. <xs:element name="capabilities" type="capabilitiesType" minOccurs="0"/>
  43. </xs:sequence>
  44. <xs:attribute name="activation" type="activationType" default="lazy"/>
  45. </xs:complexType>
  46. <xs:simpleType name="activationType">
  47. <xs:restriction base="xs:token">
  48. <xs:enumeration value="eager"/>
  49. <xs:enumeration value="lazy"/>
  50. </xs:restriction>
  51. </xs:simpleType>
  52. <xs:complexType name="configurationType">
  53. <xs:choice minOccurs="0" maxOccurs="unbounded">
  54. <xs:element name="property" type="propertyType"/>
  55. </xs:choice>
  56. <xs:attribute name="pid" type="xs:string" use="required"/>
  57. </xs:complexType>
  58. <xs:complexType name="capabilitiesType">
  59. <xs:choice minOccurs="0" maxOccurs="unbounded">
  60. <xs:element name="capability" type="capabilityType"/>
  61. </xs:choice>
  62. </xs:complexType>
  63. <xs:complexType name="capabilityType">
  64. <xs:attribute name="name" type="xs:string" use="required"/>
  65. <xs:attribute name="startlevel" type="xs:integer"/>
  66. </xs:complexType>
  67. <xs:complexType name="propertiesType">
  68. <xs:choice minOccurs="0" maxOccurs="unbounded">
  69. <xs:element name="property" type="propertyContentType"/>
  70. </xs:choice>
  71. </xs:complexType>
  72. <xs:complexType name="propertyType">
  73. <xs:attribute name="name" type="xs:string" use="required"/>
  74. <xs:attribute name="value" type="xs:string" use="required"/>
  75. </xs:complexType>
  76. <xs:complexType name="propertyContentType">
  77. <xs:simpleContent>
  78. <xs:extension base="propertyValueType">
  79. <xs:attribute name="name" type="xs:string" use="required"/>
  80. </xs:extension>
  81. </xs:simpleContent>
  82. </xs:complexType>
  83. <xs:simpleType name="propertyValueType">
  84. <xs:restriction base="xs:string"/>
  85. </xs:simpleType>
  86. </xs:schema>