summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/assembly-xsd/src/main/resources/sca-binding-ejb-1.1-cd02-rev2.xsd
blob: 0b388fcf17d3643e081e7699cc7f79e2728e508e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright(C) OASIS(R) 2005,2010. All Rights Reserved. 
     OASIS trademark, IPR and other policies apply.  -->
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
        targetNamespace="http://docs.oasis-open.org/ns/opencsa/sca/200912"
        elementFormDefault="qualified">
        
    <include schemaLocation="sca-core-1.1-cd06.xsd"/>

    <element name="binding.ejb" type="sca:EJBSessionBeanBinding" 
             substitutionGroup="sca:binding" />

    <simpleType name="VersionValue">
        <restriction base="string">
            <enumeration value="EJB2"/>
            <enumeration value="EJB3"/>
        </restriction>
    </simpleType>

    <complexType name="EJBSessionBeanBinding">
        <complexContent>
            <extension base="sca:Binding">
                <sequence>
                    <element ref="sca:extensions" minOccurs="0" maxOccurs="1" /> 
                </sequence>
                <attribute name="homeInterface" type="NCName" use="optional"/>
                <attribute name="ejb-link-name" type="string" use="optional"/>
                <attribute name="ejb-version" type="sca:VersionValue" use="optional" default="EJB3"/>
            </extension>
        </complexContent>
    </complexType>
</schema>