2 * Copyright (c) 2013 Cisco Systems, 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.yangtools.yang.model.api;
10 import java.util.List;
13 * Interface describing YANG 'deviation' statement.
16 * The 'deviation' statement defines a hierarchy of a module that the device does not implement faithfully. Deviations
17 * define the way a device deviate from a standard.
19 public interface Deviation extends DocumentedNode {
22 * Returns target schema path.
24 * @return SchemaPath that identifies the node in the schema tree where a deviation from the module occurs.
26 SchemaPath getTargetPath();
29 * Returns deviate children.
31 * @return List of all deviate statements defined in this deviation.
33 List<DeviateDefinition> getDeviates();