Package gov.nist.scap.xccdf.document

Examples of gov.nist.scap.xccdf.document.Rule


    }

    int lineLength = longestRuleId + 10;

    for (RuleResult ruleResult : results.getRuleResults()) {
      Rule rule = ruleResult.getRule();

      for (RuleResultRecord record : ruleResult.getRuleResultRecords()) {
        this.printRuleResult(rule, record.getResult().toString(), lineLength);
      }
    }
View Full Code Here


  @Override
  protected RuleResultType generateRuleResultBase(RuleResult result) {
    RuleResultType retval = testResultData.addNewRuleResult();

    Rule rule = result.getRule();

        // Attributes
    retval.setIdref(rule.getId());
    retval.setRole(RuleImpl.mapRole(rule.getRole()));
    retval.setSeverity(RuleImpl.mapSeverity(rule.getSeverity()));
    retval.setTime(Calendar.getInstance());

    Version version = rule.getVersion();
    if (version != null) {
      retval.setVersion(version.getValue());
    }

    retval.setWeight(rule.getWeight());

    for (Ident ident : rule.getIdents()) {
      IdentType node = retval.addNewIdent();
      node.setSystem(ident.getSystem().toString());
      node.setStringValue(ident.getValue());
    }
View Full Code Here

  @Override
  protected RuleResultType generateRuleResultBase(RuleResult result) {
    RuleResultType retval = testResultData.addNewRuleResult();

    Rule rule = result.getRule();

        // Attributes
    retval.setIdref(rule.getId());
    retval.setRole(RuleImpl.mapRole(rule.getRole()));
    retval.setSeverity(RuleImpl.mapSeverity(rule.getSeverity()));
    retval.setTime(Calendar.getInstance());

    Version version = rule.getVersion();
    if (version != null) {
      retval.setVersion(version.getValue());
    }

    retval.setWeight(rule.getWeight());

    for (Ident ident : rule.getIdents()) {
      IdentType node = retval.addNewIdent();
      node.setSystem(ident.getSystem().toString());
      node.setStringValue(ident.getValue());
    }
View Full Code Here

TOP

Related Classes of gov.nist.scap.xccdf.document.Rule

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.