2 * Copyright © 2018 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.tapi.validation.checks;
10 import org.opendaylight.transportpce.servicehandler.validation.checks.ComplianceCheckResult;
11 import org.opendaylight.yang.gen.v1.urn.onf.otcc.yang.tapi.connectivity.rev181210.create.connectivity.service.input.ResilienceConstraint;
13 public final class ResilienceConstraintCheck {
15 private ResilienceConstraintCheck() {
18 public static boolean checkString(String value) {
19 return ((value != null) && (value.compareTo("") != 0));
22 public static ComplianceCheckResult check(ResilienceConstraint rcl) {
23 boolean result = true;
28 message = "Resilience constraints are not managet yet";
31 return new ComplianceCheckResult(result, message);