Package scap.check

Examples of scap.check.CheckInterpreter


                  CheckInterpreterConfiguration config = newCheckInterpreterConfiguration();
                  config.setLogOutput(options.isVerboseOutput());
                  config.setResultContextResolver(resultContextResolver);
                  config.addDirectives(options.getDirectives());

                  CheckInterpreter interpreter = new CheckInterpreter(config);

                cpeCheckResults = cpeResolver.process(interpreter, options.getCpeDictionaries());

                if (log.isDebugEnabled()) {
                    for (Map.Entry<? extends CPEName, Status> entry : cpeResolver.getCPEStatusMap().entrySet()) {
View Full Code Here


     * Benchmark.Content - For each Item in the Benchmark object's items
     * property, initiate Item.Process
     */
        log.debug("Benchmark.Content");

    CheckInterpreter checkInterpreter = null;

    if (options.isPerformChecks()) {
          CheckInterpreterConfiguration config = newCheckInterpreterConfiguration();
      config.addDirectives(options.getDirectives());
            config.setResultContextResolver(resultContextResolver);
      checkInterpreter = new CheckInterpreter(config);
    }

    MutableXCCDFResults xccdfResults = document.newXCCDFResults(xccdfResultContext, options);
    document.visit(new ProcessorXCCDFVisitorHandler(checkInterpreter,
        xccdfResults));

    CheckResults checkResults;
    if (checkInterpreter != null) {
      checkResults = checkInterpreter.processChecks();
    } else {
      checkResults = CheckResults.EMPTY_CHECK_RESULTS;
    }

    xccdfResults.applyCheckResults(checkResults);
View Full Code Here

TOP

Related Classes of scap.check.CheckInterpreter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.