metadata.xsd 6.2 KB
Newer Older
A
apetushkov 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
<?xml version="1.0" encoding="utf-8"?>

<!--
 Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

 This code is free software; you can redistribute it and/or modify it
 under the terms of the GNU General Public License version 2 only, as
 published by the Free Software Foundation.

 This code is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 version 2 for more details (a copy is included in the LICENSE file that
 accompanied this code).

 You should have received a copy of the GNU General Public License version
 2 along with this work; if not, write to the Free Software Foundation,
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 or visit www.oracle.com if you need additional information or have any
 questions.

-->

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:simpleType name="periodType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="beginChunk" />
      <xs:enumeration value="endChunk" />
      <xs:enumeration value="everyChunk" />
    </xs:restriction>
  </xs:simpleType>
    <xs:simpleType name="transitionType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="from" />
      <xs:enumeration value="to" />
    </xs:restriction>
  </xs:simpleType> 
  <xs:element name="Metadata">
    <xs:complexType>
      <xs:sequence>
        <xs:choice maxOccurs="unbounded">
          <xs:element maxOccurs="unbounded" name="Event">
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="unbounded" name="Field">
                  <xs:complexType>
                    <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
                    <xs:attribute name="struct" type="xs:boolean" use="optional" />
                    <xs:attribute name="array" type="xs:boolean" use="optional" />
                    <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
                    <xs:attribute name="label" type="xs:string" use="required" />
                    <xs:attribute name="description" type="xs:string" use="optional" />
                    <xs:attribute name="contentType" type="xs:string" use="optional" />
                    <xs:attribute name="relation" type="xs:string" use="optional" />
                    <xs:attribute name="experimental" type="xs:boolean" use="optional" />
                    <xs:attribute name="transition" type="transitionType" use="optional" />
                  </xs:complexType>
                </xs:element>
              </xs:sequence>
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
              <xs:attribute name="category" type="xs:string" use="required" />
              <xs:attribute name="label" type="xs:string" use="required" />
              <xs:attribute name="description" type="xs:string" use="optional" />
              <xs:attribute name="experimental" type="xs:boolean" use="optional" />
              <xs:attribute name="thread" type="xs:boolean" use="optional" />
              <xs:attribute name="startTime" type="xs:boolean" use="optional" />
              <xs:attribute name="stackTrace" type="xs:boolean" use="optional" />
              <xs:attribute name="period" type="periodType" use="optional" />
              <xs:attribute name="cutoff" type="xs:boolean" use="optional" />
73
              <xs:attribute name="commitState" type="xs:string" use="optional" />
A
apetushkov 已提交
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
            </xs:complexType>
          </xs:element>
          <xs:element maxOccurs="unbounded" name="Type">
            <xs:complexType>
              <xs:sequence>
                <xs:element maxOccurs="unbounded" name="Field">
                  <xs:complexType>
                    <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
                    <xs:attribute name="struct" type="xs:boolean" use="optional" />
                    <xs:attribute name="array" type="xs:boolean" use="optional" />
                    <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
                    <xs:attribute name="contentType" type="xs:string" use="optional" />
                    <xs:attribute name="label" type="xs:string" use="required" />
                    <xs:attribute name="description" type="xs:string" use="optional" />
                    <xs:attribute name="experimental" type="xs:boolean" use="optional" />
                    <xs:attribute name="relation" type="xs:string" use="optional" />
                  </xs:complexType>
                </xs:element>
              </xs:sequence>
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
              <xs:attribute name="label" type="xs:string" use="optional" />
              <xs:attribute name="experimental" type="xs:boolean" use="optional" />
            </xs:complexType>
          </xs:element>
          <xs:element name="XmlType">
            <xs:complexType>
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
              <xs:attribute name="contentType" type="xs:NMTOKEN" use="optional" />
              <xs:attribute name="javaType" type="xs:NMTOKEN" use="optional" />
              <xs:attribute name="unsigned" type="xs:boolean" use="optional" />
              <xs:attribute name="parameterType" type="xs:string" use="required" />
              <xs:attribute name="fieldType" type="xs:string" use="required" />
             </xs:complexType>
          </xs:element>
          <xs:element name="XmlContentType">
            <xs:complexType>
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
111
              <xs:attribute name="annotation" type="xs:string" use="required" />
A
apetushkov 已提交
112 113 114 115 116 117 118 119 120 121 122
            </xs:complexType>
          </xs:element>
          <xs:element name="Relation">
            <xs:complexType>
              <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
123
</xs:schema>