<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uima.peMetadata="http://docs.oasis-open.org/uima/ns/peMetadata.ecore" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://docs.oasis-open.org/uima/ns/peMetadata.ecore">
  <xsd:import namespace="http://www.eclipse.org/emf/2002/Ecore" schemaLocation="ecore.xsd"/>
  <xsd:import namespace="http://www.omg.org/XMI" schemaLocation="../../../plugin/org.eclipse.emf.ecore/model/XMI.xsd"/>
  <xsd:complexType name="Identification">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
    <xsd:attribute name="symbolicName" type="xsd:string"/>
    <xsd:attribute name="name" type="xsd:string"/>
    <xsd:attribute name="description" type="xsd:string"/>
    <xsd:attribute name="vendor" type="xsd:string"/>
    <xsd:attribute name="version" type="xsd:string"/>
    <xsd:attribute name="url" type="xsd:string"/>
  </xsd:complexType>
  <xsd:element name="Identification" type="uima.peMetadata:Identification"/>
  <xsd:complexType name="ConfigurationParameter">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element name="defaultValue" nillable="true" type="xsd:string"/>
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
    <xsd:attribute name="name" type="xsd:string"/>
    <xsd:attribute name="description" type="xsd:string"/>
    <xsd:attribute name="type" type="xsd:string"/>
    <xsd:attribute name="multiValued" type="xsd:boolean"/>
    <xsd:attribute name="mandatory" type="xsd:boolean"/>
  </xsd:complexType>
  <xsd:element name="ConfigurationParameter" type="uima.peMetadata:ConfigurationParameter"/>
  <xsd:complexType name="TypeSystem">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element name="reference" nillable="true" type="xsd:string"/>
      <xsd:element name="package" type="ecore:EPackage"/>
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
  </xsd:complexType>
  <xsd:element name="TypeSystem" type="uima.peMetadata:TypeSystem"/>
  <xsd:complexType name="BehavioralMetadata">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element name="analyzes" type="uima.peMetadata:BehaviorElement"/>
      <xsd:element name="requiredInputs" type="uima.peMetadata:BehaviorElement"/>
      <xsd:element name="optionalInputs" type="uima.peMetadata:BehaviorElement"/>
      <xsd:element name="creates" type="uima.peMetadata:BehaviorElement"/>
      <xsd:element name="modifies" type="uima.peMetadata:BehaviorElement"/>
      <xsd:element name="deletes" type="uima.peMetadata:BehaviorElement"/>
      <xsd:element name="precondition" type="uima.peMetadata:Condition"/>
      <xsd:element name="postcondition" type="uima.peMetadata:Condition"/>
      <xsd:element name="projectionCondition" type="uima.peMetadata:Condition"/>
      <xsd:element name="requiredView" type="uima.peMetadata:ViewBehavioralMetadata"/>
      <xsd:element name="optionalView" type="uima.peMetadata:ViewBehavioralMetadata"/>
      <xsd:element name="createsView" type="uima.peMetadata:ViewBehavioralMetadata"/>
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
    <xsd:attribute name="excludeReferenceClosure" type="xsd:boolean"/>
  </xsd:complexType>
  <xsd:element name="BehavioralMetadata" type="uima.peMetadata:BehavioralMetadata"/>
  <xsd:complexType name="ProcessingElementMetadata">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element name="configurationParameter" type="uima.peMetadata:ConfigurationParameter"/>
      <xsd:element name="identification" type="uima.peMetadata:Identification"/>
      <xsd:element name="typeSystem" type="uima.peMetadata:TypeSystem"/>
      <xsd:element name="behavioralMetadata" type="uima.peMetadata:BehavioralMetadata"/>
      <xsd:element name="extension" type="uima.peMetadata:Extension"/>
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
  </xsd:complexType>
  <xsd:element name="ProcessingElementMetadata" type="uima.peMetadata:ProcessingElementMetadata"/>
  <xsd:complexType name="Extension">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element name="contents" type="ecore:EObject"/>
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
    <xsd:attribute name="extenderId" type="xsd:string"/>
  </xsd:complexType>
  <xsd:element name="Extension" type="uima.peMetadata:Extension"/>
  <xsd:complexType name="BehaviorElement">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element name="type" type="uima.peMetadata:Type"/>
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
  </xsd:complexType>
  <xsd:element name="BehaviorElement" type="uima.peMetadata:BehaviorElement"/>
  <xsd:complexType name="Type">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element name="feature" nillable="true" type="xsd:string"/>
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
    <xsd:attribute name="name" type="xsd:string"/>
  </xsd:complexType>
  <xsd:element name="Type" type="uima.peMetadata:Type"/>
  <xsd:complexType name="Condition">
    <xsd:choice maxOccurs="unbounded" minOccurs="0">
      <xsd:element ref="xmi:Extension"/>
    </xsd:choice>
    <xsd:attribute ref="xmi:id"/>
    <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
    <xsd:attribute name="language" type="xsd:string"/>
    <xsd:attribute name="expression" type="xsd:string"/>
  </xsd:complexType>
  <xsd:element name="Condition" type="uima.peMetadata:Condition"/>
  <xsd:complexType name="ViewBehavioralMetadata">
    <xsd:complexContent>
      <xsd:extension base="uima.peMetadata:BehavioralMetadata"/>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="ViewBehavioralMetadata" type="uima.peMetadata:ViewBehavioralMetadata"/>
</xsd:schema>
