blob: 0b824f3fc3eec871b1d04323dc313beeb89f3397 [file] [log] [blame]
Clement Escoffier3269efa2008-09-09 14:21:15 +00001<?xml version="1.0"?>
2<xs:schema elementFormDefault="qualified"
3 targetNamespace="org.apache.felix.ipojo.composite"
4 xmlns="org.apache.felix.ipojo.composite"
5 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ipojo="org.apache.felix.ipojo">
6
7 <xs:import namespace="org.apache.felix.ipojo" schemaLocation="http://people.apache.org/~clement/ipojo/schemas/core.xsd"></xs:import>
8 <xs:complexType name="CompositeType">
9 <xs:choice minOccurs="0" maxOccurs="unbounded">
10 <xs:element ref="subservice" minOccurs="0"
11 maxOccurs="unbounded">
12 </xs:element>
13 <xs:element ref="provides" minOccurs="0"
14 maxOccurs="unbounded">
15 </xs:element>
16 <xs:element ref="instance" minOccurs="0"
17 maxOccurs="unbounded">
18 </xs:element>
19 <xs:any namespace="##other" processContents="lax"
20 minOccurs="0" maxOccurs="unbounded">
21 </xs:any>
22 </xs:choice>
23 <xs:attribute name="name" type="xs:string" use="optional"></xs:attribute>
24 <xs:attribute name="public" type="xs:boolean" use="optional"></xs:attribute>
25 <xs:attribute name="architecture" type="xs:boolean"
26 use="optional">
27 </xs:attribute>
28 </xs:complexType>
29
30 <xs:element name="subservice" type="SubserviceType" />
31 <xs:element name="provides" type="CompositeProvidesType" />
32
33 <xs:complexType name="CompositeProvidesType">
34 <xs:complexContent>
35 <xs:extension base="ipojo:ServiceDependencyType">
36 <xs:sequence>
37 <xs:element name="delegation" type="DelegationType"></xs:element>
38 </xs:sequence>
39 <xs:attribute name="specification" type="xs:string"
40 use="required">
41 </xs:attribute>
42
43 <xs:attribute name="action">
44 <xs:simpleType>
45 <xs:restriction base="xs:string">
46 <xs:enumeration value="implement"></xs:enumeration>
47 <xs:enumeration value="export"></xs:enumeration>
48 </xs:restriction>
49 </xs:simpleType>
50 </xs:attribute>
51
52
53
54 </xs:extension>
55 </xs:complexContent>
56 </xs:complexType>
57
58 <xs:complexType name="SubserviceType">
59 <xs:complexContent>
60 <xs:extension base="ipojo:ServiceDependencyType">
61
62 <xs:sequence minOccurs="0" maxOccurs="unbounded">
63 <xs:element name="property" type="CompositePropertyType"></xs:element>
64 </xs:sequence>
65 <xs:attribute name="action" use="required">
66 <xs:simpleType>
67 <xs:restriction base="xs:string">
68 <xs:enumeration value="import"></xs:enumeration>
69 <xs:enumeration value="instantiate"></xs:enumeration>
70 </xs:restriction>
71 </xs:simpleType>
72 </xs:attribute>
73
74 <xs:attribute name="specification" type="xs:string"
75 use="required">
76 </xs:attribute>
77 <xs:attribute name="context-source" type="xs:string"
78 use="optional">
79 </xs:attribute>
80 <xs:attribute name="scope">
81 <xs:simpleType>
82 <xs:restriction base="xs:string">
83 <xs:enumeration value="global"></xs:enumeration>
84 <xs:enumeration value="composite"></xs:enumeration>
85 <xs:enumeration value="composite+global"></xs:enumeration>
86 </xs:restriction>
87 </xs:simpleType>
88 </xs:attribute>
89 </xs:extension>
90 </xs:complexContent>
91 </xs:complexType>
92
93 <xs:simpleType name="actionType">
94 <xs:restriction base="xs:string"></xs:restriction>
95 </xs:simpleType>
96
97 <xs:complexType name="CompositePropertyType">
98 <xs:sequence minOccurs="0" maxOccurs="unbounded">
99 <xs:element name="property" type="CompositePropertyType" minOccurs="0" maxOccurs="unbounded"></xs:element>
100 </xs:sequence>
101 <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
102 <xs:attribute name="value" type="xs:string" use="optional"></xs:attribute>
103 </xs:complexType>
104
105 <xs:complexType name="CompositeInstanceType">
106 <xs:sequence minOccurs="0" maxOccurs="unbounded">
107 <xs:element name="property" type="CompositePropertyType"></xs:element>
108 </xs:sequence>
109 <xs:attribute name="name" type="xs:string" use="optional"></xs:attribute>
110 <xs:attribute name="component" type="xs:string"
111 use="required">
112 </xs:attribute>
113 </xs:complexType>
114
115 <xs:element name="instance" type="CompositeInstanceType"></xs:element>
116
117 <xs:element name="composite" type="CompositeType"></xs:element>
118
119 <xs:complexType name="DelegationType">
120 <xs:attribute name="method" type="xs:string" use="required"></xs:attribute>
121 <xs:attribute name="policy" use="required">
122 <xs:simpleType>
123 <xs:restriction base="xs:string">
124 <xs:enumeration value="all"></xs:enumeration>
125 <xs:enumeration value="one"></xs:enumeration>
126 </xs:restriction>
127 </xs:simpleType>
128 </xs:attribute>
129 </xs:complexType>
130</xs:schema>