b95e3e1ce60e2887a8ab2ad3f4c17a364f39b1f7
[vfc/nfvo/wfengine.git] / winery / org.eclipse.winery.model.selfservice / src / main / resources / SelfServiceModel.xsd
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*******************************************************************************
4  * Copyright (c) 2013 University of Stuttgart.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * and the Apache License 2.0 which both accompany this distribution,
8  * and are available at http://www.eclipse.org/legal/epl-v10.html
9  * and http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Contributors:
12  *    Tobias Binz and Uwe Breitenbücher - initial API and implementation and/or initial documentation
13  *******************************************************************************/
14 -->
15 <xs:schema xmlns="http://www.eclipse.org/winery/model/selfservice" targetNamespace="http://www.eclipse.org/winery/model/selfservice"
16         xmlns:tns="http://www.eclipse.org/winery/model/selfservice" xmlns:xs="http://www.w3.org/2001/XMLSchema"
17         elementFormDefault="qualified" attributeFormDefault="unqualified">
18
19         <xs:element name="Application">
20                 <xs:complexType>
21                         <xs:sequence>
22                                 <xs:element name="displayName" type="xs:string" />
23
24                                 <xs:element name="description" type="xs:string" />
25
26                                 <xs:element name="iconUrl" type="xs:string">
27                                         <xs:annotation>
28                                                 <xs:documentation>Absolute or relative (with respect to the SELFSERVICE-Metadata folder root in the CSAR) URL to load the application icon.</xs:documentation>
29                                         </xs:annotation>
30                                 </xs:element>
31                                 <xs:element name="imageUrl" type="xs:string">
32                                         <xs:annotation>
33                                                 <xs:documentation>Absolute or relative (with respect to the SELFSERVICE-Metadata folder root in the CSAR) URL to load the application image for the application's offering details.</xs:documentation>
34                                         </xs:annotation>
35                                 </xs:element>
36
37                                 <xs:element name="options">
38                                         <xs:complexType>
39                                                 <xs:sequence>
40                                                         <xs:element name="option" type="ApplicationOption" minOccurs="0" maxOccurs="unbounded" />
41                                                 </xs:sequence>
42                                         </xs:complexType>
43                                 </xs:element>
44
45                         </xs:sequence>
46                 </xs:complexType>
47         </xs:element>
48
49         <xs:complexType name="ApplicationOption">
50                 <xs:sequence>
51                         <xs:element name="description" type="xs:string" />
52
53                         <xs:element name="iconUrl" type="xs:anyURI">
54                                 <xs:annotation>
55                                         <xs:documentation>Absolute or relative (with respect to the SELFSERVICE-Metadata folder root in the CSAR) URL to load the application icon.</xs:documentation>
56                                 </xs:annotation>
57                         </xs:element>
58
59                         <xs:element name="planServiceName" type="xs:string" />
60
61                         <xs:element name="planInputMessageUrl" type="xs:string">
62                                 <xs:annotation>
63                                         <xs:documentation>Absolute or relative (with respect to the SELFSERVICE-Metadata folder root in the CSAR) URL to load the plan input message to start the build plan.</xs:documentation>
64                                 </xs:annotation>
65                         </xs:element>
66                 </xs:sequence>
67
68                 <xs:attribute name="id" type="xs:string" use="required" />
69                 <xs:attribute name="name" type="xs:string" use="required" />
70         </xs:complexType>
71 </xs:schema>