2 * Copyright © 2017 Orange, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.transportpce.servicehandler.validation.checks;
9 import org.slf4j.Logger;
10 import org.slf4j.LoggerFactory;
12 public class ComplianceCheckResult {
14 private static final Logger LOG = LoggerFactory.getLogger(ComplianceCheckResult.class);
16 private boolean passed;
17 private String message;
19 public ComplianceCheckResult(boolean result) {
24 public ComplianceCheckResult(boolean passed, String message) {
26 LOG.debug("Compliance check passed");
28 LOG.debug("Compliance check: {}", message);
31 this.message = message;
34 public String getMessage() {
38 public boolean hasPassed() {