private VariablesTypeVariableConstant_variable CreateAConstantVariableWithASingleValue()
        {
            VariablesTypeVariableConstant_variable variable = new VariablesTypeVariableConstant_variable();

            variable.id       = "oval:org.mitre.oval:var:932";
            variable.datatype = SimpleDatatypeEnumeration.@string;
            variable.version  = "1";
            Modulo.Collect.OVAL.Definitions.ValueType[] values = new Modulo.Collect.OVAL.Definitions.ValueType[1];
            Modulo.Collect.OVAL.Definitions.ValueType   value  = new Modulo.Collect.OVAL.Definitions.ValueType();
            values[0]      = value;
            variable.value = values;
            value.Value    = KEY_OF_REGISTRY;
            return(variable);
        }
        private VariablesTypeVariableConstant_variable CreateAConstantVariableWithAListOfValues()
        {
            VariablesTypeVariableConstant_variable variable = new VariablesTypeVariableConstant_variable();

            variable.id       = "oval:org.mitre.oval:var:932";
            variable.datatype = SimpleDatatypeEnumeration.@string;
            variable.version  = "1";
            Modulo.Collect.OVAL.Definitions.ValueType[] values = new Modulo.Collect.OVAL.Definitions.ValueType[3];
            Modulo.Collect.OVAL.Definitions.ValueType   value1 = new Modulo.Collect.OVAL.Definitions.ValueType();
            Modulo.Collect.OVAL.Definitions.ValueType   value2 = new Modulo.Collect.OVAL.Definitions.ValueType();
            Modulo.Collect.OVAL.Definitions.ValueType   value3 = new Modulo.Collect.OVAL.Definitions.ValueType();
            value1.Value   = KEY_OF_REGISTRY;
            value2.Value   = KEY_OF_REGISTRY_WINDOWS;
            value3.Value   = KEY_OF_REGISTRY_WINDOWS_TEMP;
            values[0]      = value1;
            values[1]      = value2;
            values[2]      = value3;
            variable.value = values;
            return(variable);
        }
Exemple #3
0
 private VariablesTypeVariableConstant_variable CreateAConstantVariableWithASingleValue()
 {
     VariablesTypeVariableConstant_variable variable = new VariablesTypeVariableConstant_variable();
     variable.id = "oval:org.mitre.oval:var:932";
     variable.datatype = SimpleDatatypeEnumeration.@string;
     variable.version = "1";
     Modulo.Collect.OVAL.Definitions.ValueType[] values = new Modulo.Collect.OVAL.Definitions.ValueType[1];
     Modulo.Collect.OVAL.Definitions.ValueType value = new Modulo.Collect.OVAL.Definitions.ValueType();
     values[0] = value;
     variable.value = values;
     value.Value = KEY_OF_REGISTRY;
     return variable;
 }
Exemple #4
0
 private VariablesTypeVariableConstant_variable CreateAConstantVariableWithAListOfValues()
 {
     VariablesTypeVariableConstant_variable variable = new VariablesTypeVariableConstant_variable();
     variable.id = "oval:org.mitre.oval:var:932";
     variable.datatype = SimpleDatatypeEnumeration.@string;
     variable.version = "1";
     Modulo.Collect.OVAL.Definitions.ValueType[] values = new Modulo.Collect.OVAL.Definitions.ValueType[3];
     Modulo.Collect.OVAL.Definitions.ValueType value1 = new Modulo.Collect.OVAL.Definitions.ValueType();
     Modulo.Collect.OVAL.Definitions.ValueType value2 = new Modulo.Collect.OVAL.Definitions.ValueType();
     Modulo.Collect.OVAL.Definitions.ValueType value3 = new Modulo.Collect.OVAL.Definitions.ValueType();
     value1.Value = KEY_OF_REGISTRY;
     value2.Value = KEY_OF_REGISTRY_WINDOWS;
     value3.Value = KEY_OF_REGISTRY_WINDOWS_TEMP;
     values[0] = value1;
     values[1] = value2;
     values[2] = value3;
     variable.value = values;
     return variable;
 }