Eclipse.org Eclipse.org

dktest.xsd schema

Attributes Elements XML Reference

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
        elementFormDefault="qualified">
    <xs:element name="validationTest">
        <xs:annotation>
            <xs:documentation> Specifies the root element of a Device Kit <b>D</b>evice <b>K</b>it <b>T</b>est (dktest) script. </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:all>
                <xs:element name="title" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>The title of the test script.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="version" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>The version information for the test script.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="vendor" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>The vendor information for the test script.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="description" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>The description of the test script.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="actions"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <xs:element name="actions">
        <xs:annotation>
            <xs:documentation>A sequence of configuration and test actions.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="configurationAction"/>
                <xs:element ref="testAction"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
    <xs:element name="configuration">
        <xs:annotation>
            <xs:documentation>The specification for a configuration change.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="properties" minOccurs="0"/>
            </xs:sequence>
            <xs:attribute name="pid" type="xs:string">
                <xs:annotation>
                    <xs:documentation>OSGi persistent identifier of the entity to be created or updated.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="factoryPid" type="xs:string">
                <xs:annotation>
                    <xs:documentation>OSGi persistent identifier of the factory to create entity from.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="bundleLocation" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Optional OSGi bundle location to be associated with configuration item.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="filter" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Optional OSGi bundle location to be associated with configuration item.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:anyAttribute processContents="skip">
                <xs:annotation>
                    <xs:documentation>To support attributes like name and description, any additional attributes are allowed but ignored.</xs:documentation>
                </xs:annotation>
            </xs:anyAttribute>
        </xs:complexType>
    </xs:element>
    <xs:element name="configurationAction">
        <xs:annotation>
            <xs:documentation>A configuration management action of a specified type.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="configurations" minOccurs="0"/>
            </xs:sequence>
            <xs:attribute name="type" use="required">
                <xs:annotation>
                    <xs:documentation>Configuration management action type.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:NMTOKEN">
                        <xs:enumeration value="create">
                            <xs:annotation>
                                <xs:documentation>For configuration action type create, if a pid attribute is specified, a configuration is created by pid. The factoryPid attribute is ignored. If no pid attribute is specified, a factoryPid must be specified and a new configuration is created from the factory. The filter attribute is always ignored.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="createOrUpdate">
                            <xs:annotation>
                                <xs:documentation>For configuration action type createOrUpdate, if a pid attribute is specified, a configuration is created or updated by pid. The filter and factoryPid attributes are ignored. If no pid attribute is specified, a factoryPid attribute must be specified and a new configuration is created from the factory. If no pid attribute is specified, but a filter attribute is specified, then all configurations that match the filter attribute are updated.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="update">
                            <xs:annotation>
                                <xs:documentation>For configuration action type update, the filter attribute must be specified and all configurations that match the filter are updated. The pid and factoryPid attributes are ignored.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="delete">
                            <xs:annotation>
                                <xs:documentation>For configuration action type delete, the filter attribute must be specified and all configurations that match the filter are deleted. The pid and factoryPid attributes are ignored.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
        </xs:complexType>
    </xs:element>
    <xs:element name="configurations">
        <xs:annotation>
            <xs:documentation>A collection of configuration change specifications.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="configuration" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="properties">
        <xs:annotation>
            <xs:documentation>The properties for a configuration change or a test run.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="property" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="property">
        <xs:annotation>
            <xs:documentation>A property for a configuration change or a test run. A property value can either be a simple primitive value of any Java type, a primitive array, or a List of values.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:attribute name="key" type="xs:string" use="required">
                <xs:annotation>
                    <xs:documentation>Property key.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="value" type="xs:string" use="required">
                <xs:annotation>
                    <xs:documentation>Simple property value or comma-separated sequence of values when a cardinality attribute is specified.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="type" use="optional">
                <xs:annotation>
                    <xs:documentation>Type of the property value. The default type for a property is string.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:NMTOKEN">
                        <xs:enumeration value="boolean">
                            <xs:annotation>
                                <xs:documentation>The property is set to Boolean.TRUE when the value attribute equals, ignoring case, the string "true".</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="byte">
                            <xs:annotation>
                                <xs:documentation>The property is set to a Byte object. The value attribute must be a string representing a decimal, hexadecimal, or octal numbers as defined in the Java Language Specification.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="character">
                            <xs:annotation>
                                <xs:documentation>The property is set to a Character object. The value attribute must contain a single-character string.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="double">
                            <xs:annotation>
                                <xs:documentation>The property is set to a Double object. The value attribute must be a string representing a floating point number as defined in the Java Language Specification.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="float">
                            <xs:annotation>
                                <xs:documentation>The property is set to a Float object. The value attribute must be a string representing a floating point number as defined in the Java Language Specification.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="integer">
                            <xs:annotation>
                                <xs:documentation>The property is set to an Integer object. The value attribute must be a string representing a decimal, hexadecimal, or octal numbers as defined in the Java Language Specification.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="long">
                            <xs:annotation>
                                <xs:documentation>The property is set to a Long object. The value attribute must be a string representing a decimal, hexadecimal, or octal numbers as defined in the Java Language Specification.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="short">
                            <xs:annotation>
                                <xs:documentation>The property is set to a Short object. The value attribute must be a string representing a decimal, hexadecimal, or octal numbers as defined in the Java Language Specification.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="string">
                            <xs:annotation>
                                <xs:documentation>The property is set to a String object. The value attribute can be any string. When a cardinality is specified, the value attribute must specify a comma-separated list of strings. In this case the string values cannot contain a comma.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="cardinality" type="xs:integer" use="optional">
                <xs:annotation>
                    <xs:documentation>A cardinality of 0 denotes a simple primitive property, a positive cardinality denotes a primitive array property, and a negative cardinality denotes a List property. The default cardinality assumed is 0.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:anyAttribute processContents="skip">
                <xs:annotation>
                    <xs:documentation>To support attributes like name and description, any additional attributes are allowed but ignored.</xs:documentation>
                </xs:annotation>
            </xs:anyAttribute>
        </xs:complexType>
    </xs:element>
    <xs:element name="test">
        <xs:annotation>
            <xs:documentation>The specification for running a test.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="properties" minOccurs="0"/>
            </xs:sequence>
            <xs:attribute name="id" type="xs:string" use="optional">
                <xs:annotation>
                    <xs:documentation>Unique id for this run of the test.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="class" type="xs:string" use="optional">
                <xs:annotation>
                    <xs:documentation>Fully qualified classname to match a specific test agent.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="filter" type="xs:string" use="optional">
                <xs:annotation>
                    <xs:documentation>OSGi LDAP filter specification for matching test agents.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="match" type="xs:string" use="optional">
                <xs:annotation>
                    <xs:documentation>Kind of match allowed, single agent or multiple agents.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:anyAttribute processContents="skip">
                <xs:annotation>
                    <xs:documentation>To support attributes like name and description, any additional attributes are allowed but ignored.</xs:documentation>
                </xs:annotation>
            </xs:anyAttribute>
        </xs:complexType>
    </xs:element>
    <xs:element name="testAction">
        <xs:annotation>
            <xs:documentation>A collection of sequential or parallel tests, including nested testActions.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="tests"/>
                <xs:element ref="testAction"/>
            </xs:choice>
            <xs:attribute name="type" use="optional" default="sequential">
                <xs:annotation>
                    <xs:documentation>Test action type.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:NMTOKEN">
                        <xs:enumeration value="sequential">
                            <xs:annotation>
                                <xs:documentation>For test action type sequential, all tests are being run sequentially in the order they appear under this element.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="parallel">
                            <xs:annotation>
                                <xs:documentation>For test action type parallel, all tests are being run concurrently in the order they appear under this element.</xs:documentation>
                            </xs:annotation>
                        </xs:enumeration>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
        </xs:complexType>
    </xs:element>
    <xs:element name="tests">
        <xs:annotation>
            <xs:documentation>A collection of test specifications.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="test" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
        <xs:unique name="test">
            <xs:selector xpath=".//test"/>
            <xs:field xpath="@id"/>
        </xs:unique>
    </xs:element>
</xs:schema>



Copyright (c) 2007 IBM XML Reference 1.0.0