PageRenderTime 23ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Otis/otis-mapping-1.0.xsd

http://otis-lib.googlecode.com/
XML Schema | 49 lines | 45 code | 4 blank | 0 comment | 0 complexity | 8c7baa01ecf9cb78bb62faa7d593c4c2 MD5 | raw file
 1<?xml version="1.0" encoding="utf-8"?>
 2<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:otis-mapping-1.0" xmlns="urn:otis-mapping-1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
 3
 4	<!-- member element definition -->
 5	<xs:complexType name="member" >
 6		<xs:sequence minOccurs="0">
 7			<xs:element maxOccurs="unbounded" name="map">
 8				<xs:complexType>
 9					<xs:attribute name="from" type="xs:string" use="optional" />
10					<xs:attribute name="to" type="xs:string" use="required" />
11				</xs:complexType>
12			</xs:element>
13		</xs:sequence>
14		<xs:attribute name="name" type="xs:string" use="required" />
15		<xs:attribute name="expression" type="xs:string" use="optional" />
16		<xs:attribute name="nullValue" type="xs:string" use="optional" />
17		<xs:attribute name="format" type="xs:string" use="optional" />
18	</xs:complexType>
19
20	<!-- component element definition -->
21	<xs:complexType name="component">
22		<xs:sequence>
23			<xs:element name="member" type="member" minOccurs="0" maxOccurs="unbounded" />
24			<xs:element name="component" type="component" minOccurs="0" maxOccurs="unbounded" />
25		</xs:sequence>
26		<xs:attribute name="name" type="xs:string" use="required" />
27	</xs:complexType>
28
29	<!-- mapping document definition -->
30	<xs:element name="otis-mapping">
31		<xs:complexType>
32			<xs:sequence>
33				<xs:element maxOccurs="unbounded" name="class"> <!-- class element definition -->
34					<xs:complexType>
35						<xs:sequence>
36							<xs:element name="member" type="member" minOccurs="0" maxOccurs="unbounded" />
37							<xs:element name="component" type="component" minOccurs="0" maxOccurs="unbounded" />
38						</xs:sequence>
39						<xs:attribute name="name" type="xs:string" use="required" />
40						<xs:attribute name="source" type="xs:string" use="required" />
41						<xs:attribute name="helper" type="xs:string" use="optional" />
42						<xs:attribute name="preparer" type="xs:string" use="optional" />
43					</xs:complexType>
44				</xs:element>
45			</xs:sequence>
46		</xs:complexType>
47	</xs:element>
48	
49</xs:schema>