1 <?xml version="1.0" encoding="utf-8"?>
   2 
   3 <!--
   4  Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
   5  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6 
   7  This code is free software; you can redistribute it and/or modify it
   8  under the terms of the GNU General Public License version 2 only, as
   9  published by the Free Software Foundation.
  10 
  11  This code is distributed in the hope that it will be useful, but WITHOUT
  12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  version 2 for more details (a copy is included in the LICENSE file that
  15  accompanied this code).
  16 
  17  You should have received a copy of the GNU General Public License version
  18  2 along with this work; if not, write to the Free Software Foundation,
  19  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 
  21  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  or visit www.oracle.com if you need additional information or have any
  23  questions.
  24 
  25 -->
  26 
  27 <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  28   <xs:simpleType name="periodType">
  29     <xs:restriction base="xs:string">
  30       <xs:enumeration value="beginChunk" />
  31       <xs:enumeration value="endChunk" />
  32       <xs:enumeration value="everyChunk" />
  33     </xs:restriction>
  34   </xs:simpleType>
  35     <xs:simpleType name="transitionType">
  36     <xs:restriction base="xs:string">
  37       <xs:enumeration value="from" />
  38       <xs:enumeration value="to" />
  39     </xs:restriction>
  40   </xs:simpleType> 
  41   <xs:element name="Metadata">
  42     <xs:complexType>
  43       <xs:sequence>
  44         <xs:choice maxOccurs="unbounded">
  45           <xs:element maxOccurs="unbounded" name="Event">
  46             <xs:complexType>
  47               <xs:sequence>
  48                 <xs:element maxOccurs="unbounded" name="Field">
  49                   <xs:complexType>
  50                     <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
  51                     <xs:attribute name="struct" type="xs:boolean" use="optional" />
  52                     <xs:attribute name="array" type="xs:boolean" use="optional" />
  53                     <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
  54                     <xs:attribute name="label" type="xs:string" use="required" />
  55                     <xs:attribute name="description" type="xs:string" use="optional" />
  56                     <xs:attribute name="contentType" type="xs:string" use="optional" />
  57                     <xs:attribute name="relation" type="xs:string" use="optional" />
  58                     <xs:attribute name="experimental" type="xs:boolean" use="optional" />
  59                     <xs:attribute name="transition" type="transitionType" use="optional" />
  60                   </xs:complexType>
  61                 </xs:element>
  62               </xs:sequence>
  63               <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
  64               <xs:attribute name="category" type="xs:string" use="required" />
  65               <xs:attribute name="label" type="xs:string" use="required" />
  66               <xs:attribute name="description" type="xs:string" use="optional" />
  67               <xs:attribute name="experimental" type="xs:boolean" use="optional" />
  68               <xs:attribute name="thread" type="xs:boolean" use="optional" />
  69               <xs:attribute name="startTime" type="xs:boolean" use="optional" />
  70               <xs:attribute name="stackTrace" type="xs:boolean" use="optional" />
  71               <xs:attribute name="period" type="periodType" use="optional" />
  72               <xs:attribute name="cutoff" type="xs:boolean" use="optional" />
  73             </xs:complexType>
  74           </xs:element>
  75           <xs:element maxOccurs="unbounded" name="Type">
  76             <xs:complexType>
  77               <xs:sequence>
  78                 <xs:element maxOccurs="unbounded" name="Field">
  79                   <xs:complexType>
  80                     <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
  81                     <xs:attribute name="struct" type="xs:boolean" use="optional" />
  82                     <xs:attribute name="array" type="xs:boolean" use="optional" />
  83                     <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
  84                     <xs:attribute name="contentType" type="xs:string" use="optional" />
  85                     <xs:attribute name="label" type="xs:string" use="required" />
  86                     <xs:attribute name="description" type="xs:string" use="optional" />
  87                     <xs:attribute name="experimental" type="xs:boolean" use="optional" />
  88                     <xs:attribute name="relation" type="xs:string" use="optional" />
  89                   </xs:complexType>
  90                 </xs:element>
  91               </xs:sequence>
  92               <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
  93               <xs:attribute name="label" type="xs:string" use="optional" />
  94               <xs:attribute name="experimental" type="xs:boolean" use="optional" />
  95             </xs:complexType>
  96           </xs:element>
  97           <xs:element name="XmlType">
  98             <xs:complexType>
  99               <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
 100               <xs:attribute name="contentType" type="xs:NMTOKEN" use="optional" />
 101               <xs:attribute name="javaType" type="xs:NMTOKEN" use="optional" />
 102               <xs:attribute name="unsigned" type="xs:boolean" use="optional" />
 103               <xs:attribute name="parameterType" type="xs:string" use="required" />
 104               <xs:attribute name="fieldType" type="xs:string" use="required" />
 105              </xs:complexType>
 106           </xs:element>
 107           <xs:element name="XmlContentType">
 108             <xs:complexType>
 109               <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
 110               <xs:attribute name="annotation" type="xs:string" use="required" />
 111             </xs:complexType>
 112           </xs:element>
 113           <xs:element name="Relation">
 114             <xs:complexType>
 115               <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
 116             </xs:complexType>
 117           </xs:element>
 118         </xs:choice>
 119       </xs:sequence>
 120     </xs:complexType>
 121   </xs:element>
 122 </xs:schema>