Products Downloads


French version


 

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <xsd:annotation>

    <xsd:documentation xml:lang="en">Adelia metrics plugin schema definition</xsd:documentation>

  </xsd:annotation>

 

  <xsd:element name="plugin" type="adeliaPluginDefinition" />

   <xsd:element name="dll" type="adeliaDLLDefinition" />

 

   <!-- base elements -->

  <xsd:element name="value" type="xsd:string" />

  

  <!-- translatable elements -->

  <xsd:element name="provider"    type="adeliaIntlValue" />

  <xsd:element name="name"        type="adeliaIntlValue" />

  <xsd:element name="description" type="adeliaIntlValue" />

 

  <!-- datatypes -->

  <xsd:complexType name="adeliaDLLDefinition">

    <xsd:simpleContent>

      <xsd:extension base="xsd:string">

        <xsd:attribute name="version" type="xsd:int" default="0" />

      </xsd:extension>

    </xsd:simpleContent>

  </xsd:complexType>

 

  <xsd:complexType name="adeliaIntlValue">

    <xsd:simpleContent>

      <xsd:extension base="xsd:string">

        <xsd:attribute name="lang" type="xsd:string" default="" />

      </xsd:extension>

    </xsd:simpleContent>

  </xsd:complexType>

 

  <xsd:complexType name="adeliaPluginDefinition">

    <xsd:sequence>

      <xsd:element ref="provider" maxOccurs="unbounded" />

      <xsd:element ref="name" maxOccurs="unbounded" />

      <xsd:element ref="description" minOccurs="0" maxOccurs="unbounded" />

      <xsd:element name="dll" type="xsd:string" minOccurs="0" />

      <xsd:element name="metrics" type="adeliaMetricsList" minOccurs="0" />

      <xsd:element name="rules" type="adeliaRulesList" minOccurs="0" />

    </xsd:sequence>

    <xsd:attribute name="internal_id" type="xsd:int" default="0" />

    <xsd:attribute name="id" type="xsd:string" use="required" />

    <xsd:attribute name="version" type="xsd:int" default="0" />

    <xsd:attribute name="lang" type="xsd:string" default="" />

  </xsd:complexType>

 

  <xsd:complexType name="adeliaMetricsList">

    <xsd:sequence>

      <xsd:element name="metric" type="adeliaMetric" minOccurs="0" maxOccurs="unbounded" />

    </xsd:sequence>

  </xsd:complexType>

 

  <xsd:complexType name="adeliaMetric">

    <xsd:sequence>

      <xsd:element ref="name" maxOccurs="unbounded" />

      <xsd:element ref="description" minOccurs="0" maxOccurs="unbounded" />

    </xsd:sequence>

    <xsd:attribute name="internal_id" type="xsd:int" default="0" />

    <xsd:attribute name="id" type="xsd:string" use="required" />

    <xsd:attribute name="type" use="required">

      <xsd:simpleType>

         <xsd:restriction base="xsd:string">

           <xsd:enumeration value="boolean"/>

           <xsd:enumeration value="integer"/>

           <xsd:enumeration value="decimal"/>

           <xsd:enumeration value="percentage"/>

           <xsd:enumeration value="string"/>

         </xsd:restriction>

      </xsd:simpleType>

    </xsd:attribute>

    <xsd:attribute name="domain" type="xsd:string" default="General" />

  </xsd:complexType>

 

  <xsd:complexType name="adeliaRulesList">

    <xsd:sequence>

      <xsd:element name="rule" type="adeliaRule" minOccurs="0" maxOccurs="unbounded" />

    </xsd:sequence>

  </xsd:complexType>

 

  <xsd:complexType name="adeliaRule">

    <xsd:sequence>

      <xsd:element ref="name" maxOccurs="unbounded" />

      <xsd:element ref="description" minOccurs="0" maxOccurs="unbounded" />

      <xsd:element name="parameters" type="adeliaRuleParameters" minOccurs="0" />

    </xsd:sequence>

    <xsd:attribute name="internal_id" type="xsd:int" default="0" />

    <xsd:attribute name="id" type="xsd:string" use="required" />

    <xsd:attribute name="severity" default="3">

      <xsd:simpleType>

        <xsd:restriction base="xsd:int">

          <xsd:minInclusive value="1" />

          <xsd:maxInclusive value="5" />

        </xsd:restriction>

      </xsd:simpleType>

    </xsd:attribute>

    <xsd:attribute name="domain" type="xsd:string" default="General" />

    <xsd:attribute name="type" type="xsd:int" default="0" />

    <xsd:attribute name="programTypes" type="xsd:string" default="" />

  </xsd:complexType>

 

  <xsd:complexType name="adeliaRuleParameters">

    <xsd:sequence>

      <xsd:element name="parameter" type="adeliaRuleParameter" minOccurs="0" maxOccurs="unbounded" />

    </xsd:sequence>

  </xsd:complexType>

 

  <xsd:complexType name="adeliaRuleParameter">

    <xsd:sequence>

      <xsd:element ref="name" maxOccurs="unbounded" />

      <xsd:element ref="description" minOccurs="0" maxOccurs="unbounded" />

      <xsd:element ref="value" minOccurs="0" />

    </xsd:sequence>

    <xsd:attribute name="internal_id" type="xsd:int" default="0" />

    <xsd:attribute name="id" type="xsd:string" use="required" />

  </xsd:complexType>

 

</xsd:schema>

 

↑ Top of page


  • Aucune étiquette