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
18 implements NormalizedNodeStreamWriter {
20 protected abstract NormalizedNodeStreamWriter delegate();
23 public void leafNode(final NodeIdentifier name, final Object value) throws IOException {
24 delegate().leafNode(name, value);
28 public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
29 delegate().startLeafSet(name, childSizeHint);
33 public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
34 delegate().startOrderedLeafSet(name, childSizeHint);
38 public void leafSetEntryNode(final QName name, final Object value) throws IOException {
39 delegate().leafSetEntryNode(name, value);
43 public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
44 delegate().startContainerNode(name, childSizeHint);
48 public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
49 delegate().startUnkeyedList(name, childSizeHint);
53 public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
54 delegate().startUnkeyedListItem(name, childSizeHint);
58 public final void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
59 delegate().startMapNode(name, childSizeHint);
63 public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
65 delegate().startMapEntryNode(identifier, childSizeHint);
69 public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
70 delegate().startOrderedMapNode(name, childSizeHint);
74 public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
75 delegate().startChoiceNode(name, childSizeHint);
79 public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
80 delegate().startAugmentationNode(identifier);
84 public void anyxmlNode(final NodeIdentifier name, final Object value) throws IOException {
85 delegate().anyxmlNode(name, value);
89 public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
90 delegate().startYangModeledAnyXmlNode(name, childSizeHint);
94 public void endNode() throws IOException {
99 public void close() throws IOException {
104 public void flush() throws IOException {