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

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

export default {
  $xmlns: {
    ecore: 'http://www.eclipse.org/emf/2002/Ecore',
    xsd: 'http://www.w3.org/2001/XMLSchema',
    adtcore: 'http://www.sap.com/adt/core',
    abapsource: 'http://www.sap.com/adt/abapsource',
    atom: 'http://www.w3.org/2005/Atom',
    program: 'http://www.sap.com/adt/programs/programs',
  },
  $imports: [
    adtcore,
    abapsource,
    atom,
  ],
  targetNamespace: 'http://www.sap.com/adt/programs/programs',
  attributeFormDefault: 'qualified',
  elementFormDefault: 'qualified',
  element: [
    {
      name: 'abapProgram',
      type: 'program:AbapProgram',
    },
  ],
  complexType: [
    {
      name: 'AbapProgram',
      complexContent: {
        extension: {
          base: 'abapsource:AbapSourceMainObject',
          sequence: {
            element: [
              {
                ref: 'atom:link',
                minOccurs: '0',
                maxOccurs: 'unbounded',
              },
              {
                name: 'logicalDatabase',
                type: 'program:LogicalDatabase',
                minOccurs: '0',
                maxOccurs: '1',
              },
              {
                name: 'authorizationGroup',
                type: 'program:AuthorizationGroup',
                minOccurs: '0',
                maxOccurs: '1',
              },
            ],
          },
          attribute: [
            {
              name: 'programType',
              type: 'program:AbapProgramType',
            },
            {
              name: 'startUsingVariant',
              type: 'xsd:boolean',
            },
            {
              name: 'lockedByEditor',
              type: 'xsd:boolean',
            },
          ],
        },
      },
    },
    {
      name: 'LogicalDatabase',
      sequence: {
        element: [
          {
            name: 'ref',
            type: 'adtcore:AdtObjectReference',
            minOccurs: '0',
            maxOccurs: '1',
          },
        ],
      },
      attribute: [
        {
          name: 'selectionScreen',
          type: 'xsd:string',
        },
      ],
    },
    {
      name: 'AuthorizationGroup',
      sequence: {
        element: [
          {
            name: 'ref',
            type: 'adtcore:AdtObjectReference',
            minOccurs: '0',
            maxOccurs: '1',
          },
        ],
      },
      attribute: [
        {
          name: 'application',
          type: 'xsd:string',
        },
      ],
    },
  ],
  simpleType: [
    {
      name: 'AbapProgramType',
      restriction: {
        base: 'xsd:string',
        enumeration: [
          {
            value: 'executableProgram',
          },
          {
            value: 'modulePool',
          },
          {
            value: 'subroutinePool',
          },
        ],
      },
    },
  ],
} as const;
