xref: /aosp_15_r20/prebuilts/devtools/repository/sdk-addons-list-1.xsd (revision 4bfccde5c7e9ea06f821db40ef0af54f6695c320)
1*4bfccde5SXin Li<?xml version="1.0" encoding="UTF-8"?>
2*4bfccde5SXin Li<!--
3*4bfccde5SXin Li * Copyright (C) 2010 The Android Open Source Project
4*4bfccde5SXin Li *
5*4bfccde5SXin Li * Licensed under the Apache License, Version 2.0 (the "License");
6*4bfccde5SXin Li * you may not use this file except in compliance with the License.
7*4bfccde5SXin Li * You may obtain a copy of the License at
8*4bfccde5SXin Li *
9*4bfccde5SXin Li *      http://www.apache.org/licenses/LICENSE-2.0
10*4bfccde5SXin Li *
11*4bfccde5SXin Li * Unless required by applicable law or agreed to in writing, software
12*4bfccde5SXin Li * distributed under the License is distributed on an "AS IS" BASIS,
13*4bfccde5SXin Li * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*4bfccde5SXin Li * See the License for the specific language governing permissions and
15*4bfccde5SXin Li * limitations under the License.
16*4bfccde5SXin Li-->
17*4bfccde5SXin Li<xsd:schema
18*4bfccde5SXin Li    targetNamespace="http://schemas.android.com/sdk/android/addons-list/1"
19*4bfccde5SXin Li    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
20*4bfccde5SXin Li    xmlns:sa1="http://schemas.android.com/sdk/android/addons-list/1"
21*4bfccde5SXin Li    elementFormDefault="qualified"
22*4bfccde5SXin Li    attributeFormDefault="unqualified"
23*4bfccde5SXin Li    version="1">
24*4bfccde5SXin Li
25*4bfccde5SXin Li    <!--
26*4bfccde5SXin Li        A simple list of add-ons sites that is loaded by default by the SDK Manager.
27*4bfccde5SXin Li    -->
28*4bfccde5SXin Li
29*4bfccde5SXin Li    <xsd:element name="sdk-addons-list" type="sa1:addonsListType" />
30*4bfccde5SXin Li
31*4bfccde5SXin Li    <xsd:complexType name="addonsListType">
32*4bfccde5SXin Li        <xsd:annotation>
33*4bfccde5SXin Li            <xsd:documentation>
34*4bfccde5SXin Li                A simple list of add-ons site.
35*4bfccde5SXin Li            </xsd:documentation>
36*4bfccde5SXin Li        </xsd:annotation>
37*4bfccde5SXin Li        <xsd:choice minOccurs="0" maxOccurs="unbounded">
38*4bfccde5SXin Li            <xsd:element name="addon-site" type="sa1:addonSiteType" />
39*4bfccde5SXin Li        </xsd:choice>
40*4bfccde5SXin Li    </xsd:complexType>
41*4bfccde5SXin Li
42*4bfccde5SXin Li    <!-- The definition of an Add-on Site. -->
43*4bfccde5SXin Li
44*4bfccde5SXin Li    <xsd:complexType name="addonSiteType">
45*4bfccde5SXin Li        <xsd:annotation>
46*4bfccde5SXin Li            <xsd:documentation>An SDK add-on site.</xsd:documentation>
47*4bfccde5SXin Li        </xsd:annotation>
48*4bfccde5SXin Li        <xsd:all>
49*4bfccde5SXin Li            <!-- The URL of the site.
50*4bfccde5SXin Li
51*4bfccde5SXin Li                This can be either the exact URL of the an XML resource conforming
52*4bfccde5SXin Li                to the latest sdk-addon-N.xsd schema, or it can be the URL of a
53*4bfccde5SXin Li                'directory', in which case the manager will look for a resource
54*4bfccde5SXin Li                named 'addon.xml' at this location.
55*4bfccde5SXin Li
56*4bfccde5SXin Li                Examples:
57*4bfccde5SXin Li                    http://www.example.com/android/my_addons.xml
58*4bfccde5SXin Li                or
59*4bfccde5SXin Li                    http://www.example.com/android/
60*4bfccde5SXin Li
61*4bfccde5SXin Li                In the second example, the manager will actually look for:
62*4bfccde5SXin Li                    http://www.example.com/android/addon.xml
63*4bfccde5SXin Li            -->
64*4bfccde5SXin Li            <xsd:element name="url"  type="xsd:token" />
65*4bfccde5SXin Li
66*4bfccde5SXin Li            <!-- The UI-visible name of the add-on. -->
67*4bfccde5SXin Li            <xsd:element name="name" type="xsd:normalizedString" />
68*4bfccde5SXin Li        </xsd:all>
69*4bfccde5SXin Li    </xsd:complexType>
70*4bfccde5SXin Li
71*4bfccde5SXin Li</xsd:schema>
72