2 * Copyright (c) 2015 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.yangtools.yang.data.api.schema.stream;
10 import com.google.common.collect.ForwardingObject;
11 import java.io.IOException;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
16 public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject implements NormalizedNodeStreamWriter {
18 protected abstract NormalizedNodeStreamWriter delegate();
21 public void leafNode(final NodeIdentifier name, final Object value) throws IOException {
22 delegate().leafNode(name, value);
26 public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
27 delegate().startLeafSet(name, childSizeHint);
31 public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
32 delegate().startOrderedLeafSet(name, childSizeHint);
36 public void leafSetEntryNode(final Object value) throws IOException {
37 delegate().leafSetEntryNode(value);
41 public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
42 delegate().startContainerNode(name, childSizeHint);
46 public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
47 delegate().startUnkeyedList(name, childSizeHint);
51 public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
52 delegate().startUnkeyedListItem(name, childSizeHint);
56 public final void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
57 delegate().startMapNode(name, childSizeHint);
61 public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
63 delegate().startMapEntryNode(identifier, childSizeHint);
67 public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
68 delegate().startOrderedMapNode(name, childSizeHint);
72 public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
73 delegate().startChoiceNode(name, childSizeHint);
77 public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
78 delegate().startAugmentationNode(identifier);
82 public void anyxmlNode(final NodeIdentifier name, final Object value) throws IOException {
83 delegate().anyxmlNode(name, value);
87 public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
88 delegate().startYangModeledAnyXmlNode(name, childSizeHint);
92 public void endNode() throws IOException {
97 public void close() throws IOException {
102 public void flush() throws IOException {