2 * Copyright (c) 2014 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.netconf.cli.commands.input;
10 import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
13 * The definition of input arguments represented by schema nodes parsed from
16 public class InputDefinition {
18 private final ContainerSchemaNode inputContainer;
20 public InputDefinition(final ContainerSchemaNode inputContainer) {
21 this.inputContainer = inputContainer;
24 public static InputDefinition fromInput(final ContainerSchemaNode input) {
25 return new InputDefinition(input);
28 public ContainerSchemaNode getInput() {
29 return inputContainer;
32 // FIXME add empty as in output
33 public boolean isEmpty() {
34 return inputContainer == null;