blob: 6a95fb8e3920dd10191c480a3c5d4e34a3c65689 [file] [log] [blame]
Clement Escoffier7712a2a2008-10-07 09:59:25 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
Clement Escoffier3269efa2008-09-09 14:21:15 +000019<xs:schema elementFormDefault="qualified"
20 targetNamespace="org.apache.felix.ipojo.composite"
21 xmlns="org.apache.felix.ipojo.composite"
22 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ipojo="org.apache.felix.ipojo">
23
24 <xs:import namespace="org.apache.felix.ipojo" schemaLocation="http://people.apache.org/~clement/ipojo/schemas/core.xsd"></xs:import>
25 <xs:complexType name="CompositeType">
26 <xs:choice minOccurs="0" maxOccurs="unbounded">
27 <xs:element ref="subservice" minOccurs="0"
28 maxOccurs="unbounded">
29 </xs:element>
30 <xs:element ref="provides" minOccurs="0"
31 maxOccurs="unbounded">
32 </xs:element>
33 <xs:element ref="instance" minOccurs="0"
34 maxOccurs="unbounded">
35 </xs:element>
36 <xs:any namespace="##other" processContents="lax"
37 minOccurs="0" maxOccurs="unbounded">
38 </xs:any>
39 </xs:choice>
40 <xs:attribute name="name" type="xs:string" use="optional"></xs:attribute>
41 <xs:attribute name="public" type="xs:boolean" use="optional"></xs:attribute>
42 <xs:attribute name="architecture" type="xs:boolean"
43 use="optional">
44 </xs:attribute>
45 </xs:complexType>
46
47 <xs:element name="subservice" type="SubserviceType" />
48 <xs:element name="provides" type="CompositeProvidesType" />
49
50 <xs:complexType name="CompositeProvidesType">
51 <xs:complexContent>
52 <xs:extension base="ipojo:ServiceDependencyType">
53 <xs:sequence>
54 <xs:element name="delegation" type="DelegationType"></xs:element>
55 </xs:sequence>
56 <xs:attribute name="specification" type="xs:string"
57 use="required">
58 </xs:attribute>
59
60 <xs:attribute name="action">
61 <xs:simpleType>
62 <xs:restriction base="xs:string">
63 <xs:enumeration value="implement"></xs:enumeration>
64 <xs:enumeration value="export"></xs:enumeration>
65 </xs:restriction>
66 </xs:simpleType>
67 </xs:attribute>
68
69
70
71 </xs:extension>
72 </xs:complexContent>
73 </xs:complexType>
74
75 <xs:complexType name="SubserviceType">
76 <xs:complexContent>
77 <xs:extension base="ipojo:ServiceDependencyType">
78
79 <xs:sequence minOccurs="0" maxOccurs="unbounded">
80 <xs:element name="property" type="CompositePropertyType"></xs:element>
81 </xs:sequence>
82 <xs:attribute name="action" use="required">
83 <xs:simpleType>
84 <xs:restriction base="xs:string">
85 <xs:enumeration value="import"></xs:enumeration>
86 <xs:enumeration value="instantiate"></xs:enumeration>
87 </xs:restriction>
88 </xs:simpleType>
89 </xs:attribute>
90
91 <xs:attribute name="specification" type="xs:string"
92 use="required">
93 </xs:attribute>
94 <xs:attribute name="context-source" type="xs:string"
95 use="optional">
96 </xs:attribute>
97 <xs:attribute name="scope">
98 <xs:simpleType>
99 <xs:restriction base="xs:string">
100 <xs:enumeration value="global"></xs:enumeration>
101 <xs:enumeration value="composite"></xs:enumeration>
102 <xs:enumeration value="composite+global"></xs:enumeration>
103 </xs:restriction>
104 </xs:simpleType>
105 </xs:attribute>
106 </xs:extension>
107 </xs:complexContent>
108 </xs:complexType>
109
110 <xs:simpleType name="actionType">
111 <xs:restriction base="xs:string"></xs:restriction>
112 </xs:simpleType>
113
114 <xs:complexType name="CompositePropertyType">
115 <xs:sequence minOccurs="0" maxOccurs="unbounded">
116 <xs:element name="property" type="CompositePropertyType" minOccurs="0" maxOccurs="unbounded"></xs:element>
117 </xs:sequence>
118 <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
119 <xs:attribute name="value" type="xs:string" use="optional"></xs:attribute>
120 </xs:complexType>
121
122 <xs:complexType name="CompositeInstanceType">
123 <xs:sequence minOccurs="0" maxOccurs="unbounded">
124 <xs:element name="property" type="CompositePropertyType"></xs:element>
125 </xs:sequence>
126 <xs:attribute name="name" type="xs:string" use="optional"></xs:attribute>
127 <xs:attribute name="component" type="xs:string"
128 use="required">
129 </xs:attribute>
130 </xs:complexType>
131
132 <xs:element name="instance" type="CompositeInstanceType"></xs:element>
133
134 <xs:element name="composite" type="CompositeType"></xs:element>
135
136 <xs:complexType name="DelegationType">
137 <xs:attribute name="method" type="xs:string" use="required"></xs:attribute>
138 <xs:attribute name="policy" use="required">
139 <xs:simpleType>
140 <xs:restriction base="xs:string">
141 <xs:enumeration value="all"></xs:enumeration>
142 <xs:enumeration value="one"></xs:enumeration>
143 </xs:restriction>
144 </xs:simpleType>
145 </xs:attribute>
146 </xs:complexType>
147</xs:schema>