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.base.Preconditions;
14 * Enum describing YANG deviation 'deviate' statement. It defines how the
15 * device's implementation of the target node deviates from its original
18 public enum DeviateKind {
20 NOT_SUPPORTED("not-supported"), ADD("add"), REPLACE("replace"), DELETE("delete");
22 private final String keyword;
24 DeviateKind(final String keyword) {
25 this.keyword = Preconditions.checkNotNull(keyword);
29 * @return String that corresponds to the yang keyword.
31 public String getKeyword() {