2 * Copyright (c) 2018 Pantheon Technologies, 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.mdsal.binding.dom.codec.impl;
10 import static java.util.Objects.requireNonNull;
12 import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
15 * This is not really a codec context, but rather a holder of input and output codec contexts.
17 final class ActionCodecContext {
18 private final DataContainerCodecContext<?, ContainerSchemaNode> input;
19 private final DataContainerCodecContext<?, ContainerSchemaNode> output;
21 ActionCodecContext(final DataContainerCodecContext<?, ContainerSchemaNode> input,
22 final DataContainerCodecContext<?, ContainerSchemaNode> output) {
23 this.input = requireNonNull(input);
24 this.output = requireNonNull(output);
27 DataContainerCodecContext<?, ContainerSchemaNode> input() {
31 DataContainerCodecContext<?, ContainerSchemaNode> output() {