product-test.xml 1.05 KB
Newer Older
ankraft's avatar
ankraft committed
1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<Domain xmlns="http://www.onem2m.org/xml/sdt/4.0" xmlns:xi="http://www.w3.org/2001/XInclude" id="deviceClass-test" >
ankraft's avatar
ankraft committed
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
	<Products>
		<Product id="TestProduct" semanticURI="http://example.com/TestProduct.rdf">
			<Doc>This is a test product</Doc>
			<Properties>
				<Property name="aProperty">
					<SimpleType type="string"></SimpleType>
				</Property>
			</Properties>
			<ModuleClasses>
				<ModuleClass name="aModuleClass">
					<Extend domain="hgi.dal.core" entity="BooleanState" />
				</ModuleClass>
			</ModuleClasses>
			<SubDevices>
				<SubDevice id="aSubDevice">
					<ModuleClasses>
						<ModuleClass name="aSubDeviceModuleClass">
							<Extend domain="hgi.dal.core" entity="BooleanState"/>
						</ModuleClass>
					</ModuleClasses>
				</SubDevice>
			</SubDevices>
			<DeviceClass>
				<Extend domain="deviceClass.test" entity="Test" />
			</DeviceClass>
		</Product>

<!--	TODO: test <extends> element, but only when DeviceClas is optional
 		<Product id="AnotherTestProduct">
		</Product> -->
	</Products>
</Domain>