/**
 * Auto-generated schema from XSD
 * 
 * DO NOT EDIT - Generated by ts-xsd codegen
 * Source: xsd/custom/acoverageResult.xsd
 */

import adtcore from '../sap/adtcore';
import atom from '../sap/atom';

export default {
  $xmlns: {
    xsd: 'http://www.w3.org/2001/XMLSchema',
    cov: 'http://www.sap.com/adt/cov',
    adtcore: 'http://www.sap.com/adt/core',
    atom: 'http://www.w3.org/2005/Atom',
  },
  $imports: [
    adtcore,
    atom,
  ],
  targetNamespace: 'http://www.sap.com/adt/cov',
  attributeFormDefault: 'unqualified',
  elementFormDefault: 'qualified',
  element: [
    {
      name: 'result',
      type: 'cov:CoverageResult',
    },
  ],
  complexType: [
    {
      name: 'CoverageResult',
      sequence: {
        element: [
          {
            ref: 'atom:link',
            minOccurs: '0',
            maxOccurs: 'unbounded',
          },
          {
            name: 'nodes',
            type: 'cov:CoverageNodes',
            minOccurs: '0',
            maxOccurs: '1',
            form: 'unqualified',
          },
        ],
      },
      attribute: [
        {
          name: 'name',
          type: 'xsd:string',
        },
      ],
    },
    {
      name: 'CoverageNodes',
      sequence: {
        element: [
          {
            name: 'node',
            type: 'cov:CoverageNode',
            minOccurs: '0',
            maxOccurs: 'unbounded',
            form: 'unqualified',
          },
        ],
      },
    },
    {
      name: 'CoverageNode',
      sequence: {
        element: [
          {
            ref: 'adtcore:objectReference',
            minOccurs: '0',
            maxOccurs: '1',
          },
          {
            name: 'coverages',
            type: 'cov:CoverageList',
            minOccurs: '0',
            maxOccurs: '1',
            form: 'unqualified',
          },
          {
            ref: 'atom:link',
            minOccurs: '0',
            maxOccurs: 'unbounded',
          },
          {
            name: 'nodes',
            type: 'cov:CoverageNodes',
            minOccurs: '0',
            maxOccurs: '1',
            form: 'unqualified',
          },
        ],
      },
    },
    {
      name: 'CoverageList',
      sequence: {
        element: [
          {
            name: 'coverage',
            type: 'cov:CoverageMetric',
            minOccurs: '0',
            maxOccurs: 'unbounded',
            form: 'unqualified',
          },
        ],
      },
    },
    {
      name: 'CoverageMetric',
      attribute: [
        {
          name: 'type',
          type: 'xsd:string',
        },
        {
          name: 'total',
          type: 'xsd:int',
        },
        {
          name: 'executed',
          type: 'xsd:int',
        },
      ],
    },
  ],
} as const;
