<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, All Rights Reserved **
        
        This is an OAGIS® BOD XML Schema (XSD) Definition.
        
       License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
        
        For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
© Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
are the property of their respective owners.
 
-->
 
<!--    *****     Update Log     *****
 
Date          By      Note
 
        *****     Update End     *****
 
-->


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schema.infor.com/InforOAGIS/2"
    targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xsd:include schemaLocation="../Components/Financial/Components.xsd"/>

    <xsd:element name="MDMConfig" type="MDMConfigType">
        <xsd:annotation>
            <xsd:documentation> AccountingBookDefinition used for associating a chart of accounts, a
                currency, and a calendar.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="MDMConfigType">
        <xsd:complexContent>
            <xsd:extension base="StatusEnabledStandardHeaderType">
                <xsd:sequence>
                    <xsd:element ref="NounNameCode" minOccurs="0"/>
                    <xsd:element ref="NounVersion" minOccurs="0"/>
                    <xsd:element ref="MDMMetadata" minOccurs="0"/>
                    <xsd:element ref="MDMAugmentation" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="MDMDuplicateRules" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:complexType name="MDMMetadataType">
        <xsd:sequence>
            <xsd:element ref="MDMTab" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="NounProperty" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="MDMMetadata" type="MDMMetadataType"/>

    <xsd:complexType name="MDMTabType">
        <xsd:sequence>
            <xsd:element ref="LineNumber" minOccurs="0"/>
            <xsd:element ref="Name" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="Sequence" minOccurs="0"/>
            <xsd:element ref="FlattenPath" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="MDMTab" type="MDMTabType"/>

    <xsd:complexType name="NounPropertyType">
        <xsd:sequence>
            <xsd:element ref="NounMetadataPath" minOccurs="0"/>
            <xsd:element ref="TabLineNumber" minOccurs="0"/>
            <xsd:element ref="RowSequence" minOccurs="0"/>
            <xsd:element ref="Label" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="Group" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Indicates the column on the dynamically rendered UI where the
                        data will be rendedred.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:choice>
                <xsd:element ref="Sequence" minOccurs="0"/>
                <xsd:element ref="AttributeString" minOccurs="0"/>
            </xsd:choice>

        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="NounProperty" type="NounPropertyType"/>

    <xsd:complexType name="MDMAugmentationType">
        <xsd:sequence>
            <xsd:element ref="LineNumber" minOccurs="0"/>
            <xsd:element ref="SourceSystem" minOccurs="0"/>
            <xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="Mode" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>values of 0, 1, and 2 to indicate the integration
                        level.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="AugmentationDetail" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="MDMAugmentation" type="MDMAugmentationType"/>

    <xsd:complexType name="AugmentationDetailType">
        <xsd:sequence>
            <xsd:element ref="TabLineNumber" minOccurs="0"/>
            <xsd:element ref="NounMetadataPath" minOccurs="0"/>
            <xsd:element ref="WritableIndicator" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="AugmentationDetail" type="AugmentationDetailType"/>

    <xsd:complexType name="MDMDuplicateRulesType">
        <xsd:sequence>
            <xsd:element ref="LineNumber" minOccurs="0"/>
            <xsd:element ref="Name" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ExportService" minOccurs="0"/>
            <xsd:element ref="MDMDuplicateDetail" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="MDMDuplicateRules" type="MDMDuplicateRulesType"/>

    <xsd:complexType name="MDMDuplicateDetailType">
        <xsd:sequence>
            <xsd:element ref="NounMetadataPath" minOccurs="0"/>
            <xsd:element ref="MDMDuplicateParameter" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>The name of the export service parameter that is used in
                        identifying duplicates.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="MDMDuplicateDetail" type="MDMDuplicateDetailType"/>

    <xsd:element name="NounVersion" type="NormalizedStringType"/>
    <xsd:element name="FlattenPath" type="StringType"/>
    <xsd:element name="NounMetadataPath" type="StringType"/>
    <xsd:element name="TabLineNumber" type="IdentifierType"/>
    <xsd:element name="RowSequence" type="NormalizedStringType"/>
    <xsd:element name="Label" type="TextType"/>
    <xsd:element name="Group" type="PositiveIntegerNumericType"/>
    <xsd:element name="SourceSystem" type="NormalizedStringType"/>
    <xsd:element name="AttributeString" type="NormalizedStringType"/>
    <xsd:element name="Mode" type="IntegerNumericType"/>
    <xsd:element name="WritableIndicator" type="IndicatorType"/>
    <xsd:element name="ExportService" type="NormalizedStringType"/>
    <xsd:element name="MDMDuplicateParameter" type="StringType"/>

</xsd:schema>
