Rework db insertion code
[platform/core/appfw/pkgmgr-info.git] / parser / manifest.xsd.ref
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://tizen.org/ns/packages" xmlns:packages="http://tizen.org/ns/packages">
3   <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
4
5   <xs:element name="manifest">
6     <xs:complexType>
7       <xs:sequence>
8         <xs:choice maxOccurs="unbounded">
9           <xs:element ref="packages:label"/>
10           <xs:element ref="packages:icon"/>
11           <xs:element ref="packages:author"/>
12           <xs:element ref="packages:description"/>
13           <xs:element ref="packages:compatibility"/>
14           <xs:element ref="packages:profile"/>
15           <xs:element ref="packages:watch-application"/>
16           <xs:element ref="packages:watchface"/>
17           <xs:element ref="packages:service-application"/>
18           <xs:element ref="packages:ui-application"/>
19           <xs:element ref="packages:ime-application"/>
20           <xs:element ref="packages:shortcut-list"/>
21           <xs:element ref="packages:widget"/>
22           <xs:element ref="packages:widget-application"/>
23           <xs:element ref="packages:account"/>
24           <xs:element ref="packages:notifications"/>
25           <xs:element ref="packages:privileges"/>
26           <xs:element ref="packages:font"/>
27           <xs:element ref="packages:ime"/>
28           <xs:element ref="packages:feature"/>
29         </xs:choice>
30       </xs:sequence>
31       <xs:attribute name="storeclient-id" type="xs:string"/>
32       <xs:attribute name="install-location" type="packages:InstallLocationType"/>
33       <xs:attribute name="package" use="required" type="xs:string"/>
34       <xs:attribute name="type" type="packages:PackageType"/>
35       <xs:attribute name="version" use="required" type="xs:string"/>
36       <xs:attribute name="size" type="xs:NMTOKEN"/>
37       <xs:attribute name="root_path" type="xs:string"/>
38       <xs:attribute name="csc_path" type="xs:string"/>
39       <xs:attribute name="appsetting" type="xs:boolean"/>
40       <xs:attribute name="nodisplay-setting" type="xs:boolean"/>
41       <xs:attribute name="url" type="xs:string"/>
42       <xs:attribute name="support-disable" type="xs:boolean"/>
43       <xs:attribute name="api-version" type="xs:string"/>
44       <xs:attribute name="backend-installer" type="xs:string"/>
45       <xs:attribute name="preload" type="xs:boolean"/>
46     </xs:complexType>
47   </xs:element>
48
49   <xs:simpleType name="InstallLocationType">
50     <xs:restriction base="xs:string">
51       <xs:enumeration value="auto"/>
52       <xs:enumeration value="internal-only"/>
53       <xs:enumeration value="prefer-external"/>
54     </xs:restriction>
55   </xs:simpleType>
56   <xs:simpleType name="PackageType">
57     <xs:restriction base="xs:string">
58       <xs:enumeration value="rpm"/>
59       <xs:enumeration value="tpk"/>
60       <xs:enumeration value="wgt"/>
61     </xs:restriction>
62   </xs:simpleType>
63   <xs:simpleType name="ProfileType">
64     <xs:restriction base="xs:string">
65       <xs:enumeration value="mobile"/>
66       <xs:enumeration value="wearable"/>
67       <xs:enumeration value="TV"/>
68     </xs:restriction>
69   </xs:simpleType>
70   <xs:simpleType name="TypeType">
71     <xs:restriction base="xs:string">
72       <xs:enumeration value="capp"/>
73       <xs:enumeration value="c++app"/>
74       <xs:enumeration value="webapp"/>
75       <xs:enumeration value="jsapp"/>
76     </xs:restriction>
77   </xs:simpleType>
78   <xs:simpleType name="HwAccelerationType">
79     <xs:restriction base="xs:string">
80       <xs:enumeration value="on"/>
81       <xs:enumeration value="off"/>
82       <xs:enumeration value="default"/>
83       <xs:enumeration value="use-GL"/>
84       <xs:enumeration value="not-use-GL"/>
85       <xs:enumeration value="use-system-setting"/>
86     </xs:restriction>
87   </xs:simpleType>
88   <xs:simpleType name="ScreenReaderType">
89     <xs:restriction base="xs:string">
90       <xs:enumeration value="screenreader-off"/>
91       <xs:enumeration value="screenreader-on"/>
92       <xs:enumeration value="use-system-setting"/>
93     </xs:restriction>
94   </xs:simpleType>
95   <xs:simpleType name="RecentImage">
96     <xs:restriction base="xs:string">
97     <xs:enumeration value="icon"/>
98     <xs:enumeration value="capture"/>
99      </xs:restriction>
100   </xs:simpleType>
101   <xs:simpleType name="PrivilegeType">
102     <xs:restriction base="xs:string">
103       <xs:enumeration value="tpk"/>
104       <xs:enumeration value="wgt"/>
105     </xs:restriction>
106   </xs:simpleType>
107
108   <xs:element name="author">
109     <xs:complexType mixed="true">
110       <xs:attribute name="email"/>
111       <xs:attribute name="href"/>
112       <xs:attribute ref="xml:lang"/>
113     </xs:complexType>
114   </xs:element>
115   <xs:element name="description">
116     <xs:complexType mixed="true">
117       <xs:attribute ref="xml:lang"/>
118     </xs:complexType>
119   </xs:element>
120   <xs:element name="compatibility">
121     <xs:complexType/>
122   </xs:element>
123   <xs:element name="profile">
124     <xs:complexType>
125       <xs:attribute name="name" use="required" type="packages:ProfileType"/>
126     </xs:complexType>
127   </xs:element>
128   <xs:element name="watch-application">
129     <xs:complexType>
130       <xs:sequence>
131         <xs:choice maxOccurs="unbounded" minOccurs="0">
132           <xs:element ref="packages:label"/>
133           <xs:element ref="packages:icon"/>
134         </xs:choice>
135       </xs:sequence>
136       <xs:attribute name="appid" use="required" type="xs:string"/>
137       <xs:attribute name="exec" use="required"/>
138       <xs:attribute name="ambient-support" type="xs:boolean"/>
139     </xs:complexType>
140   </xs:element>
141   <xs:element name="watchface">
142   </xs:element>
143   <xs:element name="service-application">
144     <xs:complexType>
145       <xs:sequence>
146         <xs:choice maxOccurs="unbounded" minOccurs="0">
147           <xs:element ref="packages:label"/>
148           <xs:element ref="packages:icon"/>
149           <xs:element ref="packages:application-service"/>
150           <xs:element ref="packages:app-control"/>
151           <xs:element ref="packages:category"/>
152           <xs:element ref="packages:metadata"/>
153           <xs:element ref="packages:permission"/>
154           <xs:element ref="packages:datacontrol"/>
155           <xs:element ref="packages:background-category"/>
156         </xs:choice>
157       </xs:sequence>
158       <xs:attribute name="appid" use="required" type="xs:string"/>
159       <xs:attribute name="auto-restart" type="xs:boolean"/>
160       <xs:attribute name="exec" use="required"/>
161       <xs:attribute name="on-boot" type="xs:boolean"/>
162       <xs:attribute name="type" use="required" type="packages:TypeType"/>
163       <xs:attribute name="multiple" type="xs:boolean"/>
164       <xs:attribute name="taskmanage" type="xs:boolean"/>
165       <xs:attribute name="permission-type" type="xs:string"/>
166       <xs:attribute name="component-type" type="xs:string"/>
167       <xs:attribute name="nodisplay" type="xs:boolean"/>
168     </xs:complexType>
169   </xs:element>
170   <xs:element name="ui-application">
171     <xs:complexType>
172       <xs:sequence>
173         <xs:choice maxOccurs="unbounded" minOccurs="0">
174           <xs:element ref="packages:label"/>
175           <xs:element ref="packages:icon"/>
176           <xs:element ref="packages:image"/>
177           <xs:element ref="packages:application-service"/>
178           <xs:element ref="packages:app-control"/>
179           <xs:element ref="packages:category"/>
180           <xs:element ref="packages:metadata"/>
181           <xs:element ref="packages:permission"/>
182           <xs:element ref="packages:datacontrol"/>
183           <xs:element ref="packages:background-category"/>
184           <xs:element ref="packages:splash-screens"/>
185         </xs:choice>
186       </xs:sequence>
187       <xs:attribute name="appid" use="required" type="xs:string"/>
188       <xs:attribute name="exec" use="required"/>
189       <xs:attribute name="multiple" type="xs:boolean"/>
190       <xs:attribute name="nodisplay" type="xs:boolean"/>
191       <xs:attribute name="taskmanage" type="xs:boolean"/>
192       <xs:attribute name="enabled" type="xs:boolean"/>
193       <xs:attribute name="type" use="required" type="packages:TypeType"/>
194       <xs:attribute name="categories" type="xs:NCName"/>
195       <xs:attribute name="extraid"/>
196       <xs:attribute name="hw-acceleration" type="packages:HwAccelerationType"/>
197       <xs:attribute name="screen-reader" type="packages:ScreenReaderType"/>
198       <xs:attribute name="recentimage" type="packages:RecentImage"/>
199       <xs:attribute name="mainapp" type="xs:boolean"/>
200       <xs:attribute name="indicatordisplay" type="xs:boolean"/>
201       <xs:attribute name="portrait-effectimage" type="xs:string"/>
202       <xs:attribute name="landscape-effectimage" type="xs:string"/>
203       <xs:attribute name="effectimage-type" type="xs:string"/>
204       <xs:attribute name="guestmode-visibility" type="xs:string"/>
205       <xs:attribute name="launchcondition" type="xs:boolean"/>
206       <xs:attribute name="permission-type" type="xs:string"/>
207       <xs:attribute name="component-type" type="xs:string"/>
208       <xs:attribute name="submode" type="xs:boolean"/>
209       <xs:attribute name="submode-mainid" type="xs:string"/>
210       <xs:attribute name="process-pool" type="xs:boolean"/>
211       <xs:attribute name="auto-restart" type="xs:boolean"/>
212       <xs:attribute name="on-boot" type="xs:boolean"/>
213       <xs:attribute name="multi-instance" type="xs:boolean"/>
214       <xs:attribute name="multi-instance-mainid" type="xs:string"/>
215       <xs:attribute name="ui-gadget" type="xs:boolean"/>
216       <xs:attribute name="launch_mode" type="packages:LaunchType"/>
217       <xs:attribute name="splash-screen-display" type="xs:boolean"/>
218     </xs:complexType>
219   </xs:element>
220   <xs:element name="ime-application">
221     <xs:complexType>
222       <xs:sequence>
223         <xs:choice maxOccurs="unbounded">
224           <xs:element ref="packages:label"/>
225           <xs:element ref="packages:icon"/>
226         </xs:choice>
227       </xs:sequence>
228       <xs:attribute name="appid" use="required" type="xs:string"/>
229       <xs:attribute name="exec" use="required" type="xs:NCName"/>
230       <xs:attribute name="multiple" type="xs:boolean"/>
231       <xs:attribute name="nodisplay" type="xs:boolean"/>
232       <xs:attribute name="type" use="required" type="packages:TypeType"/>
233     </xs:complexType>
234   </xs:element>
235   <xs:element name="shortcut-list">
236   </xs:element>
237   <xs:element name="widget">
238   </xs:element>
239   <xs:element name="widget-application">
240     <xs:complexType>
241       <xs:sequence>
242         <xs:choice maxOccurs="unbounded" minOccurs="0">
243           <xs:element ref="packages:label"/>
244           <xs:element ref="packages:icon"/>
245           <xs:element ref="packages:support-size"/>
246         </xs:choice>
247       </xs:sequence>
248       <xs:attribute name="appid" use="required" type="xs:ID"/>
249       <xs:attribute name="exec" use="required"/>
250       <xs:attribute name="main" type="xs:boolean"/>
251       <xs:attribute name="update-period" type="xs:positiveInteger"/>
252       <xs:attribute name="preview" type="xs:string"/>
253     </xs:complexType>
254   </xs:element>
255   <xs:element name="account">
256   </xs:element>
257   <xs:element name="notifications">
258   </xs:element>
259   <xs:element name="ime">
260   </xs:element>
261   <xs:element name="feature">
262   </xs:element>
263   <xs:element name="privileges">
264     <xs:complexType>
265       <xs:sequence>
266         <xs:choice maxOccurs="unbounded" minOccurs="0">
267           <xs:element ref="packages:privilege"/>
268         </xs:choice>
269       </xs:sequence>
270     </xs:complexType>
271   </xs:element>
272   <xs:element name="privilege">
273     <xs:complexType mixed="true">
274       <xs:attribute name="type" type="PrivilegeType"/>
275     </xs:complexType>
276   </xs:element>
277   <xs:element name="font">
278   </xs:element>
279   <xs:element name="label">
280     <xs:complexType mixed="true">
281       <xs:attribute ref="xml:lang"/>
282     </xs:complexType>
283   </xs:element>
284   <xs:element name="icon">
285   <xs:complexType mixed="true">
286     <xs:attribute ref="xml:lang"/>
287     <xs:attribute name="section" type="xs:string"/>
288     <xs:attribute name="resolution" type="packages:ResolutionType"/>
289     <xs:attribute name="dpi" type="xs:string"/>
290   </xs:complexType>
291   </xs:element>
292   <xs:element name="image">
293   <xs:complexType mixed="true">
294     <xs:attribute ref="xml:lang"/>
295     <xs:attribute name="section" type="xs:string"/>
296   </xs:complexType>
297   </xs:element>
298   <xs:simpleType name="SectionType">
299   <xs:restriction base="xs:string">
300     <xs:enumeration value="notification"/>
301     <xs:enumeration value="setting"/>
302    </xs:restriction>
303   </xs:simpleType>
304   <xs:simpleType name="LaunchType">
305   <xs:restriction base="xs:string">
306     <xs:enumeration value="caller"/>
307     <xs:enumeration value="single"/>
308     <xs:enumeration value="group"/>
309     <xs:enumeration value="singleton"/>
310    </xs:restriction>
311   </xs:simpleType>
312   <xs:simpleType name="ResolutionType">
313   <xs:restriction base="xs:string">
314     <xs:enumeration value="xhigh"/>
315     <xs:enumeration value="high"/>
316    </xs:restriction>
317   </xs:simpleType>
318   <xs:element name="application-service">
319     <xs:complexType>
320       <xs:sequence>
321         <xs:choice maxOccurs="unbounded">
322           <xs:element ref="packages:operation"/>
323           <xs:element ref="packages:uri"/>
324           <xs:element ref="packages:mime"/>
325           <xs:element ref="packages:subapp"/>
326         </xs:choice>
327       </xs:sequence>
328     </xs:complexType>
329   </xs:element>
330   <xs:element name="app-control">
331     <xs:complexType>
332       <xs:sequence>
333         <xs:choice maxOccurs="unbounded">
334           <xs:element ref="packages:operation"/>
335           <xs:element ref="packages:uri"/>
336           <xs:element ref="packages:mime"/>
337           <xs:element ref="packages:subapp"/>
338         </xs:choice>
339       </xs:sequence>
340     </xs:complexType>
341   </xs:element>
342   <xs:element name="category">
343     <xs:complexType>
344       <xs:sequence>
345         <xs:choice maxOccurs="unbounded">
346           <xs:any minOccurs="0" processContents="lax"/>
347         </xs:choice>
348       </xs:sequence>
349       <xs:attribute name="name" use="required"/>
350       <xs:anyAttribute processContents="lax"/>
351     </xs:complexType>
352   </xs:element>
353   <xs:element name="metadata">
354     <xs:complexType>
355       <xs:attribute name="key" use="required" type="xs:string"/>
356       <xs:attribute name="value" type="xs:string"/>
357     </xs:complexType>
358   </xs:element>
359   <xs:element name="permission">
360   <xs:complexType>
361     <xs:attribute name="type" type="xs:string"/>
362   </xs:complexType>
363   </xs:element>
364   <xs:element name="datacontrol">
365   <xs:complexType>
366     <xs:attribute name="providerid" type="xs:string"/>
367     <xs:attribute name="access" type="xs:string"/>
368     <xs:attribute name="type" type="xs:string"/>
369   </xs:complexType>
370   </xs:element>
371   <xs:element name="operation">
372     <xs:complexType>
373       <xs:attribute name="name" use="required"/>
374     </xs:complexType>
375   </xs:element>
376   <xs:element name="uri">
377     <xs:complexType>
378       <xs:attribute name="name" use="required"/>
379     </xs:complexType>
380   </xs:element>
381   <xs:element name="mime">
382     <xs:complexType>
383       <xs:attribute name="name" use="required"/>
384     </xs:complexType>
385   </xs:element>
386   <xs:element name="subapp">
387     <xs:complexType>
388       <xs:attribute name="name" use="required"/>
389     </xs:complexType>
390   </xs:element>
391   <xs:element name="background-category">
392     <xs:complexType mixed="true">
393       <xs:attribute name="value" type="packages:BackgroundCategoryType"/>
394     </xs:complexType>
395   </xs:element>
396   <xs:simpleType name="BackgroundCategoryType">
397     <xs:restriction base="xs:string">
398       <xs:enumeration value="media"/>
399       <xs:enumeration value="download"/>
400       <xs:enumeration value="background-network"/>
401       <xs:enumeration value="location"/>
402       <xs:enumeration value="sensor"/>
403       <xs:enumeration value="iot-communication"/>
404       <xs:enumeration value="system"/>
405     </xs:restriction>
406   </xs:simpleType>
407   <xs:element name="support-size">
408   </xs:element>
409   <xs:element name="splash-screens">
410     <xs:complexType>
411       <xs:sequence>
412         <xs:choice maxOccurs="unbounded" minOccurs="0">
413           <xs:element ref="packages:splash-screen"/>
414         </xs:choice>
415       </xs:sequence>
416     </xs:complexType>
417   </xs:element>
418   <xs:element name="splash-screen">
419     <xs:complexType>
420       <xs:attribute name="src" use="required" type="xs:string"/>
421       <xs:attribute name="type" use="required" type="xs:string"/>
422       <xs:attribute name="dpi" type="xs:string"/>
423       <xs:attribute name="orientation" use="required" type="xs:string"/>
424       <xs:attribute name="indicator-display" type="xs:string"/>
425       <xs:attribute name="app-control-operation" type="xs:string"/>
426       <xs:attribute name="color-depth" type="xs:string"/>
427     </xs:complexType>
428   </xs:element>
429 </xs:schema>