2 * Copyright (c) 2015 Cisco Systems, Inc. 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.yang.common;
13 * Constant definitions present in RFC documents related to the YANG language.
15 public final class YangConstants {
17 * YANG File Extension, as defined in https://tools.ietf.org/html/rfc6020#section-14.1.
19 public static final String RFC6020_YANG_FILE_EXTENSION = ".yang";
22 * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1.
24 public static final String RFC6020_YANG_MAC_FILE_TYPE = "TEXT";
28 * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1.
30 public static final String RFC6020_YANG_MEDIA_TYPE = "application/yang";
33 * YANG namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14.
35 public static final URI RFC6020_YANG_NAMESPACE = URI.create("urn:ietf:params:xml:ns:yang:1");
38 * Base QNameModule for all YANG statements.
40 public static final QNameModule RFC6020_YANG_MODULE = QNameModule.create(RFC6020_YANG_NAMESPACE, null).intern();
43 * YIN File Extension, as defined in https://tools.ietf.org/html/rfc6020#section-14.2.
45 public static final String RFC6020_YIN_FILE_EXTENSION = ".yin";
48 * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1.
50 public static final String RFC6020_MAC_FILE_TYPE = "TEXT";
53 * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1.
55 public static final String RFC6020_YIN_MEDIA_TYPE = "application/xml+yin";
58 * YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14.
60 public static final URI RFC6020_YIN_NAMESPACE = URI.create("urn:ietf:params:xml:ns:yang:yin:1");
63 * Base QNameModule for all YIN statements.
65 public static final QNameModule RFC6020_YIN_MODULE = QNameModule.create(RFC6020_YIN_NAMESPACE, null).intern();
68 * YANG Library NETCONF Capability, as defined in https://tools.ietf.org/html/rfc7950#section-16.
70 public static final URI RFC7950_YANG_LIBRARY_CAPABILITY =
71 URI.create("urn:ietf:params:netconf:capability:yang-library:1.0");
73 private YangConstants() {
74 throw new UnsupportedOperationException("Utility class");