Allow getChildNodes() to become a Collection
[controller.git] / opendaylight / netconf / netconf-cli / src / main / java / org / opendaylight / controller / netconf / cli / commands / CommandConstants.java
1 /*
2  * Copyright (c) 2014 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.netconf.cli.commands;
9
10 import java.net.URI;
11 import org.opendaylight.controller.netconf.cli.io.IOUtil;
12 import org.opendaylight.yangtools.yang.common.QName;
13
14 public class CommandConstants {
15
16     // Local command ids are defined here, this links the implementation to the rpc definition in yang
17     // Better way needs to be found to provide this link instead of hardcoded QNames (e.g. yang extension)
18     public static final QName HELP_QNAME = QName.create(URI.create("netconf:cli"), IOUtil.parseDate("2014-05-22"), "help");
19     public static final QName CLOSE_QNAME = QName.create(HELP_QNAME, "close");
20     public static final QName CONNECT_QNAME = QName.create(HELP_QNAME, "connect");
21     public static final QName DISCONNECT_QNAME = QName.create(CONNECT_QNAME, "disconnect");
22
23     public static final QName ARG_HANDLER_EXT_QNAME = QName.create(
24             URI.create("urn:ietf:params:xml:ns:netconf:base:1.0:cli"), IOUtil.parseDate("2014-05-26"),
25             "argument-handler");
26
27     public static final QName NETCONF_BASE_QNAME = QName.create("urn:ietf:params:xml:ns:netconf:base:1.0", "2011-06-01",
28             "netconf");
29 }