ServiceHandler update for new PCE compatibility
[transportpce.git] / servicehandler / src / main / java / org / opendaylight / transportpce / servicehandler / validation / checks / ComplianceCheckResult.java
1 /*
2  * Copyright © 2017 Orange, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.transportpce.servicehandler.validation.checks;
9
10 public class ComplianceCheckResult {
11
12     private boolean passed;
13     private String message;
14
15     public ComplianceCheckResult(boolean result) {
16         this.passed = result;
17         this.message = "";
18     }
19
20     public ComplianceCheckResult(boolean passed, String message) {
21         this.passed = passed;
22         this.message = message;
23     }
24
25     public String getMessage() {
26         return message;
27     }
28
29     public boolean hasPassed() {
30         return passed;
31     }
32
33 }