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.odlext.model.api;
10 import com.google.common.collect.ImmutableList;
11 import java.util.Collection;
12 import org.opendaylight.yangtools.yang.common.QNameModule;
13 import org.opendaylight.yangtools.yang.common.Revision;
14 import org.opendaylight.yangtools.yang.common.XMLNamespace;
15 import org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier;
16 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
19 * Constants associated with OpenDaylight extension in yang-ext.yang.
21 * @author Robert Varga
23 public final class OpenDaylightExtensionsConstants {
24 private static final String MODULE_NAME = "yang-ext";
25 private static final XMLNamespace MODULE_NAMESPACE =
26 XMLNamespace.of("urn:opendaylight:yang:extension:yang-ext").intern();
27 private static final Revision ORIGINAL_REVISION = Revision.of("2013-07-09");
30 * Runtime baseline identity.
32 public static final QNameModule ORIGINAL_MODULE = QNameModule.create(MODULE_NAMESPACE, ORIGINAL_REVISION).intern();
35 * Baseline model source name.
37 public static final SourceIdentifier ORIGINAL_SOURCE = RevisionSourceIdentifier.create(MODULE_NAME,
40 private OpenDaylightExtensionsConstants() {
45 * Return identifiers of all sources known to define the metadata extension.
47 * @return Collection of identifiers.
49 public static Collection<SourceIdentifier> knownModelSources() {
50 return ImmutableList.of(ORIGINAL_SOURCE);