2 * Copyright (c) 2017 Pantheon Technologies, s.r.o. 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.openconfig.model.api;
10 import org.eclipse.jdt.annotation.NonNullByDefault;
11 import org.opendaylight.yangtools.yang.common.QNameModule;
12 import org.opendaylight.yangtools.yang.common.Revision;
13 import org.opendaylight.yangtools.yang.common.UnresolvedQName.Unqualified;
14 import org.opendaylight.yangtools.yang.common.XMLNamespace;
17 * Constants associated with OpenDaylight extension in yang-ext.yang.
20 public final class OpenConfigConstants {
21 public static final Unqualified MODULE_NAME = Unqualified.of("openconfig-extensions").intern();
23 // Package-visible, because openconfig-version applies across all known revisions and needs to bind to all of them
24 public static final XMLNamespace MODULE_NAMESPACE =
25 XMLNamespace.of("http://openconfig.net/yang/openconfig-ext").intern();
27 // Initial revision, defining semantic-version
28 public static final Revision SEMVER_REVISION = Revision.of("2015-10-09");
30 // Revised extension, adds openconfig-encrypted-value
31 public static final Revision ENCRYPTED_VALUE_REVISION = Revision.of("2017-01-29");
33 // Revised extension, renames openconfig-encrypted-value to openconfig-hashed-value
34 public static final Revision HASHED_VALUE_REVISION = Revision.of("2017-04-11");
36 // Revised extension, adds extension for POSIX pattern statements
37 public static final Revision REGEXP_POSIX_REVISION = Revision.of("2020-06-16");
40 * Runtime identity of model which exposed regexp-posix.
42 public static final QNameModule REGEXP_POSIX_MODULE = QNameModule.create(MODULE_NAMESPACE, REGEXP_POSIX_REVISION)
45 * Runtime identity of initial model.
47 public static final QNameModule SEMVER_MODULE = QNameModule.create(MODULE_NAMESPACE, SEMVER_REVISION).intern();
50 * Runtime identity of model which exposed encrypted-value.
52 public static final QNameModule ENCRYPTED_VALUE_MODULE = QNameModule.create(MODULE_NAMESPACE,
53 ENCRYPTED_VALUE_REVISION).intern();
56 * Runtime identity of model which exposed encrypted-value.
58 public static final QNameModule HASHED_VALUE_MODULE = QNameModule.create(MODULE_NAMESPACE, HASHED_VALUE_REVISION)
62 * Normative prefix to use when importing {@link #MODULE_NAME} and later.
64 public static final String MODULE_PREFIX = "oc-ext";
66 private OpenConfigConstants() {