summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/assembly-xsd/src/main/resources/sca-interface-c-1.1-cd04.xsd
blob: 518f0747fb935f64ffc1e569d6ab85ae8a8765e5 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
	<!--
		Copyright(C) OASIS(R) 2007,2010. All Rights Reserved. OASIS trademark,
		IPR and other policies apply.
	-->
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://docs.oasis-open.org/ns/opencsa/sca/200912"
	xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
	elementFormDefault="qualified">

	<include schemaLocation="sca-core-1.1-cd05.xsd" />

	<element name="interface.c" type="sca:CInterface"
		substitutionGroup="sca:interface" />

	<complexType name="CInterface">
		<complexContent>
			<extension base="sca:Interface">
				<sequence>
					<element name="function" type="sca:CFunction" minOccurs="0"
						maxOccurs="unbounded" />
					<element name="callbackFunction" type="sca:CFunction"
						minOccurs="0" maxOccurs="unbounded" />
					<any namespace="##other" processContents="lax" minOccurs="0"
						maxOccurs="unbounded" />
				</sequence>
				<attribute name="header" type="string" use="required" />
				<attribute name="callbackHeader" type="string" use="optional" />
			</extension>
		</complexContent>
	</complexType>

	<complexType name="CFunction">
		<sequence>
			<choice minOccurs="0" maxOccurs="unbounded">
				<element ref="sca:requires"/>
				<element ref="sca:policySetAttachment"/>
			</choice>
			<any namespace="##other" processContents="lax" minOccurs="0"
				maxOccurs="unbounded" />
		</sequence>
		<attribute name="name" type="NCName" use="required" />
		<attribute name="requires" type="sca:listOfQNames" use="optional" />
		<attribute name="policySets" type="sca:listOfQNames" use="optional" />
		<attribute name="oneWay" type="boolean" use="optional" />
		<attribute name="exclude" type="boolean" use="optional" />
		<attribute name="input" type="NCName" use="optional" />
		<attribute name="output" type="NCName" use="optional" />
		<anyAttribute namespace="##other" processContents="lax" />
	</complexType>

</schema>