2 * Copyright (c) 2015 CableLabs 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
9 package org.opendaylight.controller.packetcable.provider.validation.impl.validators.qos;
11 import org.opendaylight.controller.packetcable.provider.validation.impl.validators.AbstractValidator;
12 import org.opendaylight.yang.gen.v1.urn.packetcable.rev170224.pcmm.qos.gates.Apps;
13 import org.opendaylight.yang.gen.v1.urn.packetcable.rev170224.pcmm.qos.gates.apps.App;
18 public class AppsValidator extends AbstractValidator<Apps> {
20 private final AppValidator appValidator = new AppValidator();
23 protected void doValidate(final Apps apps, final Extent extent) {
25 getErrorMessages().add("apps must exist");
28 if (extent == Extent.NODE_AND_SUBTREE) {
29 for (App app : apps.getApp()) {
30 validateChild(appValidator, app);