Definition Type: Element
Name: type
Namespace: http://oval.mitre.org/XMLSchema/oval#windows
Type: oval:subtestStringType
Containing Schema: windows-schema.xsd
MinOccurs 0
MaxOccurs 1
Abstract
Documentation:
The type child element marks wether the file test describes a directory, named pipe, standard file, etc. These types are the return values for GetFileType, with the exception of FILE_ATTRIBUTE_DIRECTORY which is obtained by looking at GetFileAttributesEx.
Collapse XSD Schema Diagram:
Drilldown into var_ref in schema oval-schema_xsd Drilldown into operator in schema oval-schema_xsd Drilldown into datatype in schema oval-schema_xsdXSD Diagram of type in schema windows-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="type" minOccurs="0" maxOccurs="1">
    <xsd:annotation>
        <xsd:documentation>The type child element marks wether the file test describes a directory, named pipe, standard file, etc.  These types are the return values for GetFileType, with the exception of FILE_ATTRIBUTE_DIRECTORY which is obtained by looking at GetFileAttributesEx.</xsd:documentation>
        <xsd:appinfo>
            <parent_test>File Test</parent_test>
            <cardinality>0-1</cardinality>
            <content>string</content>
            <valid_datatypes>string</valid_datatypes>
            <valid_operators>equals, not equal</valid_operators>
        </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:simpleContent>
            <xsd:restriction base="oval:subtestStringType">
                <xsd:enumeration value="FILE_ATTRIBUTE_DIRECTORY" />
                <xsd:enumeration value="FILE_TYPE_CHAR" />
                <xsd:enumeration value="FILE_TYPE_DISK" />
                <xsd:enumeration value="FILE_TYPE_PIPE" />
                <xsd:enumeration value="FILE_TYPE_REMOTE" />
                <xsd:enumeration value="FILE_TYPE_UNKNOWN" />
            </xsd:restriction>
        </xsd:simpleContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
datatype oval:datatype string Optional
operator oval:operator equals Optional
var_ref oval:var_ref Optional
Collapse Facets:
Facet Value
Enumeration FILE_ATTRIBUTE_DIRECTORY
Enumeration FILE_TYPE_CHAR
Enumeration FILE_TYPE_DISK
Enumeration FILE_TYPE_PIPE
Enumeration FILE_TYPE_REMOTE
Enumeration FILE_TYPE_UNKNOWN
Collapse Derivation Tree: