ServiceHandler update for new PCE compatibility
[transportpce.git] / servicehandler / src / main / java / org / opendaylight / transportpce / servicehandler / validation / checks / ComplianceCheckResult.java
diff --git a/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/validation/checks/ComplianceCheckResult.java b/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/validation/checks/ComplianceCheckResult.java
new file mode 100644 (file)
index 0000000..6a26fa2
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright © 2017 Orange, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.transportpce.servicehandler.validation.checks;
+
+public class ComplianceCheckResult {
+
+    private boolean passed;
+    private String message;
+
+    public ComplianceCheckResult(boolean result) {
+        this.passed = result;
+        this.message = "";
+    }
+
+    public ComplianceCheckResult(boolean passed, String message) {
+        this.passed = passed;
+        this.message = message;
+    }
+
+    public String getMessage() {
+        return message;
+    }
+
+    public boolean hasPassed() {
+        return passed;
+    }
+
+}