Debian Codegraph @

tests/mitre/oval-def_object_component.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2009-05-21T11:46:00-04:00</oval:timestamp>
6 <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use>
7 </generator>
8 <definitions>
9 <definition id="oval:org.mitre.oval.test:def:670" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the oval-def:object_component construct is properly supported</title>
12 <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:object_component construct.</description>
13 </metadata>
14 <criteria operator="AND">
15 <criterion comment="Test that the object_component is supported with a object_ref attritbute that specifies an object which references a single item and an item_field attribute that specifies a field in an item that occurs only once." test_ref="oval:org.mitre.oval.test:tst:373"/>
16 <criterion comment="Test that the object_component is supported with a object_ref attritbute that specifies an object which references multiple items and an item_field attribute that specifies a field in an item that that occurs only once." test_ref="oval:org.mitre.oval.test:tst:63"/>
17 <criterion comment="Test that the object_component is supported with a object_ref attritbute that specifies an object which references a single item and an item_field attribute that specifies a field in an item that that occurs multiple times." test_ref="oval:org.mitre.oval.test:tst:65"/>
18 <criterion comment="Test that the object_component is supported with a object_ref attritbute that specifies an object which references multiple items and an item_field attribute that specifies a field in an item that that occurs multiple times." test_ref="oval:org.mitre.oval.test:tst:295"/>
19 </criteria>
20 </definition>
21 </definitions>
22 <tests>
23 <variable_test id="oval:org.mitre.oval.test:tst:373" version="1" comment="Test that the object_component is supported with a object_ref attritbute that specifies an object which references a single item and an item_field attribute that specifies a field in an item that occurs only once." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
24 <object object_ref="oval:org.mitre.oval.test:obj:226"/>
25 <state state_ref="oval:org.mitre.oval.test:ste:152"/>
26 </variable_test>
27 <variable_test id="oval:org.mitre.oval.test:tst:63" version="1" comment="Test that the object_component is supported with a object_ref attritbute that specifies an object which references multiple items and an item_field attribute that specifies a field in an item that that occurs only once." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
28 <object object_ref="oval:org.mitre.oval.test:obj:644"/>
29 <state state_ref="oval:org.mitre.oval.test:ste:152"/>
30 </variable_test>
31 <variable_test id="oval:org.mitre.oval.test:tst:65" version="1" comment="Test that the object_component is supported with a object_ref attritbute that specifies an object which references a single item and an item_field attribute that specifies a field in an item that that occurs multiple times." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
32 <object object_ref="oval:org.mitre.oval.test:obj:833"/>
33 <state state_ref="oval:org.mitre.oval.test:ste:1"/>
34 </variable_test>
35 <variable_test id="oval:org.mitre.oval.test:tst:295" version="1" comment="Test that the object_component is supported with a object_ref attritbute that specifies an object which references multiple items and an item_field attribute that specifies a field in an item that that occurs multiple times." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
36 <object object_ref="oval:org.mitre.oval.test:obj:802"/>
37 <state state_ref="oval:org.mitre.oval.test:ste:1"/>
38 </variable_test>
39 </tests>
40 <objects>
41 <variable_object id="oval:org.mitre.oval.test:obj:297" version="1" comment="This variable_object references the string value equal to 'Validation Test StringA'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
42 <var_ref>oval:org.mitre.oval.test:var:653</var_ref>
43 </variable_object>
44 <variable_object id="oval:org.mitre.oval.test:obj:593" version="1" comment="This variable_object references the string values 'Validation Test String1A', 'Validation Test String2A', and 'Validation Test String3A'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
45 <var_ref>oval:org.mitre.oval.test:var:57</var_ref>
46 </variable_object>
47 <variable_object id="oval:org.mitre.oval.test:obj:602" version="1" comment="This variable_object references the string value 'Validation Test StringB'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
48 <var_ref>oval:org.mitre.oval.test:var:941</var_ref>
49 </variable_object>
50 <variable_object id="oval:org.mitre.oval.test:obj:165" version="1" comment="This variable_object references the string values 'Validation Test String1B', 'Validation Test String2B', and 'Validation Test String3B'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
51 <var_ref>oval:org.mitre.oval.test:var:150</var_ref>
52 </variable_object>
53 <variable_object id="oval:org.mitre.oval.test:obj:518" version="1" comment="This variable_object represents the union of object 'oval:org.mitre.oval.test:obj:297' and 'oval:org.mitre.oval.test:obj:602'. This creates an object that contains multiple items each of which contains a single 'value' entity." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
54 <set set_operator="UNION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5">
55 <object_reference>oval:org.mitre.oval.test:obj:297</object_reference>
56 <object_reference>oval:org.mitre.oval.test:obj:602</object_reference>
57 </set>
58 </variable_object>
59 <variable_object id="oval:org.mitre.oval.test:obj:384" version="1" comment="This variable_object represents the union of object 'oval:org.mitre.oval.test:obj:593' and 'oval:org.mitre.oval.test:obj:165'. This creates an object that contains multiple items each of which contains a multiple 'value' entities." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
60 <set set_operator="UNION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5">
61 <object_reference>oval:org.mitre.oval.test:obj:593</object_reference>
62 <object_reference>oval:org.mitre.oval.test:obj:165</object_reference>
63 </set>
64 </variable_object>
65 <variable_object id="oval:org.mitre.oval.test:obj:226" version="1" comment="This variable_object references a local_variable which retrieves the 'value' item_field of the variable_object 'oval:org.mitre.oval.test:var:785' using the object_component construct." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
66 <var_ref>oval:org.mitre.oval.test:var:785</var_ref>
67 </variable_object>
68 <variable_object id="oval:org.mitre.oval.test:obj:644" version="1" comment="This variable_object references a local_variable which retrieves the 'value' item_field of the variable_object 'oval:org.mitre.oval.test:var:286' using the object_component construct." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
69 <var_ref>oval:org.mitre.oval.test:var:286</var_ref>
70 </variable_object>
71 <variable_object id="oval:org.mitre.oval.test:obj:833" version="1" comment="This variable_object references a local_variable which retrieves the 'value' item_field of the variable_object 'oval:org.mitre.oval.test:var:570' using the object_component construct." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
72 <var_ref>oval:org.mitre.oval.test:var:570</var_ref>
73 </variable_object>
74 <variable_object id="oval:org.mitre.oval.test:obj:802" version="1" comment="This variable_object references a local_variable which retrieves the 'value' item_field of the variable_object 'oval:org.mitre.oval.test:var:298' using the object_component construct." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
75 <var_ref>oval:org.mitre.oval.test:var:298</var_ref>
76 </variable_object>
77 </objects>
78 <states>
79 <variable_state id="oval:org.mitre.oval.test:ste:152" version="1" comment="This state represents a variable_object where the string value matches the regular expression 'Validation Test String[A-Z]'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
80 <value operation="pattern match">Validation Test String[A-Z]</value>
81 </variable_state>
82 <variable_state id="oval:org.mitre.oval.test:ste:1" version="1" comment="This state represents a variable_object where the string value matches the regular expression 'Validation Test String[0-9][A-Z]'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
83 <value operation="pattern match">Validation Test String[0-9][A-Z]</value>
84 </variable_state>
85 </states>
86 <variables>
87 <constant_variable id="oval:org.mitre.oval.test:var:653" version="1" comment="This variable represents the string value 'Validation Test StringA'." datatype="string">
88 <value>Validation Test StringA</value>
89 </constant_variable>
90 <constant_variable id="oval:org.mitre.oval.test:var:57" version="1" comment="This variable represents the string values 'Validation Test String1A', 'Validation Test String2A', and 'Validation Test String3A'." datatype="string">
91 <value>Validation Test String1A</value>
92 <value>Validation Test String2A</value>
93 <value>Validation Test String3A</value>
94 </constant_variable>
95 <constant_variable id="oval:org.mitre.oval.test:var:941" version="1" comment="This variable represents the string value 'Validation Test StringB'." datatype="string">
96 <value>Validation Test StringB</value>
97 </constant_variable>
98 <constant_variable id="oval:org.mitre.oval.test:var:150" version="1" comment="This variable represents the string values 'Validation Test String1B', 'Validation Test String2B', and 'Validation Test String3B'." datatype="string">
99 <value>Validation Test String1B</value>
100 <value>Validation Test String2B</value>
101 <value>Validation Test String3B</value>
102 </constant_variable>
103 <local_variable id="oval:org.mitre.oval.test:var:785" version="1" comment="This local_variable contains an object_component that retrieves the 'value' item_field of a variable_object. This variable_object contains a single item that contains a single 'value' entity." datatype="string">
104 <object_component object_ref="oval:org.mitre.oval.test:obj:297" item_field="value"/>
105 </local_variable>
106 <local_variable id="oval:org.mitre.oval.test:var:286" version="1" comment="This local_variable contains an object_component that retrieves the 'value' item_field of a variable_object. This variable_object contains multiple items that contains a single 'value' entity." datatype="string">
107 <object_component object_ref="oval:org.mitre.oval.test:obj:518" item_field="value"/>
108 </local_variable>
109 <local_variable id="oval:org.mitre.oval.test:var:570" version="1" comment="This local_variable contains an object_component that retrieves the 'value' item_field of a variable_object. This variable_object contains a single item that contains multiple 'value' entities." datatype="string">
110 <object_component object_ref="oval:org.mitre.oval.test:obj:593" item_field="value"/>
111 </local_variable>
112 <local_variable id="oval:org.mitre.oval.test:var:298" version="1" comment="This local_variable contains an object_component that retrieves the 'value' item_field of a variable_object. This variable_object contains multiple items that contains multiple 'value' entities." datatype="string">
113 <object_component object_ref="oval:org.mitre.oval.test:obj:384" item_field="value"/>
114 </local_variable>
115 </variables>
116 </oval_definitions>