2 * Copyright (c) 2016 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
9 package org.opendaylight.yangtools.yang.model.api;
11 import com.google.common.annotations.Beta;
12 import java.util.Collection;
16 * Interface describing YANG 'deviate' statement
18 * The 'deviate' statement defines how the device's implementation of
19 * the target node deviates from its original definition.
20 * The argument is one of the strings "not-supported", "add", "replace", or "delete".
23 public interface DeviateDefinition {
27 * @return enum which describes the type of this deviate statement
29 DeviateKind getDeviateType();
33 * @return value of the deviated config statement or null if it is not deviated
35 Boolean getDeviatedConfig();
39 * @return value of the deviated default statement or null if it is not deviated
41 String getDeviatedDefault();
45 * @return value of the deviated mandatory statement or null if it is not deviated
47 Boolean getDeviatedMandatory();
51 * @return value of the deviated max-elements statement or null if it is not deviated
53 Integer getDeviatedMaxElements();
57 * @return value of the deviated min-elements statement or null if it is not deviated
59 Integer getDeviatedMinElements();
63 * @return set of the deviated must statements
65 Set<MustDefinition> getDeviatedMusts();
69 * @return deviated type statement or null if it is not deviated
71 TypeDefinition<?> getDeviatedType();
75 * @return collection of the deviated unique statements
77 Collection<UniqueConstraint> getDeviatedUniques();
81 * @return value of the deviated units statement or null if it is not deviated
83 String getDeviatedUnits();