<?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
10 Apr 2008    JB      Added correct Copyright and update comments to schema.
 
        *****     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/Common/Components.xsd"/>

    <xsd:element name="Calendar" type="CalendarType">
        <xsd:annotation>
            <xsd:documentation > The calendar schema is
                used to associate people and objects to a period of time. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="CalendarType">
        <xsd:annotation>
            <xsd:documentation> The calendar type is based on the iCalendar specification.
                Currently, only the event type is defined, but the ToDo and the Journal type can be
                added in the future as business requirements dictate. The model was extended to
                allow objects other than people to be associated with an event. </xsd:documentation>
        </xsd:annotation>
        <xsd:complexContent>
            <xsd:extension base="HeaderType">
                <xsd:sequence>
                    <xsd:element ref="CalendarEvent" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:complexType name="CalendarEventType">
        <xsd:sequence>
            <xsd:element ref="Organizer" minOccurs="0"/>
            <xsd:element ref="Attendee" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="EventTimePeriod" minOccurs="0"/>
            <xsd:element ref="RecurrenceRule" minOccurs="0"/>
            <xsd:element ref="EventLocation" minOccurs="0"/>
            <xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="Summary" minOccurs="0"/>
            <xsd:element ref="Priority" minOccurs="0"/>
            <xsd:element ref="Alarm" minOccurs="0"/>
        </xsd:sequence>
        <xsd:attribute name="type" type="NormalizedStringType">
            <xsd:annotation>
                <xsd:documentation> This attribute is used to define the purpose of the calendar.
                </xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
    </xsd:complexType>

    <xsd:complexType name="AttendeeType">
        <xsd:sequence>
            <xsd:element ref="ConstrainedResourceReference" minOccurs="0"/>
            <xsd:element ref="Name" minOccurs="0"/>
            <xsd:element ref="URI" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> The email address for the person. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="EventRole" minOccurs="0"/>
            <xsd:element ref="ConfirmedIndicator" minOccurs="0"/>
            <xsd:element ref="FreeBusy" minOccurs="0"/>
        </xsd:sequence>
        <xsd:attribute name="sequence" type="PositiveIntegerNumericType"/>
    </xsd:complexType>

    <xsd:complexType name="OrganizerType">
        <xsd:sequence>
            <xsd:element ref="PersonReference" minOccurs="0"/>
            <xsd:element ref="Name" minOccurs="0"/>
            <xsd:element ref="URI" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> The email address for the person. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="EventRole" minOccurs="0"/>
            <xsd:element ref="ConfirmedIndicator" minOccurs="0"/>
            <xsd:element ref="FreeBusy" minOccurs="0"/>
        </xsd:sequence>
        <xsd:attribute name="sequence" type="PositiveIntegerNumericType"/>
    </xsd:complexType>

    <xsd:complexType name="RecurrenceRuleType">
        <xsd:sequence>
            <xsd:element ref="FrequencyMeasureType"/>
            <xsd:element ref="Count" minOccurs="0"/>
            <xsd:element ref="Interval" minOccurs="0"/>
            <xsd:element ref="ByDay" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="AlarmType">
        <xsd:sequence>
            <xsd:element ref="AlarmDateTime"/>
            <xsd:element ref="Count" minOccurs="0"/>
            <xsd:element ref="SleepMinutes" minOccurs="0"/>
            <xsd:element ref="Method" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="Alarm" type="AlarmType"/>
    <xsd:element name="AlarmDateTime" type="DateTimeType"/>
    <xsd:element name="ByDay" type="StringType"/>
    <xsd:element name="ConfirmedIndicator" type="IndicatorType"/>
    <xsd:element name="Count" type="PositiveIntegerNumericType">
        <xsd:annotation>
            <xsd:documentation> defines the number of occurrences at which to range-bound the recurrence</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="EventLocation" type="LocationType"/>
    <xsd:element name="EventRole" type="NormalizedStringType">
        <xsd:annotation>
            <xsd:documentation> EventRole should be 'Organizer', 'Mandatory' or 'Optional'. This may
                become an enumeration at a later period. These are the people that are associated
                with the event. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="EventTimePeriod" type="TimePeriodType"/>
    <xsd:element name="FreeBusy" type="NormalizedStringType">
        <xsd:annotation>
            <xsd:documentation> Values should be limited to FREE, BUSY, BUSY-UNAVAILABLE, and
                BUSY-TENTATIVE </xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="Interval" type="NormalizedStringType">
        <xsd:annotation>
            <xsd:documentation> contains a positive integer representing how often the recurrence
                rule repeats. The default value is "1", meaning every second for a SECONDLY rule, or
                every minute for a MINUTELY rule, every hour for an HOURLY rule, every day for a
                DAILY rule, every week for a WEEKLY rule, every month for a MONTHLY rule and every
                year for a YEARLY rule. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="Method" type="NormalizedStringType">
        <xsd:annotation>
            <xsd:documentation> This identifies the notification method. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="Organizer" type="OrganizerType">
        <xsd:annotation>
            <xsd:documentation> This element is used to identify an organizer when the organizer is
                not a participantin the event. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="Priority" type="PriorityType"/>
    <xsd:element name="SleepMinutes" type="PositiveIntegerNumericType"/>
    <xsd:element name="Summary" type="StringType"/>
    <xsd:element name="Attendee" type="AttendeeType"/>
    <xsd:element name="RecurrenceRule" type="RecurrenceRuleType"/>
    <xsd:element name="ObjectClass" type="ObjectClassType"/>

    <xsd:element name="CalendarEvent" type="CalendarEventType"/>

</xsd:schema>
