2 * Copyright (c) 2013 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.controller.config.yangjmxgenerator;
10 import org.opendaylight.yangtools.yang.common.QName;
12 public class ConfigConstants {
14 public static final String CONFIG_NAMESPACE = "urn:opendaylight:params:xml:ns:yang:controller:config";
16 public static final String CONFIG_MODULE = "config";
17 public static final String CONFIG_THREADS_MODULE = "config-threads";
18 public static final String IETF_INET_TYPES = "ietf-inet-types";
20 public static final QName SERVICE_TYPE_Q_NAME = createConfigQName("service-type");
21 public static final QName MODULE_TYPE_Q_NAME = createConfigQName("module-type");
22 public static final QName JAVA_CLASS_EXTENSION_QNAME = createConfigQName("java-class");
23 public static final QName REQUIRED_IDENTITY_EXTENSION_QNAME = createConfigQName("required-identity");
24 public static final QName INNER_STATE_BEAN_EXTENSION_QNAME = createConfigQName("inner-state-bean");
25 public static final QName PROVIDED_SERVICE_EXTENSION_QNAME = createConfigQName("provided-service");
26 public static final QName JAVA_NAME_PREFIX_EXTENSION_QNAME = createConfigQName("java-name-prefix");
27 public static final QName RPC_CONTEXT_REF_GROUPING_QNAME = createRpcXQName("rpc-context-ref");
28 public static final QName RPC_CONTEXT_REF_GROUPING_LEAF = createRpcXQName("context-instance");
29 public static final QName RPC_CONTEXT_INSTANCE_EXTENSION_QNAME = createRpcXQName("rpc-context-instance");
31 public static QName createConfigQName(final String localName) {
32 // FIXME: pre-construct QNameModule
33 return QName.create(CONFIG_NAMESPACE, "2013-04-05", localName);
36 public static QName createRpcXQName(final String localName) {
37 // FIXME: pre-construct QNameModule
38 return QName.create("urn:ietf:params:xml:ns:yang:rpc-context",
39 "2013-06-17", localName);