All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.yangtools.rfc6643.model.api.IetfYangSmiv2Constants Maven / Gradle / Ivy

There is a newer version: 14.0.4
Show newest version
/*
 * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.yangtools.rfc6643.model.api;

import com.google.common.annotations.Beta;
import com.google.common.collect.ImmutableList;
import java.util.Collection;
import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.common.Revision;
import org.opendaylight.yangtools.yang.common.UnresolvedQName.Unqualified;
import org.opendaylight.yangtools.yang.common.XMLNamespace;
import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;

@Beta
public final class IetfYangSmiv2Constants {
    private static final Unqualified MODULE_NAME = Unqualified.of("ietf-yang-smiv2").intern();
    private static final XMLNamespace MODULE_NAMESPACE =
        XMLNamespace.of("urn:ietf:params:xml:ns:yang:ietf-yang-smiv2").intern();
    private static final Revision RFC6643_REVISION = Revision.of("2012-06-22");

    /**
     * Runtime RFC6643 identity.
     */
    public static final QNameModule RFC6643_MODULE = QNameModule.create(MODULE_NAMESPACE, RFC6643_REVISION).intern();

    /**
     * RFC6643 model source name.
     */
    public static final SourceIdentifier RFC6643_SOURCE = new SourceIdentifier(MODULE_NAME, RFC6643_REVISION);

    /**
     * Normative prefix to use when importing {@link #RFC6643_SOURCE}.
     */
    public static final String MODULE_PREFIX = "smiv2";

    /**
     * Return identifiers of all sources known to define NACM extension.
     *
     * @return Collection of identifiers.
     */
    public static Collection knownModelSources() {
        return ImmutableList.of(RFC6643_SOURCE);
    }

    private IetfYangSmiv2Constants() {
        // Hidden on purpose
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy