diff options
Diffstat (limited to 'winery/org.eclipse.winery.model.selfservice/src')
-rw-r--r-- | winery/org.eclipse.winery.model.selfservice/src/main/resources/SelfServiceModel.xsd | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/winery/org.eclipse.winery.model.selfservice/src/main/resources/SelfServiceModel.xsd b/winery/org.eclipse.winery.model.selfservice/src/main/resources/SelfServiceModel.xsd new file mode 100644 index 0000000..b95e3e1 --- /dev/null +++ b/winery/org.eclipse.winery.model.selfservice/src/main/resources/SelfServiceModel.xsd @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/******************************************************************************* + * Copyright (c) 2013 University of Stuttgart. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and the Apache License 2.0 which both accompany this distribution, + * and are available at http://www.eclipse.org/legal/epl-v10.html + * and http://www.apache.org/licenses/LICENSE-2.0 + * + * Contributors: + * Tobias Binz and Uwe Breitenbücher - initial API and implementation and/or initial documentation + *******************************************************************************/ +--> +<xs:schema xmlns="http://www.eclipse.org/winery/model/selfservice" targetNamespace="http://www.eclipse.org/winery/model/selfservice" + xmlns:tns="http://www.eclipse.org/winery/model/selfservice" xmlns:xs="http://www.w3.org/2001/XMLSchema" + elementFormDefault="qualified" attributeFormDefault="unqualified"> + + <xs:element name="Application"> + <xs:complexType> + <xs:sequence> + <xs:element name="displayName" type="xs:string" /> + + <xs:element name="description" type="xs:string" /> + + <xs:element name="iconUrl" type="xs:string"> + <xs:annotation> + <xs:documentation>Absolute or relative (with respect to the SELFSERVICE-Metadata folder root in the CSAR) URL to load the application icon.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="imageUrl" type="xs:string"> + <xs:annotation> + <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> + </xs:annotation> + </xs:element> + + <xs:element name="options"> + <xs:complexType> + <xs:sequence> + <xs:element name="option" type="ApplicationOption" minOccurs="0" maxOccurs="unbounded" /> + </xs:sequence> + </xs:complexType> + </xs:element> + + </xs:sequence> + </xs:complexType> + </xs:element> + + <xs:complexType name="ApplicationOption"> + <xs:sequence> + <xs:element name="description" type="xs:string" /> + + <xs:element name="iconUrl" type="xs:anyURI"> + <xs:annotation> + <xs:documentation>Absolute or relative (with respect to the SELFSERVICE-Metadata folder root in the CSAR) URL to load the application icon.</xs:documentation> + </xs:annotation> + </xs:element> + + <xs:element name="planServiceName" type="xs:string" /> + + <xs:element name="planInputMessageUrl" type="xs:string"> + <xs:annotation> + <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> + </xs:annotation> + </xs:element> + </xs:sequence> + + <xs:attribute name="id" type="xs:string" use="required" /> + <xs:attribute name="name" type="xs:string" use="required" /> + </xs:complexType> +</xs:schema>
\ No newline at end of file |