2 * Copyright (c) 2017 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.mdsal.binding.javav2.spec.runtime;
11 import com.google.common.annotations.Beta;
12 import com.google.common.base.Preconditions;
15 * Binding Namespace is structure of Java packages designed to prevent conflicts in YANG Java
16 * Binding, since Java does have only one namespace.
19 public enum BindingNamespaceType {
23 * Namespace containing all derived types, defined from grouping and data namespaces
26 Typedef("type"), Identity("ident"), Key("key"), Data("data"), Grouping("grp"), Builder("dto"),;
28 private final String packagePrefix;
30 private BindingNamespaceType(String packagePrefix) {
31 this.packagePrefix = Preconditions.checkNotNull(packagePrefix);
34 public String getPackagePrefix() {