Added response data to operational datastore, refactored data validation
[packetcable.git] / packetcable-policy-server / src / main / java / org / opendaylight / controller / packetcable / provider / validation / Validator.java
1 /*
2  * Copyright (c) 2015 CableLabs 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
9 package org.opendaylight.controller.packetcable.provider.validation;
10
11 /**
12  * @author rvail
13  */
14 public interface Validator<T> {
15
16     void validate(final T data, Extent extent) throws ValidationException;
17
18     enum Extent {
19         NODE_ONLY,
20         NODE_AND_SUBTREE
21     }
22
23 }