1 package org.opendaylight.groupbasedpolicy.resolver.validator.validators;
4 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
6 * This program and the accompanying materials are made available under the
7 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 import java.util.ArrayList;
11 import java.util.List;
12 import org.opendaylight.groupbasedpolicy.resolver.validator.AbstractValidator;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.Tenant;
14 import org.opendaylight.yangtools.yang.binding.ChildOf;
17 * Validator for {@link Tenant}
19 public class TenantValidator extends AbstractValidator<Tenant> {
22 protected List<ChildOf<Tenant>> getChildObjects(Tenant objectToValidate) {
23 List<ChildOf<Tenant>> childObjects = new ArrayList<>();
25 childObjects.add(objectToValidate.getSubjectFeatureInstances());
31 public Class<Tenant> getType() {