Package scap.check

Examples of scap.check.Message


  /**
   * @return the action
   */
  public RuleResult getRuleResult() {
    UncheckedRuleResult retval = new UncheckedRuleResult(rule, result);
    retval.appendMessage(new Message(severity, getLocalizedMessage()));
    return retval;
  }
View Full Code Here


      if (checkSystem == null) {
        if (!unsupportedCheckSystems.contains(checkSystem)) {
          log.debug("unsupported check system " + system);
          unsupportedCheckSystems.add(system);
        }
        checkingUnitInfo.appendMessage(new Message(Message.Severity.WARNING, "unsupported check system: " + system));
        continue;
      }

      if (singletonResult) {
        // If the parent element is an <xccdf:Rule>, terminate this
View Full Code Here

    if (definition.sizeOfMessageArray() == 0) {
      messages = Collections.emptyList();
    } else {
      messages = new ArrayList<Message>(definition.sizeOfMessageArray());
      for (org.mitre.oval.xmlSchema.ovalCommon5.MessageType messageType : definition.getMessageList()) {
        Message message;

        switch (messageType.getLevel().intValue()) {
        case MessageLevelEnumeration.INT_DEBUG:
          message = new Message(Message.Severity.INFO, "DEBUG: "
              + messageType.getStringValue(), "OVALDI");
          break;
        case MessageLevelEnumeration.INT_ERROR:
          message = new Message(Message.Severity.ERROR, messageType
              .getStringValue(), "OVALDI");
          break;
        case MessageLevelEnumeration.INT_FATAL:
          message = new Message(Message.Severity.ERROR, "Fatal: "
              + messageType.getStringValue(), "OVALDI");
          break;
        case MessageLevelEnumeration.INT_INFO:
          message = new Message(Message.Severity.INFO, messageType
              .getStringValue(), "OVALDI");
          break;
        case MessageLevelEnumeration.INT_WARNING:
          message = new Message(Message.Severity.WARNING, messageType
              .getStringValue(), "OVALDI");
          break;
        default:
          throw new RuntimeException("Unhandled message type: "
              + messageType.getLevel().toString() + ": "
View Full Code Here

TOP

Related Classes of scap.check.Message

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.