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.common.QName;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
17 public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject implements NormalizedNodeStreamWriter {
19 protected abstract NormalizedNodeStreamWriter delegate();
22 public void leafNode(final NodeIdentifier name, final Object value) throws IOException {
23 delegate().leafNode(name, value);
27 public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
28 delegate().startLeafSet(name, childSizeHint);
32 public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
33 delegate().startOrderedLeafSet(name, childSizeHint);
37 public void leafSetEntryNode(final QName name, final Object value) throws IOException {
38 delegate().leafSetEntryNode(name, value);
42 public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
43 delegate().startContainerNode(name, childSizeHint);
47 public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
48 delegate().startUnkeyedList(name, childSizeHint);
52 public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
53 delegate().startUnkeyedListItem(name, childSizeHint);
57 public final void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
58 delegate().startMapNode(name, childSizeHint);
62 public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
64 delegate().startMapEntryNode(identifier, childSizeHint);
68 public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
69 delegate().startOrderedMapNode(name, childSizeHint);
73 public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
74 delegate().startChoiceNode(name, childSizeHint);
78 public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
79 delegate().startAugmentationNode(identifier);
83 public void anyxmlNode(final NodeIdentifier name, final Object value) throws IOException {
84 delegate().anyxmlNode(name, value);
88 public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
89 delegate().startYangModeledAnyXmlNode(name, childSizeHint);
93 public void endNode() throws IOException {
98 public void close() throws IOException {
103 public void flush() throws IOException {