1 <?xml version='1.0' encoding='UTF-8'?>
   2 <!--   
   3    Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
   4    
   5    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6    
   7    The contents of this file are subject to the terms of either the Universal Permissive License 
   8    v 1.0 as shown at http://oss.oracle.com/licenses/upl
   9    
  10    or the following license:
  11    
  12    Redistribution and use in source and binary forms, with or without modification, are permitted
  13    provided that the following conditions are met:
  14    
  15    1. Redistributions of source code must retain the above copyright notice, this list of conditions
  16    and the following disclaimer.
  17    
  18    2. Redistributions in binary form must reproduce the above copyright notice, this list of
  19    conditions and the following disclaimer in the documentation and/or other materials provided with
  20    the distribution.
  21    
  22    3. Neither the name of the copyright holder nor the names of its contributors may be used to
  23    endorse or promote products derived from this software without specific prior written permission.
  24    
  25    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
  26    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  27    FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  28    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  30    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  31    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  32    WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33 -->
  34 <schema targetNamespace="org.openjdk.jmc.flightrecorder.ui" xmlns="http://www.w3.org/2001/XMLSchema">
  35 <annotation>
  36       <appInfo>
  37          <meta.schema plugin="org.openjdk.jmc.flightrecorder.ui" id="datapage" name="Flight Recorder Data Page"/>
  38       </appInfo>
  39       <documentation>
  40          Data display page for flight recorder user interface
  41       </documentation>
  42    </annotation>
  43 
  44    <element name="extension">
  45       <annotation>
  46          <appInfo>
  47             <meta.element />
  48          </appInfo>
  49       </annotation>
  50       <complexType>
  51          <choice minOccurs="1" maxOccurs="unbounded">
  52             <element ref="factory"/>
  53             <element ref="pages"/>
  54          </choice>
  55          <attribute name="point" type="string" use="required">
  56             <annotation>
  57                <documentation>
  58                   
  59                </documentation>
  60             </annotation>
  61          </attribute>
  62          <attribute name="id" type="string">
  63             <annotation>
  64                <documentation>
  65                   
  66                </documentation>
  67             </annotation>
  68          </attribute>
  69          <attribute name="name" type="string">
  70             <annotation>
  71                <documentation>
  72                   
  73                </documentation>
  74                <appInfo>
  75                   <meta.attribute translatable="true"/>
  76                </appInfo>
  77             </annotation>
  78          </attribute>
  79       </complexType>
  80    </element>
  81 
  82    <element name="factory">
  83       <annotation>
  84          <documentation>
  85             Factories for creating data page instances.
  86          </documentation>
  87       </annotation>
  88       <complexType>
  89          <attribute name="id" type="string" use="required">
  90             <annotation>
  91                <documentation>
  92                   
  93                </documentation>
  94             </annotation>
  95          </attribute>
  96          <attribute name="class" type="string" use="required">
  97             <annotation>
  98                <documentation>
  99                   
 100                </documentation>
 101                <appInfo>
 102                   <meta.attribute kind="java" basedOn=":org.openjdk.jmc.flightrecorder.ui.pages.IDataPageFactory"/>
 103                </appInfo>
 104             </annotation>
 105          </attribute>
 106       </complexType>
 107    </element>
 108 
 109    <element name="pages">
 110       <annotation>
 111          <documentation>
 112             Pages that are added to the UI model if no persisted state is found.
 113          </documentation>
 114       </annotation>
 115       <complexType>
 116          <sequence minOccurs="0" maxOccurs="unbounded">
 117             <element ref="page"/>
 118          </sequence>
 119          <attribute name="weight" type="string">
 120             <annotation>
 121                <documentation>
 122                   A sorting key. Page collections are sorted by comparing this attribute lexically. Page collections without a weight are placed below collections with a weight.
 123                </documentation>
 124             </annotation>
 125          </attribute>
 126          <attribute name="file" type="string">
 127             <annotation>
 128                <documentation>
 129                   XML file where a child elements of the root element are page elements
 130                </documentation>
 131                <appInfo>
 132                   <meta.attribute kind="resource"/>
 133                </appInfo>
 134             </annotation>
 135          </attribute>
 136       </complexType>
 137    </element>
 138 
 139    <element name="page">
 140       <annotation>
 141          <documentation>
 142             Pages that are added to the UI model if no persisted state is found.
 143          </documentation>
 144       </annotation>
 145       <complexType>
 146          <attribute name="parent" type="string">
 147             <annotation>
 148                <documentation>
 149                   
 150                </documentation>
 151             </annotation>
 152          </attribute>
 153          <attribute name="id" type="string" use="required">
 154             <annotation>
 155                <documentation>
 156                   
 157                </documentation>
 158             </annotation>
 159          </attribute>
 160          <attribute name="factory" type="string" use="required">
 161             <annotation>
 162                <documentation>
 163                   
 164                </documentation>
 165                <appInfo>
 166                   <meta.attribute kind="identifier" basedOn="org.openjdk.jmc.flightrecorder.ui.datapage/factory/@id"/>
 167                </appInfo>
 168             </annotation>
 169          </attribute>
 170       </complexType>
 171    </element>
 172 
 173    <annotation>
 174       <appInfo>
 175          <meta.section type="since"/>
 176       </appInfo>
 177       <documentation>
 178          6.0.0
 179       </documentation>
 180    </annotation>
 181 
 182 
 183 
 184 
 185    <annotation>
 186       <appInfo>
 187          <meta.section type="copyright"/>
 188       </appInfo>
 189       <documentation>
 190          Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
 191       </documentation>
 192    </annotation>
 193 
 194 </schema>