BUG-868: remove deprecated use of QName constructors
[controller.git] / opendaylight / config / yang-jmx-generator / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / ConfigConstants.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.config.yangjmxgenerator;
9
10 import org.opendaylight.yangtools.yang.common.QName;
11
12 public class ConfigConstants {
13
14     public static final String CONFIG_NAMESPACE = "urn:opendaylight:params:xml:ns:yang:controller:config";
15
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";
19
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");
30
31     public static QName createConfigQName(final String localName) {
32         // FIXME: pre-construct QNameModule
33         return QName.create(CONFIG_NAMESPACE, "2013-04-05", localName);
34     }
35
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);
40     }
41 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.