25ad01d52cfafed03f8349dc9fd9ce67d9c447c1
[yangtools.git] / model / rfc6643-model-api / src / main / java / org / opendaylight / yangtools / rfc6643 / model / api / IetfYangSmiv2Constants.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, 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.rfc6643.model.api;
9
10 import com.google.common.annotations.Beta;
11 import com.google.common.collect.ImmutableList;
12 import java.util.Collection;
13 import org.opendaylight.yangtools.yang.common.QNameModule;
14 import org.opendaylight.yangtools.yang.common.Revision;
15 import org.opendaylight.yangtools.yang.common.XMLNamespace;
16 import org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier;
17 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
18
19 @Beta
20 public final class IetfYangSmiv2Constants {
21     private static final String MODULE_NAME = "ietf-yang-smiv2";
22     private static final XMLNamespace MODULE_NAMESPACE =
23         XMLNamespace.of("urn:ietf:params:xml:ns:yang:ietf-yang-smiv2").intern();
24     private static final Revision RFC6643_REVISION = Revision.of("2012-06-22");
25
26     /**
27      * Runtime RFC6643 identity.
28      */
29     public static final QNameModule RFC6643_MODULE = QNameModule.create(MODULE_NAMESPACE, RFC6643_REVISION).intern();
30
31     /**
32      * RFC6643 model source name.
33      */
34     public static final SourceIdentifier RFC6643_SOURCE = RevisionSourceIdentifier.create(MODULE_NAME,
35         RFC6643_REVISION);
36
37     /**
38      * Normative prefix to use when importing {@link #RFC6643_SOURCE}.
39      */
40     public static final String MODULE_PREFIX = "smiv2";
41
42     /**
43      * Return identifiers of all sources known to define NACM extension.
44      *
45      * @return Collection of identifiers.
46      */
47     public static Collection<SourceIdentifier> knownModelSources() {
48         return ImmutableList.of(RFC6643_SOURCE);
49     }
50
51     private IetfYangSmiv2Constants() {
52         // Hidden on purpose
53     }
54 }