2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. 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.clustering.it.karaf.cli;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
14 * Codec providing translation between CLI representation and {@link InstanceIdentifier}. This is mostly useful for
15 * injecting invocation contexts for {@code routed RPC}s and actions.
17 public interface InstanceIdentifierSupport {
19 * Parse a CLI argument into its {@link InstanceIdentifier} representation.
21 * @param argument Argument to parse
22 * @return Parse InstanceIdentifier
23 * @throws NullPointerException if {@code argument} is null
25 @NonNull InstanceIdentifier<?> parseArgument(String argument);