Do not provide SourceIdentifiers from extensions
[yangtools.git] / model / openconfig-model-api / src / main / java / org / opendaylight / yangtools / openconfig / model / api / OpenConfigConstants.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.openconfig.model.api;
9
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;
15
16 /**
17  * Constants associated with OpenDaylight extension in yang-ext.yang.
18  */
19 @NonNullByDefault
20 public final class OpenConfigConstants {
21     public static final Unqualified MODULE_NAME = Unqualified.of("openconfig-extensions").intern();
22
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();
26
27     // Initial revision, defining semantic-version
28     public static final Revision SEMVER_REVISION = Revision.of("2015-10-09");
29
30     // Revised extension, adds openconfig-encrypted-value
31     public static final Revision ENCRYPTED_VALUE_REVISION = Revision.of("2017-01-29");
32
33     // Revised extension, renames openconfig-encrypted-value to openconfig-hashed-value
34     public static final Revision HASHED_VALUE_REVISION = Revision.of("2017-04-11");
35
36     // Revised extension, adds extension for POSIX pattern statements
37     public static final Revision REGEXP_POSIX_REVISION = Revision.of("2020-06-16");
38
39     /**
40     * Runtime identity of model which exposed regexp-posix.
41     */
42     public static final QNameModule REGEXP_POSIX_MODULE = QNameModule.create(MODULE_NAMESPACE, REGEXP_POSIX_REVISION)
43             .intern();
44     /**
45      * Runtime identity of initial model.
46      */
47     public static final QNameModule SEMVER_MODULE = QNameModule.create(MODULE_NAMESPACE, SEMVER_REVISION).intern();
48
49     /**
50      * Runtime identity of model which exposed encrypted-value.
51      */
52     public static final QNameModule ENCRYPTED_VALUE_MODULE = QNameModule.create(MODULE_NAMESPACE,
53         ENCRYPTED_VALUE_REVISION).intern();
54
55     /**
56      * Runtime identity of model which exposed encrypted-value.
57      */
58     public static final QNameModule HASHED_VALUE_MODULE = QNameModule.create(MODULE_NAMESPACE, HASHED_VALUE_REVISION)
59             .intern();
60
61     /**
62      * Normative prefix to use when importing {@link #MODULE_NAME} and later.
63      */
64     public static final String MODULE_PREFIX = "oc-ext";
65
66     private OpenConfigConstants() {
67         // Hidden on purpose
68     }
69 }