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 private ConfigConstants() {
17 public static final String CONFIG_NAMESPACE = "urn:opendaylight:params:xml:ns:yang:controller:config";
19 public static final String CONFIG_MODULE = "config";
20 public static final String CONFIG_THREADS_MODULE = "config-threads";
21 public static final String IETF_INET_TYPES = "ietf-inet-types";
23 public static final QName SERVICE_TYPE_Q_NAME = createConfigQName("service-type");
24 public static final QName MODULE_TYPE_Q_NAME = createConfigQName("module-type");
25 public static final QName JAVA_CLASS_EXTENSION_QNAME = createConfigQName("java-class");
26 public static final QName REQUIRED_IDENTITY_EXTENSION_QNAME = createConfigQName("required-identity");
27 public static final QName INNER_STATE_BEAN_EXTENSION_QNAME = createConfigQName("inner-state-bean");
28 public static final QName PROVIDED_SERVICE_EXTENSION_QNAME = createConfigQName("provided-service");
29 public static final QName JAVA_NAME_PREFIX_EXTENSION_QNAME = createConfigQName("java-name-prefix");
30 public static final QName RPC_CONTEXT_REF_GROUPING_QNAME = createRpcXQName("rpc-context-ref");
31 public static final QName RPC_CONTEXT_REF_GROUPING_LEAF = createRpcXQName("context-instance");
32 public static final QName RPC_CONTEXT_INSTANCE_EXTENSION_QNAME = createRpcXQName("rpc-context-instance");
34 public static QName createConfigQName(final String localName) {
35 // FIXME: pre-construct QNameModule
36 return QName.create(CONFIG_NAMESPACE, "2013-04-05", localName);
39 public static QName createRpcXQName(final String localName) {
40 // FIXME: pre-construct QNameModule
41 return QName.create("urn:ietf:params:xml:ns:yang:rpc-context",
42 "2013-06-17", localName);