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, in String format.
35 public static final String RFC6020_YANG_NAMESPACE_STRING = "urn:ietf:params:xml:ns:yang:1";
38 * YANG namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in URI format.
40 public static final URI RFC6020_YANG_NAMESPACE = URI.create(RFC6020_YANG_NAMESPACE_STRING);
43 * Base QNameModule for all YANG statements.
45 public static final QNameModule RFC6020_YANG_MODULE = QNameModule.create(RFC6020_YANG_NAMESPACE).intern();
48 * YIN File Extension, as defined in https://tools.ietf.org/html/rfc6020#section-14.2.
50 public static final String RFC6020_YIN_FILE_EXTENSION = ".yin";
53 * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1.
55 public static final String RFC6020_MAC_FILE_TYPE = "TEXT";
58 * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1.
60 public static final String RFC6020_YIN_MEDIA_TYPE = "application/xml+yin";
63 * YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in String format.
65 public static final String RFC6020_YIN_NAMESPACE_STRING = "urn:ietf:params:xml:ns:yang:yin:1";
68 * YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in URI format.
70 public static final URI RFC6020_YIN_NAMESPACE = URI.create(RFC6020_YIN_NAMESPACE_STRING);
73 * Base QNameModule for all YIN statements.
75 public static final QNameModule RFC6020_YIN_MODULE = QNameModule.create(RFC6020_YIN_NAMESPACE).intern();
78 * YANG Library NETCONF Capability, as defined in https://tools.ietf.org/html/rfc7950#section-16.
80 public static final URI RFC7950_YANG_LIBRARY_CAPABILITY =
81 URI.create("urn:ietf:params:netconf:capability:yang-library:1.0");
84 * Prefix for YANG-specific XPath functions.
86 public static final String YANG_XPATH_FUNCTIONS_PREFIX = "yang";
88 private YangConstants() {
89 throw new UnsupportedOperationException("Utility class");