c8314550ad7bb50779eacacdcb41ce6b67329558
[policy/apex-pdp.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4    Copyright (C) 2016-2018 Ericsson. All rights reserved.
5   ================================================================================
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   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, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17   
18   SPDX-License-Identifier: Apache-2.0
19   ============LICENSE_END=========================================================
20 -->
21
22 <schema targetNamespace="http://www.onap.org/policy/apex-pdp/apexevent" elementFormDefault="qualified"
23     xmlns="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
24     xmlns:basic="http://jaxb2-commons.dev.java.net/basic"
25     xmlns:copyable="http://jaxb2-commons.dev.java.net/basic/copyable"
26     xmlns:equals="http://jaxb2-commons.dev.java.net/basic/equals"
27     xmlns:hashCode="http://jaxb2-commons.dev.java.net/basic/hashCode"
28     xmlns:mergeable="http://jaxb2-commons.dev.java.net/basic/mergeable"
29     xmlns:toString="http://jaxb2-commons.dev.java.net/basic/toString"
30     jaxb:extensionBindingPrefixes="xjc basic copyable equals hashCode mergeable toString"
31     xmlns:apexev="http://www.onap.org/policy/apex-pdp/apexevent" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
32     jaxb:version="2.0">
33
34     <annotation>
35         <documentation>An event that comes into or is emitted out of an Apex system.
36         </documentation>
37     </annotation>
38
39     <annotation>
40         <appinfo>
41             <jaxb:globalBindings generateIsSetMethod="true">
42                 <xjc:serializable uid="1" />
43             </jaxb:globalBindings>
44         </appinfo>
45     </annotation>
46
47     <complexType name="XMLApexEvent">
48         <annotation>
49             <documentation>An event that comes into or goes out of an Apex system</documentation>
50         </annotation>
51         <sequence>
52             <element name="name" maxOccurs="1" minOccurs="1">
53                 <simpleType>
54                     <restriction base="string">
55                         <pattern value="[A-Za-z0-9\-_:]+"></pattern>
56                     </restriction>
57                 </simpleType>
58             </element>
59             <element name="version" maxOccurs="1" minOccurs="1">
60                 <simpleType>
61                     <restriction base="string">
62                         <pattern value="[0-9.]+"></pattern>
63                     </restriction>
64                 </simpleType>
65             </element>
66             <element name="nameSpace" maxOccurs="1" minOccurs="1">
67                 <simpleType>
68                     <restriction base="string">
69                         <minLength value="1"></minLength>
70                     </restriction>
71                 </simpleType>
72             </element>
73             <element name="source" maxOccurs="1" minOccurs="0">
74                 <simpleType>
75                     <restriction base="string">
76                         <minLength value="0"></minLength>
77                     </restriction>
78                 </simpleType>
79             </element>
80             <element name="target" maxOccurs="1" minOccurs="0">
81                 <simpleType>
82                     <restriction base="string">
83                         <minLength value="0"></minLength>
84                     </restriction>
85                 </simpleType>
86             </element>
87             <element name="data" type="apexev:XMLApexEventData" maxOccurs="unbounded" minOccurs="0">
88             </element>
89         </sequence>
90     </complexType>
91
92     <element name="xmlApexEvent" type="apexev:XMLApexEvent"></element>
93
94     <complexType name="XMLApexEventData">
95         <annotation>
96             <documentation>
97                 A single data item of an Apex event.
98             </documentation>
99         </annotation>
100         <sequence>
101             <element name="key" maxOccurs="1" minOccurs="1">
102                 <simpleType>
103                     <restriction base="string">
104                         <pattern value="[A-Za-z0-9\-_:]+"></pattern>
105                     </restriction>
106                 </simpleType>
107             </element>
108             <element name="value" maxOccurs="1" minOccurs="1">
109                 <simpleType>
110                     <restriction base="string">
111                         <minLength value="0"></minLength>
112                     </restriction>
113                 </simpleType>
114             </element>
115         </sequence>
116     </complexType>
117
118
119 </schema>