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
8 package org.opendaylight.yangtools.yang.model.api;
10 import com.google.common.annotations.Beta;
11 import java.util.Collection;
12 import org.opendaylight.yangtools.yang.model.api.stmt.DeviateEffectiveStatement;
15 * 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 extends EffectiveStatementEquivalent<DeviateEffectiveStatement> {
25 * Return deviation kind.
27 * @return enum which describes the type of this deviate statement
29 DeviateKind getDeviateType();
32 * Returns deviated config value.
34 * @return value of the deviated config statement or null if it is not deviated
36 Boolean getDeviatedConfig();
39 * Returns deviated default value.
41 * @return value of the deviated default statement or null if it is not deviated
43 String getDeviatedDefault();
46 * Returns deviated mandatory value.
48 * @return value of the deviated mandatory statement or null if it is not deviated
50 Boolean getDeviatedMandatory();
53 * Returns deviated max-elements.
55 * @return value of the deviated max-elements statement or null if it is not deviated
57 Integer getDeviatedMaxElements();
60 * Returns deviated min-elements.
62 * @return value of the deviated min-elements statement or null if it is not deviated
64 Integer getDeviatedMinElements();
67 * Returns deviated must statements.
69 * @return set of the deviated must statements
71 Collection<? extends MustDefinition> getDeviatedMusts();
74 * Returns deviated type statement.
76 * @return deviated type statement or null if it is not deviated
78 TypeDefinition<?> getDeviatedType();
81 * Returns deviated unique statements.
83 * @return collection of the deviated unique statements
85 Collection<? extends UniqueConstraint> getDeviatedUniques();
88 * Returns deviated units statement.
90 * @return value of the deviated units statement or null if it is not deviated
92 String getDeviatedUnits();