Example #1
0
        private IEnumerable<String> processVariables(OVAL.Definitions.ObjectType objectType, VariablesEvaluated variables)
        {
            string trusteeNameEntityValue = ((sid_object)objectType).TrusteeName.Value;

            if ((variables == null) || (variables.VariableValues.Count() == 0))
                return new List<String>(new string[] { trusteeNameEntityValue });
            else
            {
                var variableEvaluator = new SIDEntityVariableEvaluator(objectType, variables);
                var processedVariables = variableEvaluator.ProcessVariableForAllObjectEntities();
                return (processedVariables == null) ? null : processedVariables;
            }
        }
Example #2
0
        private IEnumerable <String> processVariables(OVAL.Definitions.ObjectType objectType, VariablesEvaluated variables)
        {
            string trusteeNameEntityValue = ((sid_object)objectType).TrusteeName.Value;

            if ((variables == null) || (variables.VariableValues.Count() == 0))
            {
                return(new List <String>(new string[] { trusteeNameEntityValue }));
            }
            else
            {
                var variableEvaluator  = new SIDEntityVariableEvaluator(objectType, variables);
                var processedVariables = variableEvaluator.ProcessVariableForAllObjectEntities();
                return((processedVariables == null) ? null : processedVariables);
            }
        }